From f7662d027bc4310015792055639923df8359b5efc27512dab78edfe61da282a0 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 17 Nov 2025 21:16:11 +0000 Subject: [PATCH] - update to 2.6.4: * Fixed #11 (Modern versions of apache dislike cgitb's header reset trick). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-legacy-cgi?expand=0&rev=9 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + legacy_cgi-2.6.3.tar.gz | 3 ++ legacy_cgi-2.6.4.tar.gz | 3 ++ python-legacy-cgi.changes | 32 +++++++++++++++++++ python-legacy-cgi.spec | 66 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 128 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 legacy_cgi-2.6.3.tar.gz create mode 100644 legacy_cgi-2.6.4.tar.gz create mode 100644 python-legacy-cgi.changes create mode 100644 python-legacy-cgi.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/legacy_cgi-2.6.3.tar.gz b/legacy_cgi-2.6.3.tar.gz new file mode 100644 index 0000000..316b5a4 --- /dev/null +++ b/legacy_cgi-2.6.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c119d6cb8e9d8b6ad7cc0ddad880552c62df4029622835d06dfd18f438a8154 +size 24401 diff --git a/legacy_cgi-2.6.4.tar.gz b/legacy_cgi-2.6.4.tar.gz new file mode 100644 index 0000000..a766fbf --- /dev/null +++ b/legacy_cgi-2.6.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:abb9dfc7835772f7c9317977c63253fd22a7484b5c9bbcdca60a29dcce97c577 +size 24603 diff --git a/python-legacy-cgi.changes b/python-legacy-cgi.changes new file mode 100644 index 0000000..20402d6 --- /dev/null +++ b/python-legacy-cgi.changes @@ -0,0 +1,32 @@ +------------------------------------------------------------------- +Mon Nov 17 21:16:04 UTC 2025 - Dirk Müller + +- update to 2.6.4: + * Fixed #11 (Modern versions of apache dislike cgitb's header + reset trick). + +------------------------------------------------------------------- +Tue Jun 3 08:19:37 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 2.6.3 + * README updated + * Switched build system uv (hatchling is the PEP-517 backend) + * Supports back to Python 3.8 (not that this is useful, see + the README for information on recommended markers) +- Update BuildRequires from pyproject.toml + +------------------------------------------------------------------- +Wed Feb 5 08:08:47 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 2.6.2 + * Remove the <4 Python requirement + +------------------------------------------------------------------- +Sun Nov 3 14:53:59 UTC 2024 - eccsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Fri Oct 11 05:09:53 UTC 2024 - Steve Kowalik + +- Initial release of 2.6.1. diff --git a/python-legacy-cgi.spec b/python-legacy-cgi.spec new file mode 100644 index 0000000..7ec6de5 --- /dev/null +++ b/python-legacy-cgi.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-legacy-cgi +# +# Copyright (c) 2025 SUSE LLC and contributors +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-legacy-cgi +Version: 2.6.4 +Release: 0 +Summary: Fork of the standard library cgi and cgitb modules +License: Python-2.0 +URL: https://github.com/jackrosenthal/legacy-cgi +Source: https://files.pythonhosted.org/packages/source/l/legacy-cgi/legacy_cgi-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.10} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +This is a fork of the standard library modules ``cgi`` and ``cgitb``. +They are slated to be removed from the Python standard libary in +Python 3.13 by PEP-594_. + +%prep +%autosetup -p1 -n legacy_cgi-%{version} +# We don't want or a need a shebang +sed -i '1,11d' cgi.py +chmod -x cgi.py + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/cgi.py +%{python_sitelib}/cgitb.py +%pycache_only %{python_sitelib}/__pycache__/cgi.*.pyc +%pycache_only %{python_sitelib}/__pycache__/cgitb.*.pyc +%{python_sitelib}/legacy_cgi-%{version}.dist-info + +%changelog