|
|
|
@ -1,59 +1,113 @@
|
|
|
|
|
Name: python-markupsafe
|
|
|
|
|
Version: 1.1.1
|
|
|
|
|
Release: 12%{?dist}
|
|
|
|
|
Version: 2.1.3
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Summary: Implements a XML/HTML/XHTML Markup safe string for Python
|
|
|
|
|
License: BSD
|
|
|
|
|
URL: https://pypi.org/project/MarkupSafe/
|
|
|
|
|
Source0: %pypi_source MarkupSafe
|
|
|
|
|
License: BSD-3-Clause
|
|
|
|
|
URL: https://palletsprojects.com/p/markupsafe/
|
|
|
|
|
Source: https://github.com/pallets/markupsafe/archive/%{version}/markupsafe-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
A library for safe markup escaping.
|
|
|
|
|
%description %_description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-markupsafe
|
|
|
|
|
Summary: Implements a XML/HTML/XHTML Markup safe string for Python 3
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3dist(setuptools)
|
|
|
|
|
%{?python_provide:%python_provide python3-markupsafe}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
|
|
%description -n python3-markupsafe
|
|
|
|
|
A library for safe markup escaping. Python 3 version.
|
|
|
|
|
%description -n python3-markupsafe %_description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n MarkupSafe-%{version}
|
|
|
|
|
%autosetup -n markupsafe-%{version}
|
|
|
|
|
# Exclude C source from the package:
|
|
|
|
|
echo 'global-exclude *.c' >> MANIFEST.in
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%pyproject_buildrequires requirements/tests.in
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
# C code errantly gets installed
|
|
|
|
|
rm %{buildroot}%{python3_sitearch}/markupsafe/*.c
|
|
|
|
|
%pyproject_install
|
|
|
|
|
%pyproject_save_files markupsafe
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
%pytest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-markupsafe
|
|
|
|
|
%license LICENSE.rst
|
|
|
|
|
%files -n python3-markupsafe -f %{pyproject_files}
|
|
|
|
|
%doc CHANGES.rst README.rst
|
|
|
|
|
%{python3_sitearch}/MarkupSafe-%{version}-py%{python3_version}.egg-info/
|
|
|
|
|
%{python3_sitearch}/markupsafe/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.1-12
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2.1.3-6
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 2.1.3-5
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.1.3-5
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.3-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.3-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.3-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 16 2023 Ryan Erickson <rerickso@redhat.com> - 2.1.3-1
|
|
|
|
|
- Update to 2.1.3
|
|
|
|
|
- Fixes: rhbz#2211988
|
|
|
|
|
|
|
|
|
|
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 2.1.2-2
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Fri Jan 27 2023 Miro Hrončok <mhroncok@redhat.com> - 2.1.2-1
|
|
|
|
|
- Update to 2.1.2
|
|
|
|
|
- Fixes: rhbz#2161767
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.1.1-2
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
* Wed Mar 09 2022 Charalampos Stratakis <cstratak@redhat.com> - 2.1.1-1
|
|
|
|
|
- Update to 2.1.1
|
|
|
|
|
- Fixes: rhbz#2064300
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 22 2021 Lumír Balhar <lbalhar@redhat.com> - 2.0.0-1
|
|
|
|
|
- Update to 2.0.0
|
|
|
|
|
Resolves: rhbz#1823024
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.1-11
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 1.1.1-11
|
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|