diff --git a/base/python-markupsafe/python-markupsafe.spec b/base/python-markupsafe/python-markupsafe.spec new file mode 100644 index 0000000..1db8e89 --- /dev/null +++ b/base/python-markupsafe/python-markupsafe.spec @@ -0,0 +1,53 @@ +Name: python-markupsafe +Version: 2.1.5 +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: gcc +BuildRequires: pyproject-rpm-macros +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-wheel +BuildRequires: python%{python3_pkgversion}-pytest + +%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 + + +%package -n python%{python3_pkgversion}-markupsafe +Summary: %{summary} + +%description -n python%{python3_pkgversion}-markupsafe %_description + + +%prep +%autosetup -n markupsafe-%{version} +# Exclude C source from the package: +echo 'global-exclude *.c' >> MANIFEST.in + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files markupsafe + + +%check +%pytest + + +%files -n python%{python3_pkgversion}-markupsafe -f %{pyproject_files} +%doc CHANGES.rst README.rst +