Hello community,

here is the log from the commit of package python-tap.py for openSUSE:Factory 
checked in at 2020-05-20 18:44:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-tap.py (Old)
 and      /work/SRC/openSUSE:Factory/.python-tap.py.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-tap.py"

Wed May 20 18:44:33 2020 rev:4 rq:807162 version:3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-tap.py/python-tap.py.changes      
2020-03-19 19:52:56.264274804 +0100
+++ /work/SRC/openSUSE:Factory/.python-tap.py.new.2738/python-tap.py.changes    
2020-05-20 18:45:22.273270051 +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.ZX1iRY/_old  2020-05-20 18:45:23.361272495 +0200
+++ /var/tmp/diff_new_pack.ZX1iRY/_new  2020-05-20 18:45:23.365272504 +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