## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 commit 5e157372a314c998e57ac00b6fd24321942b34ba %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global date 20240614 Name: python-legacy-cgi Version: 2.6^%{date}.%{shortcommit} Release: %autorelease Summary: Fork of the standard library cgi and cgitb modules License: Python-2.0.1 URL: https://github.com/jackrosenthal/python-cgi Source: %{url}/archive/%{commit}/python-cgi-%{commit}.tar.gz 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 python-cgi-%{commit} %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 * 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