[packages/python3-legacy-cgi] - updated to 2.6.4, obsoletes deadlib packages
qboosh
qboosh at pld-linux.org
Wed Nov 5 05:55:22 CET 2025
commit b1681b8f99a4dcff02a25796370ffc58c90af9c0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Nov 5 05:55:18 2025 +0100
- updated to 2.6.4, obsoletes deadlib packages
python3-legacy-cgi.spec | 22 +++++++++++++++++++---
1 file changed, 19 insertions(+), 3 deletions(-)
---
diff --git a/python3-legacy-cgi.spec b/python3-legacy-cgi.spec
index 0c2c647..4036976 100644
--- a/python3-legacy-cgi.spec
+++ b/python3-legacy-cgi.spec
@@ -1,14 +1,18 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
%define pypi_name legacy_cgi
Summary: Fork of the standard library cgi and cgitb modules removed in Python 3.13
+Summary(pl.UTF-8): Odgałęzienie modułów cgi i cgitb, usuniętych z biblioteki standardowej Pythona 3.13
Name: python3-legacy-cgi
-Version: 2.6.3
+Version: 2.6.4
Release: 1
License: PSF v2
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
+# Source0-md5: bbb85dff278de9bf03a3f4e941398ea1
URL: https://github.com/jackrosenthal/legacy-cgi
BuildRequires: python3-build
BuildRequires: python3-hatchling
@@ -16,6 +20,9 @@ BuildRequires: python3-installer
BuildRequires: python3-modules >= 1:3.8
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 2.044
+BuildRequires: sed >= 4.0
+Obsoletes: python3-standard-cgi < 3.14
+Obsoletes: python3-standard-cgitb < 3.14
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -23,6 +30,10 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Fork of the standard library cgi and cgitb modules removed in Python
3.13.
+%description -l pl.UTF-8
+Odgałęzienie modułów cgi i cgitb, usuniętych z biblioteki standardowej
+Pythona 3.13.
+
%prep
%setup -q -n %{pypi_name}-%{version}
@@ -31,6 +42,11 @@ Fork of the standard library cgi and cgitb modules removed in Python
%build
%py3_build_pyproject
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest tests
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
@@ -41,7 +57,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc LICENSE README.rst
+%doc README.rst
%{py3_sitescriptdir}/cgi.py
%{py3_sitescriptdir}/cgitb.py
%{py3_sitescriptdir}/__pycache__
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-legacy-cgi.git/commitdiff/b1681b8f99a4dcff02a25796370ffc58c90af9c0
More information about the pld-cvs-commit
mailing list