Hello community,

here is the log from the commit of package python-Theano for openSUSE:Leap:15.2 
checked in at 2020-05-23 16:06:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-Theano (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-Theano.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Theano"

Sat May 23 16:06:45 2020 rev:4 rq:808143 version:1.0.4

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-Theano/python-Theano.changes    
2020-03-09 18:11:30.841209319 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.python-Theano.new.2738/python-Theano.changes  
2020-05-23 16:06:50.928979570 +0200
@@ -1,0 +2,5 @@
+Mon May 18 09:10:30 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-Theano.spec ++++++
--- /var/tmp/diff_new_pack.1779Bh/_old  2020-05-23 16:06:52.376982675 +0200
+++ /var/tmp/diff_new_pack.1779Bh/_new  2020-05-23 16:06:52.380982684 +0200
@@ -45,6 +45,8 @@
 Requires:       python-numpy-devel >= 1.9.1
 Requires:       python-scipy >= 0.14
 Requires:       python-six >= 1.9.0
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 # The tests are compiling and are arch specific
 %if !%{with test}
 BuildArch:      noarch
@@ -83,6 +85,8 @@
 %install
 %if !%{with test}
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/theano-nose
+%python_clone -a %{buildroot}%{_bindir}/theano-cache
 
 # remove binaries and stuff thats not supposed to end up on system
 %python_expand rm -r %{buildroot}%{$python_sitelib}/bin
@@ -103,11 +107,19 @@
 %endif
 
 %if !%{with test}
+%post
+%python_install_alternative theano-nose
+%python_install_alternative theano-cache
+
+%postun
+%python_uninstall_alternative theano-nose
+%python_uninstall_alternative theano-cache
+
 %files %{python_files}
 %doc DESCRIPTION.txt EMAIL.txt HISTORY.txt NEWS.txt README.rst
 %license doc/LICENSE.txt
-%python3_only %{_bindir}/theano-cache
-%python3_only %{_bindir}/theano-nose
+%python_alternative %{_bindir}/theano-cache
+%python_alternative %{_bindir}/theano-nose
 %{python_sitelib}/theano
 %{python_sitelib}/Theano-%{version}-*.egg-info
 %endif


Reply via email to