summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-zodbpickle.spec98
-rw-r--r--sources1
3 files changed, 100 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..a137911 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/zodbpickle-2.6.tar.gz
diff --git a/python-zodbpickle.spec b/python-zodbpickle.spec
new file mode 100644
index 0000000..337ca26
--- /dev/null
+++ b/python-zodbpickle.spec
@@ -0,0 +1,98 @@
+%global _empty_manifest_terminate_build 0
+Name: python-zodbpickle
+Version: 2.6
+Release: 1
+Summary: Fork of Python 2 and 3 pickle module.
+License: PSFL 2 and ZPL 2.1
+URL: https://github.com/zopefoundation/zodbpickle
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/65/6a/999d7fc36acacdefbc51d10852fbbd2ae67d818115f8e906056c25d4ac13/zodbpickle-2.6.tar.gz
+
+
+%description
+This package presents a uniform pickling interface for ZODB:
+- Under Python2, this package forks both Python 2.7's ``pickle`` and
+ ``cPickle`` modules, adding support for the ``protocol 3`` opcodes.
+ It also provides a new subclass of ``bytes``, ``zodbpickle.binary``,
+ which Python2 applications can use to pickle binary values such that
+ they will be unpickled as ``bytes`` under Py3k.
+- Under Py3k, this package forks the ``pickle`` module (and the supporting
+ C extension) from both Python 3.2 and Python 3.3. The fork add support
+ for the ``noload`` operations used by ZODB.
+
+%package -n python3-zodbpickle
+Summary: Fork of Python 2 and 3 pickle module.
+Provides: python-zodbpickle
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-zodbpickle
+This package presents a uniform pickling interface for ZODB:
+- Under Python2, this package forks both Python 2.7's ``pickle`` and
+ ``cPickle`` modules, adding support for the ``protocol 3`` opcodes.
+ It also provides a new subclass of ``bytes``, ``zodbpickle.binary``,
+ which Python2 applications can use to pickle binary values such that
+ they will be unpickled as ``bytes`` under Py3k.
+- Under Py3k, this package forks the ``pickle`` module (and the supporting
+ C extension) from both Python 3.2 and Python 3.3. The fork add support
+ for the ``noload`` operations used by ZODB.
+
+%package help
+Summary: Development documents and examples for zodbpickle
+Provides: python3-zodbpickle-doc
+%description help
+This package presents a uniform pickling interface for ZODB:
+- Under Python2, this package forks both Python 2.7's ``pickle`` and
+ ``cPickle`` modules, adding support for the ``protocol 3`` opcodes.
+ It also provides a new subclass of ``bytes``, ``zodbpickle.binary``,
+ which Python2 applications can use to pickle binary values such that
+ they will be unpickled as ``bytes`` under Py3k.
+- Under Py3k, this package forks the ``pickle`` module (and the supporting
+ C extension) from both Python 3.2 and Python 3.3. The fork add support
+ for the ``noload`` operations used by ZODB.
+
+%prep
+%autosetup -n zodbpickle-2.6
+
+%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-zodbpickle -f filelist.lst
+%dir %{python3_sitearch}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Mar 08 2023 Python_Bot <Python_Bot@openeuler.org> - 2.6-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..0a14124
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+b7c206f87bd99226b915597d80a41215 zodbpickle-2.6.tar.gz