- Don't use %python3_only command, but properly use alternatives.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argparse-manpage?expand=0&rev=13
This commit is contained in:
parent
a3490f13f0
commit
c3e499ae32
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 14 14:52:26 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Don't use %python3_only command, but properly use alternatives.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 31 17:44:02 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
|
@ -32,6 +32,8 @@ BuildRequires: %{python_module six}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-setuptools
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@ -51,16 +53,24 @@ support for (deprecated) optparse objects, too.
|
||||
|
||||
%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 argparse-manpage.1}
|
||||
|
||||
%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
|
||||
|
Loading…
x
Reference in New Issue
Block a user