diff --git a/.python-markupsafe.metadata b/.python-markupsafe.metadata index 78bc33b..11a5a66 100644 --- a/.python-markupsafe.metadata +++ b/.python-markupsafe.metadata @@ -1 +1 @@ -00b0890901e52b57353e3f66e3c66f9fbb8f4881 SOURCES/markupsafe-2.1.2.tar.gz +8bd9855f5b92145b6bc0d38cc241d0253cccc5a8 SOURCES/MarkupSafe-2.1.1.tar.gz diff --git a/SPECS/python-markupsafe.spec b/SPECS/python-markupsafe.spec index 8b3976b..9a05ff4 100644 --- a/SPECS/python-markupsafe.spec +++ b/SPECS/python-markupsafe.spec @@ -1,63 +1,55 @@ Name: python-markupsafe -Version: 2.1.2 -Release: 1%{?dist} +Version: 2.1.1 +Release: 4%{?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 +License: BSD +URL: https://pypi.org/project/MarkupSafe/ +Source0: %pypi_source MarkupSafe 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: %{summary} +Summary: Implements a XML/HTML/XHTML Markup safe string for Python 3 +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) +# Test dependencies +BuildRequires: python3dist(pytest) +%{?python_provide:%python_provide python3-markupsafe} -%description -n python3-markupsafe %_description +%description -n python3-markupsafe +A library for safe markup escaping. Python 3 version. %prep -%autosetup -n markupsafe-%{version} -# Exclude C source from the package: -echo 'global-exclude *.c' >> MANIFEST.in - - -%generate_buildrequires -%pyproject_buildrequires requirements/tests.in +%autosetup -n MarkupSafe-%{version} %build -%pyproject_wheel +%py3_build %install -%pyproject_install -%pyproject_save_files markupsafe +%py3_install +# C code errantly gets installed +rm %{buildroot}%{python3_sitearch}/markupsafe/*.c %check %pytest -%files -n python3-markupsafe -f %{pyproject_files} +%files -n python3-markupsafe +%license LICENSE.rst %doc CHANGES.rst README.rst +%{python3_sitearch}/MarkupSafe-%{version}-py%{python3_version}.egg-info/ +%{python3_sitearch}/markupsafe/ %changelog -* 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