forked from pool/python-zstd
- Update to 1.5.7.2
* caching number of available cores from cpuinfo
by 60 seconds (VM may change settings)
- from version 1.5.7.1
* fixed function ZSTD_min_compression_level() - now
returns real number, not some shifted int value
* added some information functions about debug level
builded with
* module now building with -O3 level of optimization.
Probably will be about 20% faster
* module now building with binary stripping
(wheels for 3.13 and 3.14 will be smaller)
* module now building with disabled LTO
* added pypy builds
- from version 1.5.7.0
* Update bundled libzstd to 1.5.7
* Wheel for linux are here and pipy (built
on Ubuntu xenial, gcc-5, manylinux_2_14)
- from version 1.5.6.8
* Make decompression of zstd stream data possible
#228 and #100
* Wheel for python3.12 amd64 uploaded here
- from version 1.5.6.7
* support of multiple instances of interpreter
with own GIL by @domysh
- Set ZSTD_EXTERNAL=1 to use system-provided libzstd
- Switch build system from setuptools to pyproject.toml
* Add python-pip and python-wheel to BuildRequires
* Replace %python_build with %pyproject_wheel
* Replace %python_install with %pyproject_install
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zstd?expand=0&rev=38
This commit is contained in:
70
python-zstd.spec
Normal file
70
python-zstd.spec
Normal file
@@ -0,0 +1,70 @@
|
||||
#
|
||||
# spec file for package python-zstd
|
||||
#
|
||||
# Copyright (c) 2025 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/
|
||||
#
|
||||
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-zstd
|
||||
Version: 1.5.7.2
|
||||
Release: 0
|
||||
Summary: ZSTD Bindings for Python
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/sergey-dryabzhinsky/python-zstd
|
||||
Source: https://files.pythonhosted.org/packages/source/z/zstd/zstd-%{version}.tar.gz
|
||||
Patch0: test-external.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: pkgconfig(libzstd) >= 1.4.4
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
ZSTD Bindings for Python.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n zstd-%{version}
|
||||
|
||||
rm -rf zstd/
|
||||
# do not test the version matching, we don't really need exact version of
|
||||
# zstd here
|
||||
rm tests/test_version.py
|
||||
sed -i -e '/test_version/d' tests/__init__.py
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
export ZSTD_EXTERNAL=1
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%check
|
||||
%pytest_arch
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python_sitearch}/zstd*.so
|
||||
%{python_sitearch}/zstd-%{version}*-info
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user