diff --git a/MarkupSafe-2.1.5.tar.gz b/MarkupSafe-2.1.5.tar.gz deleted file mode 100644 index e63f1921dd25fabe791b7356c08b62edbe32eabb..0000000000000000000000000000000000000000 Binary files a/MarkupSafe-2.1.5.tar.gz and /dev/null differ diff --git a/markupsafe-3.0.2.tar.gz b/markupsafe-3.0.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..21376e1a6a4436df4dccd49b38bd219b19584951 Binary files /dev/null and b/markupsafe-3.0.2.tar.gz differ diff --git a/python-markupsafe.spec b/python-markupsafe.spec index 4eb2b280fb0887660ce306ed3a81d2ec887451d3..2784d79879bd2d8e4079ebd95ad2a88a12b1a4ab 100644 --- a/python-markupsafe.spec +++ b/python-markupsafe.spec @@ -4,18 +4,20 @@ Characters that have special meanings are replaced so that they display as the a This mitigates injection attacks, meaning untrusted user input can safely be displayed on a page. Name: python-markupsafe -Version: 2.1.5 +Version: 3.0.2 Release: 1 Summary: Safely add untrusted strings to HTML/XML markup. License: BSD URL: https://pypi.org/project/MarkupSafe/ -Source0: https://files.pythonhosted.org/packages/source/M/MarkupSafe/MarkupSafe-%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/M/MarkupSafe/markupsafe-%{version}.tar.gz %description %_description %package -n python3-markupsafe Summary: %{summary} BuildRequires: python3-devel python3-setuptools gcc +BuildRequires: python3-pytest python3-pip python3-wheel python3-pbr + %{?python_provide:%python_provide python3-markupsafe} %description -n python3-markupsafe %_description @@ -23,7 +25,7 @@ BuildRequires: python3-devel python3-setuptools gcc %package_help %prep -%autosetup -n MarkupSafe-%{version} +%autosetup -n markupsafe-%{version} %build %py3_build @@ -31,20 +33,27 @@ BuildRequires: python3-devel python3-setuptools gcc %install %py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi %check %{__python3} setup.py test - %files -n python3-markupsafe %{python3_sitearch}/*.egg-info/ %exclude %{python3_sitearch}/markupsafe/_speedups.c %{python3_sitearch}/markupsafe/ %files help -%doc README.rst +%{_docdir}/* %changelog +* Fri Jun 13 2025 yanyu - 3.0.2-1 +- Update package to version 3.0.2 + * Wed Jun 12 2024 zeng liwen - 2.1.5-1 - Update to 2.1.5 - Don’t use regular expressions for striptags, avoiding a performance issue