## START: Set by rpmautospec ## (rpmautospec version 0.6.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 pypi_name legacy-cgi %global pypi_version 2.6 Name: python-%{pypi_name} Version: %{pypi_version} Release: %autorelease Summary: Fork of the standard library cgi and cgitb modules License: Python-2.0.1 URL: https://github.com/jackrosenthal/python-cgi Source0: %{pypi_source} # The following patch restores a standard python bash # that it can then be detected and properly adjusted by the py3_shebang macro Patch: python_bash.patch BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: Python CGI This is a fork of the standard library modules cgi and cgitb. They are slated to be removed from the Python standard library in Python 3.13. The purpose of this fork is to support existing CGI scripts using these modules.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %autosetup -p1 -n %{pypi_name}-%{pypi_version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files cgi cgitb %check %pyproject_check_import # No other tests provided %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %changelog ## START: Generated by rpmautospec * Fri Jun 14 2024 John Doe - 2.6-1 - Uncommitted changes ## END: Generated by rpmautospec