Compare commits

..

No commits in common. "94b89e491d4f7cff13d8199ce5c716c3d681ba5c" and "41ee191d192918298ebd9a5b06d3692fdbeb76fd" have entirely different histories.

3 changed files with 16 additions and 26 deletions

BIN
MarkupSafe-1.1.1.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -4,20 +4,23 @@ Characters that have special meanings are replaced so that they display as the a
This mitigates injection attacks, meaning untrusted user input can safely be displayed on a page. This mitigates injection attacks, meaning untrusted user input can safely be displayed on a page.
Name: python-markupsafe Name: python-markupsafe
Version: 2.0.1 Version: 1.1.1
Release: 3 Release: 6
Summary: Safely add untrusted strings to HTML/XML markup. Summary: Safely add untrusted strings to HTML/XML markup.
License: BSD License: BSD
URL: https://pypi.org/project/MarkupSafe/ URL: https://pypi.org/project/MarkupSafe/
Source0: https://files.pythonhosted.org/packages/source/M/MarkupSafe/MarkupSafe-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/source/M/MarkupSafe/MarkupSafe-%{version}.tar.gz
%description %_description %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 %package -n python3-markupsafe
Summary: %{summary} Summary: %{summary}
BuildRequires: python3-devel python3-setuptools gcc BuildRequires: python3-devel python2-setuptools
Provides: python%{python3_pkgversion}dist(markupsafe) = %{version}
Provides: python%{python3_version}dist(markupsafe) = %{version}
%{?python_provide:%python_provide python3-markupsafe} %{?python_provide:%python_provide python3-markupsafe}
%description -n python3-markupsafe %_description %description -n python3-markupsafe %_description
@ -28,16 +31,24 @@ Provides: python%{python3_version}dist(markupsafe) = %{version}
%autosetup -n MarkupSafe-%{version} %autosetup -n MarkupSafe-%{version}
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
%check %check
%{__python2} setup.py test
%{__python3} setup.py test %{__python3} setup.py test
%files -n python2-markupsafe
%{python2_sitearch}/*.egg-info/
%exclude %{python2_sitearch}/markupsafe/_speedups.c
%{python2_sitearch}/markupsafe/
%files -n python3-markupsafe %files -n python3-markupsafe
%{python3_sitearch}/*.egg-info/ %{python3_sitearch}/*.egg-info/
%exclude %{python3_sitearch}/markupsafe/_speedups.c %exclude %{python3_sitearch}/markupsafe/_speedups.c
@ -47,27 +58,6 @@ Provides: python%{python3_version}dist(markupsafe) = %{version}
%doc README.rst %doc README.rst
%changelog %changelog
* Wed Oct 26 2022 zhangruifang <zhangruifang1@h-partners.com> - 2.0.1-3
- Rebuild for next release
* Wed Dec 29 2021 shixuantong <shixuantong@huawei.com> - 2.0.1-2
- provide pythonXdist(markupsafe)
* Thu Nov 25 2021 liudabo <liudabo1@huawei.com> - 2.0.1-1
- upgrade version to 2.0.1
* Wed Jun 23 2021 yuanxin<yuanxin24@huawei.com> - 1.1.1-8
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:add buildrequires gcc
* Fri Oct 30 2020 wuchaochao <wuchaochao4@huawei.com> - 1.1.1-7
- Type:bufix
- CVE:NA
- SUG:NA
- DESC:remove python2
* Sat Jul 25 2020 tianwei <tianwei12@huawei.com> - 1.1.1-6 * Sat Jul 25 2020 tianwei <tianwei12@huawei.com> - 1.1.1-6
- Type:enhancement - Type:enhancement
- ID:NA - ID:NA