!5 Upgrade package to version 3.0.0

From: @jxy_git 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2023-11-30 08:02:25 +00:00 committed by Gitee
commit 11ba0ba132
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 14 additions and 30 deletions

Binary file not shown.

BIN
cloudpickle-3.0.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,11 +1,11 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-cloudpickle Name: python-cloudpickle
Version: 2.2.1 Version: 3.0.0
Release: 1 Release: 1
Summary: Extended pickling support for Python objects Summary: Extended pickling support for Python objects
License: BSD 3-Clause License License: BSD 3-Clause License
URL: https://github.com/cloudpipe/cloudpickle URL: https://github.com/cloudpipe/cloudpickle
Source0: https://files.pythonhosted.org/packages/5f/51/913ecca3970a2227cf4d5e8937df52cc28f465ac442216110b8e3323262d/cloudpickle-2.2.1.tar.gz Source0: https://files.pythonhosted.org/packages/c8/72/42a6570fc61b1f8913529728ad314c7cf5961540728dcad22c33fb2db6b6/cloudpickle-3.0.0.tar.gz
BuildArch: noarch BuildArch: noarch
@ -14,9 +14,11 @@ Extended pickling support for Python objects
%package -n python3-cloudpickle %package -n python3-cloudpickle
Summary: Extended pickling support for Python objects Summary: Extended pickling support for Python objects
Provides: python-cloudpickle Provides: python-cloudpickle = %{version}-%{release}
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-flit
%description -n python3-cloudpickle %description -n python3-cloudpickle
Extended pickling support for Python objects Extended pickling support for Python objects
@ -30,43 +32,25 @@ Extended pickling support for Python objects
%autosetup -n cloudpickle-%{version} %autosetup -n cloudpickle-%{version}
%build %build
%py3_build %pyproject_build
%install %install
%py3_install %pyproject_install
install -d -m755 %{buildroot}/%{_pkgdocdir} install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{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 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-cloudpickle -f filelist.lst %files -n python3-cloudpickle
%dir %{python3_sitelib}/* %{python3_sitelib}/*
%files help -f doclist.lst %files help
%{_docdir}/* %{_docdir}/*
%changelog %changelog
* Thu Nov 30 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 3.0.0-1
- Upgrade package to version 3.0.0
* Fri Apr 07 2023 xu_ping <707078654@qq.com> - 2.2.1-1 * Fri Apr 07 2023 xu_ping <707078654@qq.com> - 2.2.1-1
- Upgrade package to version 2.2.1 - Upgrade package to version 2.2.1