Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package LHAPDF for openSUSE:Factory checked in at 2021-02-20 22:12:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/LHAPDF (Old) and /work/SRC/openSUSE:Factory/.LHAPDF.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "LHAPDF" Sat Feb 20 22:12:20 2021 rev:18 rq:872367 version:6.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/LHAPDF/LHAPDF.changes 2020-07-18 21:03:32.279645986 +0200 +++ /work/SRC/openSUSE:Factory/.LHAPDF.new.28504/LHAPDF.changes 2021-02-20 22:12:21.099042987 +0100 @@ -1,0 +2,7 @@ +Mon Feb 15 00:44:15 UTC 2021 - Atri Bhattacharya <badshah...@gmail.com> + +- Fix building for multiple python flavours. +- Copy doc files (built only for default python3 flavour) to + buildroot during %install. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ LHAPDF.spec ++++++ --- /var/tmp/diff_new_pack.bRPKV5/_old 2021-02-20 22:12:21.635043557 +0100 +++ /var/tmp/diff_new_pack.bRPKV5/_new 2021-02-20 22:12:21.635043557 +0100 @@ -1,7 +1,7 @@ # # spec file for package LHAPDF # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -37,6 +37,8 @@ BuildRequires: python-rpm-macros BuildRequires: texlive-latex-bin BuildRoot: %{_tmppath}/%{name}-%{version}-build +Requires(post): update-alternatives +Requires(postun): update-alternatives %python_subpackages @@ -91,7 +93,7 @@ %patch -P 1 -p1 %build -autoreconf -fi +autoreconf -fvi %{python_expand # Necessary to run %%configure with both py2 and py3 export PYTHON=%{_bindir}/$python mkdir ../$python @@ -99,17 +101,22 @@ pushd ../$python %configure --disable-static --docdir=%{_docdir}/%{name}/ %make_build -popd -} -pushd ../python3 +# Build doc only for one flavour, viz., which provides the default python3 +if [ "$python_" = "python3_" -o "%{$python_provides}" = "python3" ]; then %make_build doxy +fi popd +} %install %{python_expand # py2 and py3 make_install export PYTHON=%{_bindir}/$python pushd ../$python %make_install +if [ "$python_" = "python3_" -o "%{$python_provides}" = "python3" ]; then +mkdir -p %{buildroot}%{_docdir}/%{name} +cp -pr doc/doxygen %{buildroot}%{_docdir}/%{name}/ +fi popd } @@ -118,28 +125,36 @@ find %{buildroot}%{_libdir}/ -name "*.la" -delete +%python_clone -a %{buildroot}%{_bindir}/%{execname} + %post -n %{so_name} -p /sbin/ldconfig %postun -n %{so_name} -p /sbin/ldconfig +%post +%python_install_alternative %{execname} + +%postun +%python_uninstall_alternative %{execname} + %files -n %{so_name} -%defattr(-, root, root) +%license COPYING %{_libdir}/libLHAPDF-%version.so %files -n %{name}-devel %doc AUTHORS ChangeLog %license COPYING -%{_bindir}/%{execname}-* +%{_bindir}/%{execname}-config %{_datadir}/%{name}/ %{_includedir}/%{name} %{_libdir}/libLHAPDF.so %{_libdir}/pkgconfig/%{execname}.pc %files %{python_files} -%python3_only %{_bindir}/%{execname} +%python_alternative %{_bindir}/%{execname} %{python_sitearch}/*.egg-info %{python_sitearch}/*.so %files -n %{name}-doc -%doc ../python3/doc/doxygen +%doc %{_docdir}/%{name}/ %changelog