Hello community,

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

Package is "python-Theano"

Tue May 19 14:48:59 2020 rev:5 rq:806970 version:1.0.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Theano/python-Theano.changes      
2020-02-26 15:03:40.685027373 +0100
+++ /work/SRC/openSUSE:Factory/.python-Theano.new.2738/python-Theano.changes    
2020-05-19 14:49:04.532148759 +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.gHQoW3/_old  2020-05-19 14:49:05.260150374 +0200
+++ /var/tmp/diff_new_pack.gHQoW3/_new  2020-05-19 14:49:05.264150383 +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