## START: Set by rpmautospec ## (rpmautospec version 0.7.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 forgeurl https://github.com/jackrosenthal/python-cgi Version: 2.6.1 %forgemeta Name: python-legacy-cgi Release: %autorelease Summary: Fork of the standard library cgi and cgitb modules License: Python-2.0.1 URL: %{forgeurl} Source: %{forgesource} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) %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-legacy-cgi Summary: %{summary} %py_provides python3-cgi %description -n python3-legacy-cgi %_description %prep %autosetup -p1 -n legacy-cgi-%{version} %py3_shebang_fix cgi.py %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files cgi cgitb %check %pyproject_check_import %pytest %files -n python3-legacy-cgi -f %{pyproject_files} %license LICENSE %doc README.rst %changelog ## START: Generated by rpmautospec * Wed Dec 18 2024 Mattia Verga - 2.6.1-1 - Update to 2.6.1 * Fri Jul 19 2024 Fedora Release Engineering - 2.6^20240614.5e15737-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 14 2024 Mattia Verga - 2.6^20240614.5e15737-1 - Initial release (fedora#2292378) ## END: Generated by rpmautospec