Hello community,

here is the log from the commit of package python-Mathics for openSUSE:Factory 
checked in at 2020-05-26 17:24:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Mathics (Old)
 and      /work/SRC/openSUSE:Factory/.python-Mathics.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Mathics"

Tue May 26 17:24:16 2020 rev:3 rq:808771 version:1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Mathics/python-Mathics.changes    
2020-03-18 12:45:08.248945004 +0100
+++ /work/SRC/openSUSE:Factory/.python-Mathics.new.2738/python-Mathics.changes  
2020-05-26 17:24:18.580618381 +0200
@@ -1,0 +2,5 @@
+Mon May 25 06:50:45 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-Mathics.spec ++++++
--- /var/tmp/diff_new_pack.6dB9NQ/_old  2020-05-26 17:24:19.288619903 +0200
+++ /var/tmp/diff_new_pack.6dB9NQ/_new  2020-05-26 17:24:19.292619911 +0200
@@ -43,6 +43,8 @@
 Requires:       python-python-dateutil
 Requires:       python-six >= 1.10
 Requires:       python-sympy
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 %python_subpackages
 
 %description
@@ -73,19 +75,32 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/mathics
+%python_clone -a %{buildroot}%{_bindir}/mathicsserver
+%python_clone -a %{buildroot}%{_bindir}/mathicsscript
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 # Tests fail with new sympy, probably worth fixing upstream
 #%%python_exec setup.py test
 
+%post
+%python_install_alternative mathics
+%python_install_alternative mathicsserver
+%python_install_alternative mathicsscript
+
+%postun
+%python_uninstall_alternative mathics
+%python_uninstall_alternative mathicsserver
+%python_uninstall_alternative mathicsscript
+
 %files %{python_files}
 %license COPYING.txt
 %doc README.rst AUTHORS.txt
 %{python_sitelib}/mathics/
 %{python_sitelib}/%{pyname}-%{version}-py%{python_version}.egg-info/
-%python3_only %{_bindir}/mathicsscript
-%python3_only %{_bindir}/mathicsserver
-%python3_only %{_bindir}/mathics
+%python_alternative %{_bindir}/mathicsscript
+%python_alternative %{_bindir}/mathicsserver
+%python_alternative %{_bindir}/mathics
 
 %changelog


Reply via email to