Hello community,

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

Package is "python-srcinfo"

Sat May 23 16:08:30 2020 rev:2 rq:808374 version:0.0.8

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-srcinfo/python-srcinfo.changes  
2020-02-16 18:29:34.410757361 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-srcinfo.new.2738/python-srcinfo.changes    
    2020-05-23 16:08:32.185196674 +0200
@@ -1,0 +2,5 @@
+Tue May 19 08:03:02 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-srcinfo.spec ++++++
--- /var/tmp/diff_new_pack.tdcy8a/_old  2020-05-23 16:08:32.533197420 +0200
+++ /var/tmp/diff_new_pack.tdcy8a/_new  2020-05-23 16:08:32.533197420 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-srcinfo
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -31,6 +31,8 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-parse
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module nose}
@@ -50,15 +52,22 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/parse_srcinfo
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %python_exec setup.py test
 
+%post
+%python_install_alternative parse_srcinfo
+
+%postun
+%python_uninstall_alternative parse_srcinfo
+
 %files %{python_files}
 %doc README.rst
 %license LICENSE
-%python3_only %{_bindir}/parse_srcinfo
+%python_alternative %{_bindir}/parse_srcinfo
 %{python_sitelib}/*
 
 %changelog


Reply via email to