[packages/python3-legacy-cgi] new

atler atler at pld-linux.org
Mon Apr 14 15:36:55 CEST 2025


commit 18f30597f1c94446afc3f36ddeffd8a177b353d9
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Apr 14 14:56:34 2025 +0200

    new

 python3-legacy-cgi.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)
---
diff --git a/python3-legacy-cgi.spec b/python3-legacy-cgi.spec
new file mode 100644
index 0000000..894fc2c
--- /dev/null
+++ b/python3-legacy-cgi.spec
@@ -0,0 +1,48 @@
+
+%define 	pypi_name	legacy_cgi
+Summary:	Fork of the standard library cgi and cgitb modules removed in Python 3.13
+Name:		python3-legacy-cgi
+Version:	2.6.3
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/legacy_cgi/
+Source0:	https://files.pythonhosted.org/packages/source/l/legacy_cgi/%{pypi_name}-%{version}.tar.gz
+# Source0-md5:	1c3a19d6391b0f87e5f52e4846a91a8a
+URL:		https://github.com/jackrosenthal/legacy-cgi
+BuildRequires:	python3-build
+BuildRequires:	python3-hatchling
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.8
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.044
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Fork of the standard library cgi and cgitb modules removed in Python
+3.13.
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+
+%{__sed} -i -e '1s,#!.*/usr/local/bin/python,#!%{__python3},' cgi.py
+
+%build
+%py3_build_pyproject
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%{py3_sitescriptdir}/cgi.py
+%{py3_sitescriptdir}/cgitb.py
+%{py3_sitescriptdir}/__pycache__
+%{py3_sitescriptdir}/%{pypi_name}-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-legacy-cgi.git/commitdiff/18f30597f1c94446afc3f36ddeffd8a177b353d9



More information about the pld-cvs-commit mailing list