forked from pool/python-argparse-manpage
Compare commits
5 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 8a370b26ad | |||
| d7dc0dda05 | |||
| a1a3c20e1f | |||
| ae3d2ee8ff | |||
| 5cb0ad08a4 |
@@ -1,13 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Mon Aug 11 11:28:09 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
|
||||||
|
|
||||||
- Make the libalternatives transition conditional
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Mon Jun 16 13:49:16 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
|
||||||
|
|
||||||
- Convert to libalternatives
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Apr 1 03:51:22 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
Tue Apr 1 03:51:22 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -17,11 +17,6 @@
|
|||||||
|
|
||||||
|
|
||||||
%define mod_name argparse-manpage
|
%define mod_name argparse-manpage
|
||||||
%if 0%{?suse_version} > 1500
|
|
||||||
%bcond_without libalternatives
|
|
||||||
%else
|
|
||||||
%bcond_with libalternatives
|
|
||||||
%endif
|
|
||||||
Name: python-argparse-manpage
|
Name: python-argparse-manpage
|
||||||
Version: 4.6
|
Version: 4.6
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -29,6 +24,7 @@ Summary: Tool for automatic manual page building from a Python ArgumentPa
|
|||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/praiskup/argparse-manpage
|
URL: https://github.com/praiskup/argparse-manpage
|
||||||
Source: https://github.com/praiskup/argparse-manpage/archive/v%{version}.tar.gz
|
Source: https://github.com/praiskup/argparse-manpage/archive/v%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools-wheel}
|
BuildRequires: %{python_module setuptools-wheel}
|
||||||
@@ -36,17 +32,11 @@ BuildRequires: %{python_module setuptools}
|
|||||||
BuildRequires: ca-certificates
|
BuildRequires: ca-certificates
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
%if %{with libalternatives}
|
|
||||||
Requires: alts
|
|
||||||
BuildRequires: alts
|
|
||||||
%else
|
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun): update-alternatives
|
|
||||||
%endif
|
|
||||||
BuildArch: noarch
|
|
||||||
%if 0%{python_version_nodots} < 311
|
%if 0%{python_version_nodots} < 311
|
||||||
Requires: python-tomli
|
Requires: python-tomli
|
||||||
%endif
|
%endif
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -72,14 +62,11 @@ support for (deprecated) optparse objects, too.
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
export PIP_NO_INDEX=1
|
export PIP_NO_INDEX=1
|
||||||
export PIP_FIND_LINKS=$(ls -1 %{_prefix}/lib/python3.*/wheels | head -n 1)
|
export PIP_FIND_LINKS=$(ls -1 /usr/lib/python3.*/wheels | head -n 1)
|
||||||
%pytest -k 'not test_old_example_file_name'
|
%pytest -k 'not test_old_example_file_name'
|
||||||
|
|
||||||
%pre
|
|
||||||
%python_libalternatives_reset_alternative argparse-manpage
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative argparse-manpage argparse-manpage.1
|
%{python_install_alternative argparse-manpage argparse-manpage.1}
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative argparse-manpage
|
%python_uninstall_alternative argparse-manpage
|
||||||
|
|||||||
Reference in New Issue
Block a user