From dc137a7e258e1a1ac28862a1828da82cbbfa9d2355b4ae0d6592fb44e4dc03ab Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Thu, 22 Dec 2022 10:18:23 +0000 Subject: [PATCH] Accepting request 1044071 from home:bnavigator:branches:devel:languages:python required by py7zr OBS-URL: https://build.opensuse.org/request/show/1044071 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyzstd?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + python-pyzstd.changes | 5 ++++ python-pyzstd.spec | 66 +++++++++++++++++++++++++++++++++++++++++++ pyzstd-0.15.3.tar.gz | 3 ++ 5 files changed, 98 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-pyzstd.changes create mode 100644 python-pyzstd.spec create mode 100644 pyzstd-0.15.3.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-pyzstd.changes b/python-pyzstd.changes new file mode 100644 index 0000000..2045162 --- /dev/null +++ b/python-pyzstd.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Wed Dec 21 11:14:08 UTC 2022 - Ben Greiner + +- Initial specfile for v0.15.3 +- Required by py7zr diff --git a/python-pyzstd.spec b/python-pyzstd.spec new file mode 100644 index 0000000..2778e65 --- /dev/null +++ b/python-pyzstd.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-pyzstd +# +# Copyright (c) 2022 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +%define skip_python2 1 +Name: python-pyzstd +Version: 0.15.3 +Release: 0 +Summary: Python bindings to Zstandard (zstd) compression library +License: BSD-3-Clause +URL: https://github.com/animalize/pyzstd +Source: https://files.pythonhosted.org/packages/source/p/pyzstd/pyzstd-%{version}.tar.gz +BuildRequires: %{python_module devel >= 3.5} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: libzstd-devel >= 1.4.0 +BuildRequires: python-rpm-macros +%python_subpackages + +%description +Pyzstd module provides classes and functions for compressing and decompressing data, +using Facebook's Zstandard (or zstd as short name) algorithm. + +The API is similar to Python's bz2/lzma/zlib modules. + +%prep +%setup -q -n pyzstd-%{version} +# make sure we link dynamically, cannot use command line argument to pip wheel +# gh#animalize/pyzstd#18 +rm -r zstd +sed -i "s/has_option('--dynamic-link-zstd')/True/" setup.py + +%build +export CFLAGS="%{optflags}" +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +%pyunittest_arch discover -v tests + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitearch}/pyzstd +%{python_sitearch}/pyzstd-%{version}.dist-info + +%changelog diff --git a/pyzstd-0.15.3.tar.gz b/pyzstd-0.15.3.tar.gz new file mode 100644 index 0000000..d792b4f --- /dev/null +++ b/pyzstd-0.15.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ac4edab5d3955343e8f7f287e62cd2882907d46bcba4b406a1e9f84aa2887472 +size 758625