Hello community,
here is the log from the commit of package python-argparse-manpage for
openSUSE:Leap:15.2 checked in at 2020-04-30 18:51:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-argparse-manpage (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-argparse-manpage.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-argparse-manpage"
Thu Apr 30 18:51:33 2020 rev:3 rq:794280 version:1.3
Changes:
--------
---
/work/SRC/openSUSE:Leap:15.2/python-argparse-manpage/python-argparse-manpage.changes
2020-03-09 18:02:31.204732761 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-argparse-manpage.new.2738/python-argparse-manpage.changes
2020-04-30 18:51:34.792615972 +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.rbqM6e/_old 2020-04-30 18:51:35.088616603 +0200
+++ /var/tmp/diff_new_pack.rbqM6e/_new 2020-04-30 18:51:35.092616612 +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