Hello community,

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

Package is "python-distro"

Fri Jun  5 19:59:02 2020 rev:11 rq:809416 version:1.5.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-distro/python-distro.changes      
2020-04-07 10:20:43.357789188 +0200
+++ /work/SRC/openSUSE:Factory/.python-distro.new.3606/python-distro.changes    
2020-06-05 19:59:03.971700425 +0200
@@ -1,0 +2,5 @@
+Tue May 26 07:22:40 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-distro.spec ++++++
--- /var/tmp/diff_new_pack.05PuKm/_old  2020-06-05 19:59:04.567702486 +0200
+++ /var/tmp/diff_new_pack.05PuKm/_new  2020-06-05 19:59:04.567702486 +0200
@@ -30,6 +30,8 @@
 Patch0:         assert_locale.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  python-rpm-macros
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 # SECTION test
 %if %{with test}
@@ -53,6 +55,7 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/distro
 
 %if %{with test}
 %check
@@ -60,9 +63,15 @@
 LANG=en_US.utf8 %python_exec setup.py pytest
 %endif
 
+%post
+%python_install_alternative distro
+
+%postun
+%python_uninstall_alternative distro
+
 %files %{python_files}
 %doc CHANGELOG.md README.md
-%python3_only %{_bindir}/distro
+%python_alternative %{_bindir}/distro
 %{python_sitelib}/*
 %%license LICENSE
 


Reply via email to