## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global srcname sphinx-argparse-cli %global importname sphinx_argparse_cli %global forgeurl https://github.com/tox-dev/sphinx-argparse-cli Version: 1.11.1 %forgemeta Name: python-%{srcname} Release: %autorelease Summary: Render CLI arguments defined by the argparse module License: MIT URL: %forgeurl Source: %forgesource Patch: no-coverage.patch BuildRequires: python3-devel BuildArch: noarch %global _description %{expand: Render CLI arguments (sub-commands friendly) defined by the argparse module. For live demo check out the documentation of tox, pypa-build and mdpo.} %description %_description %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %_description %prep %autosetup -p1 -n %{srcname}-%{version} sed -i '/name = "sphinx-argparse-cli"/a version = "%{version}"' \ pyproject.toml sed -i '/version.source = "vcs"/d' pyproject.toml sed -i '/"version",/{n;d;}' pyproject.toml sed -i '/ "version",/d' pyproject.toml sed -i '/^dynamic = \[/d' pyproject.toml # relax version requirement sed -i 's/sphinx>=7.0.1/sphinx>=5.0.0/g' pyproject.toml ver=%{version} ver_comma=${ver//./, } touch version.py echo "__version__ = version = '%{version}'" > version.py echo "__version_tuple__ = version_tuple = (${ver_comma})" >> version.py mv version.py src/sphinx_argparse_cli/ chmod 644 src/sphinx_argparse_cli/version.py %generate_buildrequires %pyproject_buildrequires -x build-system -t %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{importname} %check %pyproject_check_import %tox -- -- --verbose %files -n python3-%{srcname} -f %{pyproject_files} %changelog ## START: Generated by rpmautospec * Fri Jan 26 2024 Fedora Release Engineering - 1.11.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.11.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Nov 05 2023 Benson Muite - 1.11.1-2 - Relax sphinx version requirement * Sun Nov 05 2023 Benson Muite - 1.11.1-1 - Initial import BZ2247917 ## END: Generated by rpmautospec