!4 Upgrade to 1.13

From: @wu-leilei 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
This commit is contained in:
openeuler-ci-bot 2023-05-05 07:50:20 +00:00 committed by Gitee
commit 2579844009
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 12 additions and 27 deletions

View File

@ -1,11 +1,12 @@
%global _empty_manifest_terminate_build 0
Name: python-webcolors
Version: 1.12
Version: 1.13
Release: 1
Summary: A library for working with color names and color values formats defined by HTML and CSS.
License: BSD 3-Clause
URL: https://github.com/ubernostrum/webcolors
Source0: https://files.pythonhosted.org/packages/5f/f5/004dabd8f86abe0e770df4bcde8baf658709d3ebdd4d8fa835f6680012bb/webcolors-1.12.tar.gz
Source0: https://files.pythonhosted.org/packages/a1/fb/f95560c6a5d4469d9c49e24cf1b5d4d21ffab5608251c6020a965fb7791c/webcolors-1.13.tar.gz
BuildRequires: python3-pip python3-wheel
BuildArch: noarch
@ -39,43 +40,27 @@ Provides: python3-webcolors-doc
%autosetup -n webcolors-%{version}
%build
%py3_build
%pyproject_build
%install
%py3_install
%pyproject_install webcolors==%{version}
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 .
%files -n python3-webcolors -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%files -n python3-webcolors
%{python3_sitelib}/*
%files help
%{_docdir}/*
%changelog
* Fri Apr 28 2023 wulei <wu_lei@hoperun.com> - 1.13-1
- Update to 1.13
* Wed Sep 14 2022 Qiao Jijun <qiaojijun@kylinos.cn> - 1.12-1
- Update to 1.12

Binary file not shown.

BIN
webcolors-1.13.tar.gz Normal file

Binary file not shown.