Hello community,

here is the log from the commit of package python-semver for openSUSE:Leap:15.2 
checked in at 2020-05-28 20:08:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-semver (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-semver.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-semver"

Thu May 28 20:08:38 2020 rev:14 rq:807332 version:2.10.0

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-semver/python-semver.changes    
2020-05-18 11:00:35.082784281 +0200
+++ /work/SRC/openSUSE:Leap:15.2/.python-semver.new.3606/python-semver.changes  
2020-05-28 20:08:41.882738589 +0200
@@ -1,0 +2,5 @@
+Tue May 19 09:27:55 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-semver.spec ++++++
--- /var/tmp/diff_new_pack.NfO8FZ/_old  2020-05-28 20:08:42.342739958 +0200
+++ /var/tmp/diff_new_pack.NfO8FZ/_new  2020-05-28 20:08:42.346739969 +0200
@@ -31,6 +31,8 @@
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 # See https://github.com/k-bx/python-semver/issues/67 for why conflicts is 
needed
 Conflicts:      python-node-semver
 BuildArch:      noarch
@@ -48,16 +50,23 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/pysemver
 
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %pytest
 
+%post
+%python_install_alternative pysemver
+
+%postun
+%python_uninstall_alternative pysemver
+
 %files %{python_files}
 %doc README.rst
 %{python_sitelib}/semver*
 %pycache_only %{python_sitelib}/__pycache__/semver*
-%python3_only %{_bindir}/pysemver
+%python_alternative %{_bindir}/pysemver
 
 %changelog


Reply via email to