commit 531fcf3a9b657a4d5146df2ad001bd9528c36aef Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:15:16 2019 -0400 Package init diff --git a/MarkupSafe-1.0.tar.gz b/MarkupSafe-1.0.tar.gz new file mode 100644 index 0000000..606021a Binary files /dev/null and b/MarkupSafe-1.0.tar.gz differ diff --git a/python-markupsafe.spec b/python-markupsafe.spec new file mode 100644 index 0000000..6146a19 --- /dev/null +++ b/python-markupsafe.spec @@ -0,0 +1,64 @@ +%global _description\ +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. + +Name: python-markupsafe +Version: 1.0 +Release: 2 +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 + +%description %_description +%package -n python2-markupsafe +Summary: %{summary} +BuildRequires: python2-devel python2-setuptools +%{?python_provide:%python_provide python2-markupsafe} +%description -n python2-markupsafe %_description + +%package -n python3-markupsafe +Summary: %{summary} +BuildRequires: python3-devel python2-setuptools +%{?python_provide:%python_provide python3-markupsafe} + +%description -n python3-markupsafe %_description + +%package_help + +%prep +%autosetup -n MarkupSafe-%{version} + +%build +%py2_build +%py3_build + + +%install +%py2_install +%py3_install + +%check +%{__python2} setup.py test +%{__python3} setup.py test + + +%files -n python2-markupsafe +%license LICENSE +%{python2_sitearch}/*.egg-info/ +%exclude %{python2_sitearch}/markupsafe/_speedups.c +%{python2_sitearch}/markupsafe/ + +%files -n python3-markupsafe +%license LICENSE +%{python3_sitearch}/*.egg-info/ +%exclude %{python3_sitearch}/markupsafe/_speedups.c +%{python3_sitearch}/markupsafe/ + +%files help +%doc AUTHORS CHANGES README.rst + +%changelog +* Mon Sep 16 2019 openEuler Buildteam - 1.0-2 +- Package init