Hello community,

here is the log from the commit of package python-sherpa for openSUSE:Factory 
checked in at 2020-05-19 14:59:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sherpa (Old)
 and      /work/SRC/openSUSE:Factory/.python-sherpa.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-sherpa"

Tue May 19 14:59:12 2020 rev:4 rq:807290 version:4.12.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-sherpa/python-sherpa.changes      
2020-03-12 23:12:41.735333145 +0100
+++ /work/SRC/openSUSE:Factory/.python-sherpa.new.2738/python-sherpa.changes    
2020-05-19 14:59:22.469519135 +0200
@@ -1,0 +2,5 @@
+Tue May 19 09:28:01 UTC 2020 - Petr Gajdos <pgaj...@suse.com>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-sherpa.spec ++++++
--- /var/tmp/diff_new_pack.tAuLO6/_old  2020-05-19 14:59:25.401525637 +0200
+++ /var/tmp/diff_new_pack.tAuLO6/_new  2020-05-19 14:59:25.405525646 +0200
@@ -41,6 +41,8 @@
 BuildRequires:  python-rpm-macros
 Requires:       python-numpy
 Requires:       python-six
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 ExcludeArch:    %{ix86}
 # SECTION test requirements
 BuildRequires:  %{python_module mock}
@@ -74,6 +76,8 @@
 sed -i 
's|group-location=.*|group-location=build/%{_lib}/python%{$python_version}/site-packages/group.so|'
 setup.cfg
 %{$python_install}
 }
+%python_clone -a %{buildroot}%{_bindir}/sherpa_test
+%python_clone -a %{buildroot}%{_bindir}/sherpa_smoke
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
 
 # REMOVE HASHBANGS FROM NON-EXEC FILES
@@ -90,11 +94,19 @@
 %pytest_arch %{buildroot}%{$python_sitearch}/sherpa/
 mv sherpa_temp sherpa
 
+%post
+%python_install_alternative sherpa_smoke
+%python_install_alternative sherpa_test
+
+%postun
+%python_uninstall_alternative sherpa_smoke
+%python_uninstall_alternative sherpa_test
+
 %files %{python_files}
 %doc README.md
 %license LICENSE
-%python3_only %{_bindir}/sherpa_test
-%python3_only %{_bindir}/sherpa_smoke
+%python_alternative %{_bindir}/sherpa_test
+%python_alternative %{_bindir}/sherpa_smoke
 %{python_sitearch}/*
 
 %changelog


Reply via email to