Hello community,

here is the log from the commit of package python-argparse-manpage for 
openSUSE:Factory checked in at 2020-04-15 19:54:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-argparse-manpage (Old)
 and      /work/SRC/openSUSE:Factory/.python-argparse-manpage.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-argparse-manpage"

Wed Apr 15 19:54:46 2020 rev:6 rq:793949 version:1.3

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-argparse-manpage/python-argparse-manpage.changes
  2020-02-03 11:14:06.709868996 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-argparse-manpage.new.2738/python-argparse-manpage.changes
        2020-04-15 19:54:58.025611763 +0200
@@ -1,0 +2,5 @@
+Tue Apr 14 14:52:26 UTC 2020 - Matej Cepl <[email protected]>
+
+- Don't use %python3_only command, but properly use alternatives.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-argparse-manpage.spec ++++++
--- /var/tmp/diff_new_pack.PfokR2/_old  2020-04-15 19:54:58.777612102 +0200
+++ /var/tmp/diff_new_pack.PfokR2/_new  2020-04-15 19:54:58.777612102 +0200
@@ -32,6 +32,8 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-setuptools
+Requires(post):   update-alternatives
+Requires(postun):  update-alternatives
 %python_subpackages
 
 %description
@@ -51,16 +53,24 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/argparse-manpage
+%python_clone -a %{buildroot}%{_mandir}/man1/argparse-manpage.1
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %pytest
 
+%post
+%{python_install_alternative argparse-manpage argparse-manpage.1}
+
+%postun
+%python_uninstall_alternative argparse-manpage
+
 %files %{python_files}
 %doc README*
 %license LICENSE
 %{python_sitelib}/*
-%python3_only %{_bindir}/argparse-manpage
-%python3_only %{_mandir}/man1/argparse-manpage.1%{?ext_man}
+%python_alternative %{_bindir}/argparse-manpage
+%python_alternative %{_mandir}/man1/argparse-manpage.1%{?ext_man}
 
 %changelog


Reply via email to