diff --git a/MarkupSafe-0.23.tar.gz b/MarkupSafe-0.23.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..6b190061e6fa60a46e9cfbf1a2e76f9646223967 Binary files /dev/null and b/MarkupSafe-0.23.tar.gz differ diff --git a/MarkupSafe-1.1.1.tar.gz b/MarkupSafe-1.1.1.tar.gz deleted file mode 100644 index a6dad8e8548c37cd3a2888fad72eeed547c0997e..0000000000000000000000000000000000000000 Binary files a/MarkupSafe-1.1.1.tar.gz and /dev/null differ diff --git a/python-markupsafe.spec b/python-markupsafe.spec index 79cc6678f225b51fb60f7dc9114c627e28cdcaf1..1e1fd2edddd83f6978379dc88fe3d3d10cd9819e 100644 --- a/python-markupsafe.spec +++ b/python-markupsafe.spec @@ -1,67 +1,80 @@ -%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.1.1 -Release: 7 -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 python3-markupsafe -Summary: %{summary} -BuildRequires: python3-devel python3-setuptools -%{?python_provide:%python_provide python3-markupsafe} - -%description -n python3-markupsafe %_description - -%package_help +%global _empty_manifest_terminate_build 0 +Name: python-markupsafe +Version: 0.23 +Release: 1 +Summary: Implements a XML/HTML/XHTML Markup safe string for Python +License: BSD +URL: http://github.com/mitsuhiko/markupsafe +Source0: https://files.pythonhosted.org/packages/c0/41/bae1254e0396c0cc8cf1751cb7d9afc90a602353695af5952530482c963f/MarkupSafe-0.23.tar.gz +%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, meaningi +untrusted user input can safely be displayed on a page. + +%package -n python2-markupsafe +Summary: Implements a XML/HTML/XHTML Markup safe string for Python +Provides: python2-markupsafe +BuildRequires: python2-devel +BuildRequires: python2-setuptools +%description -n python2-markupsafe +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, meaningi +untrusted user input can safely be displayed on a page. + +%package help +Summary: Development documents and examples for MarkupSafe +Provides: python2-markupsafe-doc +%description help +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, meaningi +untrusted user input can safely be displayed on a page. %prep -%autosetup -n MarkupSafe-%{version} +%autosetup -n MarkupSafe-0.23 %build -%py3_build - +%py2_build %install -%py3_install +%py2_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 +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . %check -%{__python3} setup.py test - +%{__python2} setup.py test -%files -n python3-markupsafe -%{python3_sitearch}/*.egg-info/ -%exclude %{python3_sitearch}/markupsafe/_speedups.c -%{python3_sitearch}/markupsafe/ +%files -n python2-markupsafe -f filelist.lst +%dir %{python2_sitearch}/* -%files help -%doc README.rst +%files help -f doclist.lst +%{_docdir}/* %changelog -* Fri Oct 30 2020 wuchaochao - 1.1.1-7 -- Type:bufix -- CVE:NA -- SUG:NA -- DESC:remove python2 - -* Sat Jul 25 2020 tianwei - 1.1.1-6 -- Type:enhancement -- ID:NA -- SUG:NA -- DESC:update to release 1.1.1 - -* Fri Oct 11 2019 yefei - 1.0-3 -- Type:enhancement -- ID:NA -- SUG:NA -- DESC:move author from doc to license - -* Mon Sep 16 2019 openEuler Buildteam - 1.0-2 -- Package init +* Mon May 17 2021 OpenStack_SIG +- Package Spec generated