summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 07:35:49 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 07:35:49 +0000
commit92064449862e98a775379f0648476a3cab56c5e9 (patch)
tree2bb4b5bf6aa3a37bf43df3b8c5665c7196318d79
parentb512540a1c2a9d012f21e63dd08d00876268aef3 (diff)
automatic import of python-cloudpickle
-rw-r--r--.gitignore1
-rw-r--r--python-cloudpickle.spec78
-rw-r--r--sources1
3 files changed, 80 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..10ad3f9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cloudpickle-2.2.1.tar.gz
diff --git a/python-cloudpickle.spec b/python-cloudpickle.spec
new file mode 100644
index 0000000..f3fae17
--- /dev/null
+++ b/python-cloudpickle.spec
@@ -0,0 +1,78 @@
+%global _empty_manifest_terminate_build 0
+Name: python-cloudpickle
+Version: 2.2.1
+Release: 1
+Summary: Extended pickling support for Python objects
+License: BSD 3-Clause License
+URL: https://github.com/cloudpipe/cloudpickle
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/5f/51/913ecca3970a2227cf4d5e8937df52cc28f465ac442216110b8e3323262d/cloudpickle-2.2.1.tar.gz
+BuildArch: noarch
+
+
+%description
+The latest release of `cloudpickle` is available from
+[pypi](https://pypi.python.org/pypi/cloudpickle):
+ pip install cloudpickle
+
+%package -n python3-cloudpickle
+Summary: Extended pickling support for Python objects
+Provides: python-cloudpickle
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-cloudpickle
+The latest release of `cloudpickle` is available from
+[pypi](https://pypi.python.org/pypi/cloudpickle):
+ pip install cloudpickle
+
+%package help
+Summary: Development documents and examples for cloudpickle
+Provides: python3-cloudpickle-doc
+%description help
+The latest release of `cloudpickle` is available from
+[pypi](https://pypi.python.org/pypi/cloudpickle):
+ pip install cloudpickle
+
+%prep
+%autosetup -n cloudpickle-2.2.1
+
+%build
+%py3_build
+
+%install
+%py3_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 .
+
+%files -n python3-cloudpickle -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.2.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..152239d
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+640430615bdb68e1900bc26b84fad967 cloudpickle-2.2.1.tar.gz