From ed4e077a65b410c68c936caca895771020ebfbd7a4714286cee5b35fc434cf6c Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Fri, 7 Jul 2017 12:59:27 +0000 Subject: [PATCH] Accepting request 508684 from home:alois:branches:devel:languages:python OBS-URL: https://build.opensuse.org/request/show/508684 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zodbpickle?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + python-zodbpickle.changes | 4 +++ python-zodbpickle.spec | 68 +++++++++++++++++++++++++++++++++++++++ zodbpickle-0.6.0.tar.gz | 3 ++ 5 files changed, 99 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-zodbpickle.changes create mode 100644 python-zodbpickle.spec create mode 100644 zodbpickle-0.6.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-zodbpickle.changes b/python-zodbpickle.changes new file mode 100644 index 0000000..541d23e --- /dev/null +++ b/python-zodbpickle.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Jun 27 16:00:00 UTC 2017 - aloisio@gmx.com + +- Initial package (v. 0.6.0) diff --git a/python-zodbpickle.spec b/python-zodbpickle.spec new file mode 100644 index 0000000..561a02a --- /dev/null +++ b/python-zodbpickle.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-zodbpickle +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-zodbpickle +Version: 0.6.0 +Release: 0 +Summary: Fork of Python 3 pickle module +License: Python-2.0 and ZPL-2.1 +Group: Development/Libraries/Python +Url: https://pypi.python.org/pypi/zodbpickle +Source: https://files.pythonhosted.org/packages/source/z/zodbpickle/zodbpickle-%{version}.tar.gz +BuildRequires: %{python_module Cython} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: python3-testsuite +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%python_subpackages + +%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. + +%prep +%setup -q -n zodbpickle-%{version} +rm -rf src/zodbpickle.egg-info + +%build +%python_build + +%install +%python_install +%{python_expand find %{buildroot}%{$python_sitearch} -name *.c -delete + %fdupes -s %{buildroot}%{$python_sitearch} +} + +%check +%python_exec setup.py test + +%files %{python_files} +%defattr(-,root,root) +%doc CHANGES.rst LICENSE.txt README.rst +%{python_sitearch}/* + +%changelog diff --git a/zodbpickle-0.6.0.tar.gz b/zodbpickle-0.6.0.tar.gz new file mode 100644 index 0000000..242be4d --- /dev/null +++ b/zodbpickle-0.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea3248be966159e7791e3db0e35ea992b9235d52e7d39835438686741d196665 +size 223043