Hello community,

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

Package is "python-tap.py"

Sat May 23 16:08:53 2020 rev:3 rq:808395 version:3.0

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-tap.py/python-tap.py.changes    
2020-03-21 16:47:40.737671641 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.python-tap.py.new.2738/python-tap.py.changes  
2020-05-23 16:08:59.617255491 +0200
@@ -1,0 +2,5 @@
+Tue May 19 08:03:11 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-tap.py.spec ++++++
--- /var/tmp/diff_new_pack.CnPXng/_old  2020-05-23 16:08:59.925256151 +0200
+++ /var/tmp/diff_new_pack.CnPXng/_new  2020-05-23 16:08:59.925256151 +0200
@@ -31,6 +31,8 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-setuptools
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 Recommends:     python-PyYAML
 Recommends:     python-more-itertools
 BuildArch:      noarch
@@ -55,17 +57,27 @@
 %install
 export LANG=en_US.UTF-8
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/tap
+%python_clone -a %{buildroot}%{_bindir}/tappy
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 export LANG=en_US.UTF-8
 %pytest
 
+%post
+%python_install_alternative tap
+%python_install_alternative tappy
+
+%postun
+%python_uninstall_alternative tap
+%python_uninstall_alternative tappy
+
 %files %{python_files}
 %doc AUTHORS README.md
 %license LICENSE
-%python3_only %{_bindir}/tappy
-%python3_only %{_bindir}/tap
+%python_alternative %{_bindir}/tappy
+%python_alternative %{_bindir}/tap
 %{python_sitelib}/*
 
 %changelog


Reply via email to