diff --git a/.python-markupsafe.metadata b/.python-markupsafe.metadata index 54e2f5e..c2a65e6 100644 --- a/.python-markupsafe.metadata +++ b/.python-markupsafe.metadata @@ -1 +1 @@ -cd5c22acf6dd69046d6cb6a3920d84ea66bdf62a SOURCES/MarkupSafe-0.23.tar.gz +b6119f76288f18943119c77edc808bf69adf3a4d SOURCES/markupsafe-3.0.2.tar.gz diff --git a/SOURCES/.gitignore b/SOURCES/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/SOURCES/.gitignore diff --git a/SPECS/python-markupsafe.spec b/SPECS/python-markupsafe.spec index 67baae5..9861e5f 100644 --- a/SPECS/python-markupsafe.spec +++ b/SPECS/python-markupsafe.spec @@ -1,55 +1,167 @@ -Name: python-markupsafe -Version: 0.23 -Release: 19%{?dist} -Summary: Implements a XML/HTML/XHTML Markup safe string for Python -Group: Development/Languages -License: BSD -URL: http://pypi.python.org/pypi/MarkupSafe -Source0: http://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-%{version}.tar.gz +Name: python-markupsafe +Version: 3.0.2 +Release: 1%{?dist} +Summary: Implements a XML/HTML/XHTML Markup safe string for Python +License: BSD-3-Clause +URL: https://palletsprojects.com/p/markupsafe/ +Source: https://github.com/pallets/markupsafe/archive/%{version}/markupsafe-%{version}.tar.gz -BuildRequires: python3-devel python3-setuptools +BuildRequires: gcc +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros + +%global _description %{expand: +MarkupSafe implements a text object that escapes characters so it is +safe to use in HTML and XML. Characters that have special meanings are +replaced so that they display as the actual characters. This mitigates +injection attacks, meaning untrusted user input can safely be displayed +on a page.} + +%description %_description -%description -A library for safe markup escaping. %package -n python3-markupsafe -Summary: Implements a XML/HTML/XHTML Markup safe string for Python 3 -Group: Development/Languages -%{?python_provide:%python_provide python3-markupsafe} +Summary: %{summary} + +%description -n python3-markupsafe %_description -%description -n python3-markupsafe -A library for safe markup escaping. %prep -%setup -q -n MarkupSafe-%{version} +%autosetup -n markupsafe-%{version} +# Exclude C source from the package: +echo 'global-exclude *.c' >> MANIFEST.in +# Allow older setuptools +sed -i '/setuptools/s/>=.*"/"/' pyproject.toml + +%generate_buildrequires +%pyproject_buildrequires requirements/tests.in + %build -%py3_build +%pyproject_wheel + %install -%py3_install -# C code errantly gets installed -rm $RPM_BUILD_ROOT/%{python3_sitearch}/markupsafe/*.c +%pyproject_install +%pyproject_save_files markupsafe %check -%{__python3} setup.py test +%pytest -%files -n python3-markupsafe -%license LICENSE -%doc AUTHORS README.rst -%{python3_sitearch}/* +%files -n python3-markupsafe -f %{pyproject_files} +%doc CHANGES.rst README.md %changelog -* Wed Jul 11 2018 Petr Viktorin - 0.23-19 -- Remove the Python 2 subpackage - https://bugzilla.redhat.com/show_bug.cgi?id=1590415 +* Wed Oct 23 2024 Lumir Balhar - 3.0.2-1 +- Update to 3.0.2 (rhbz#2317087) + +* Thu Jul 25 2024 Karolina Surma - 2.1.5-4 +- Add a simple smoke test + +* Fri Jul 19 2024 Fedora Release Engineering - 2.1.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 2.1.5-2 +- Rebuilt for Python 3.13 + +* Mon Mar 25 2024 Charalampos Stratakis - 2.1.5-1 +- Update to 2.1.5 +- Resolves: rhbz#2259296 + +* Fri Jan 26 2024 Fedora Release Engineering - 2.1.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 2.1.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 2.1.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jun 16 2023 Ryan Erickson - 2.1.3-1 +- Update to 2.1.3 +- Fixes: rhbz#2211988 + +* Tue Jun 13 2023 Python Maint - 2.1.2-2 +- Rebuilt for Python 3.12 + +* Fri Jan 27 2023 Miro Hrončok - 2.1.2-1 +- Update to 2.1.2 +- Fixes: rhbz#2161767 + +* Fri Jan 20 2023 Fedora Release Engineering - 2.1.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 2.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 2.1.1-2 +- Rebuilt for Python 3.11 + +* Wed Mar 09 2022 Charalampos Stratakis - 2.1.1-1 +- Update to 2.1.1 +- Fixes: rhbz#2064300 -* Mon Jun 25 2018 Lumír Balhar - 0.23-18 -- Allow build with Python 2 +* Fri Jan 21 2022 Fedora Release Engineering - 2.0.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 2.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jun 22 2021 Lumír Balhar - 2.0.0-1 +- Update to 2.0.0 +Resolves: rhbz#1823024 + +* Wed Jun 02 2021 Python Maint - 1.1.1-11 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.1.1-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Dec 21 2020 Miro Hrončok - 1.1.1-9 +- Disable Python 2 entirely + +* Wed Nov 25 2020 Miro Hrončok - 1.1.1-8 +- Disable Python 2 in ELN + +* Wed Jul 29 2020 Fedora Release Engineering - 1.1.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri May 22 2020 Miro Hrončok - 1.1.1-6 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.1.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 1.1.1-4 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Thu Aug 15 2019 Miro Hrončok - 1.1.1-3 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Wed Feb 27 2019 Miro Hrončok - 1.1.1-1 +- Update to 1.1.1 (#1680333) + +* Mon Feb 18 2019 Yatin Karel - 1.1.0-1 +- Update to 1.1.0 + +* Sat Feb 02 2019 Fedora Release Engineering - 1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Jul 31 2018 Miro Hrončok - 1.0-1 +- Update to 1.0 (#1430160) + +* Sat Jul 14 2018 Fedora Release Engineering - 0.23-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Jun 14 2018 Miro Hrončok - 0.23-18 +- Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 0.23-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild @@ -148,3 +260,4 @@ rm $RPM_BUILD_ROOT/%{python3_sitearch}/markupsafe/*.c * Wed Jun 23 2010 Kyle VanderBeek - 0.9.2-1 - Initial version. +