Accepting request 793949 from devel:languages:python
- Don't use %python3_only command, but properly use alternatives. OBS-URL: https://build.opensuse.org/request/show/793949 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argparse-manpage?expand=0&rev=6
This commit is contained in:
commit
1d9d066d41
@ -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>
|
Fri Jan 31 17:44:02 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
@ -32,6 +32,8 @@ BuildRequires: %{python_module six}
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -51,16 +53,24 @@ support for (deprecated) optparse objects, too.
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_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}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
|
%post
|
||||||
|
%{python_install_alternative argparse-manpage argparse-manpage.1}
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative argparse-manpage
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README*
|
%doc README*
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
%python3_only %{_bindir}/argparse-manpage
|
%python_alternative %{_bindir}/argparse-manpage
|
||||||
%python3_only %{_mandir}/man1/argparse-manpage.1%{?ext_man}
|
%python_alternative %{_mandir}/man1/argparse-manpage.1%{?ext_man}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user