!7 Upgrade to latest release [python-bleach -> 6.0.0]

From: @Wangjunqi123 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2023-03-07 14:59:50 +00:00 committed by Gitee
commit 189a0f92cc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 15 additions and 10 deletions

Binary file not shown.

BIN
bleach-6.0.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,26 +1,24 @@
%global _empty_manifest_terminate_build 0
Name: python-bleach
Version: 5.0.1
Version: 6.0.0
Release: 1
Summary: An easy safelist-based HTML-sanitizing tool.
License: Apache-2.0
URL: https://github.com/mozilla/bleach
Source0: https://files.pythonhosted.org/packages/c2/5d/d5d45a38163ede3342d6ac1ca01b5d387329daadf534a25718f9a9ba818c/bleach-5.0.1.tar.gz
Source0: https://files.pythonhosted.org/packages/7e/e6/d5f220ca638f6a25557a611860482cb6e54b2d97f0332966b1b005742e1f/bleach-6.0.0.tar.gz
BuildArch: noarch
Requires: python3-six
Requires: python3-webencodings
Recommends: %{name}-help = %{version}-%{release}
%description
Bleach is an HTML sanitizing library that escapes or strips markup and
attributes based on a white list.
%package -n python3-bleach
Summary: An easy safelist-based HTML-sanitizing tool.
Provides: python-bleach
Provides: python-bleach = %{version}-%{release}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Requires: python3-six
Requires: python3-webencodings
%description -n python3-bleach
Bleach is an HTML sanitizing library that escapes or strips markup and
attributes based on a white list.
@ -29,10 +27,11 @@ attributes based on a white list.
Summary: Development documents and examples for bleach
Provides: python3-bleach-doc
%description help
Development documents and examples for bleach
Bleach is an HTML sanitizing library that escapes or strips markup and
attributes based on a white list.
%prep
%autosetup -n bleach-5.0.1
%autosetup -n bleach-%{version}
%build
%py3_build
@ -44,6 +43,9 @@ 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
if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
@ -72,6 +74,9 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/*
%changelog
* Mon Mar 06 2023 wangjunqi <wangjunqi@kylinos.cn> - 6.0.0-1
- Update package to version 6.0.0
* Wed Aug 10 2022 liqiuyu <liqiuyu@kylinos.cn> - 5.0.1-1
- update to 5.0.1
@ -79,4 +84,4 @@ mv %{buildroot}/doclist.lst .
- add installation dependency and description information
* Thu Oct 22 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 3.2.1-1
- package init
- package init