diff --git a/MarkupSafe-2.1.1.tar.gz b/MarkupSafe-2.1.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..3bc5b50d72165b00d5a6ff1aae57f6b171dec254 Binary files /dev/null and b/MarkupSafe-2.1.1.tar.gz differ diff --git a/python-markupsafe.spec b/python-markupsafe.spec new file mode 100644 index 0000000000000000000000000000000000000000..14687caa399fc4e662cf12e539836b37050b0204 --- /dev/null +++ b/python-markupsafe.spec @@ -0,0 +1,55 @@ +%define anolis_release 1 +Name: python-markupsafe +Version: 2.1.1 +Release: %{anolis_release}%{dist} +Summary: Implements a XML/HTML/XHTML Markup safe string for Python +License: BSD +URL: https://pypi.org/project/MarkupSafe/ +Source0: %pypi_source MarkupSafe + +BuildRequires: gcc + +%description +A library for safe markup escaping. + + +%package -n python3-markupsafe +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 +A library for safe markup escaping. Python 3 version. + + +%prep +%autosetup -n MarkupSafe-%{version} + + +%build +%py3_build + + +%install +%py3_install +# C code errantly gets installed +rm %{buildroot}%{python3_sitearch}/markupsafe/*.c + + +%check +%pytest + + +%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 +* Tue Apr 19 2022 Zhongling He 2.1.1-1 +- Init package from upstream v2.1.1