[packages/python3-zstandard] - updated to 0.25.0
qboosh
qboosh at pld-linux.org
Fri Jan 9 21:47:30 CET 2026
commit 895fdbcf205e7d8dba72e7f70378ad66a46b55b5
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Jan 9 21:47:26 2026 +0100
- updated to 0.25.0
python3-zstandard.spec | 52 ++++++++++++++++++++++++++++++++++++++------------
1 file changed, 40 insertions(+), 12 deletions(-)
---
diff --git a/python3-zstandard.spec b/python3-zstandard.spec
index 3e8b8ca..940e7f2 100644
--- a/python3-zstandard.spec
+++ b/python3-zstandard.spec
@@ -1,24 +1,37 @@
+#
# Conditional build:
-%bcond_without tests # unit tests
+%bcond_with system_zstd # system zstd library (but no support for multi_compress features)
+%bcond_without tests # unit tests
%define module zstandard
Summary: Zstandard bindings for Python
+Summary(pl.UTF-8): Wiązania Zstandard dla Pythona
Name: python3-%{module}
-Version: 0.22.0
-Release: 3
+Version: 0.25.0
+Release: 1
License: BSD
Group: Libraries/Python
-Source0: https://pypi.debian.net/%{module}/%{module}-%{version}.tar.gz
-# Source0-md5: 224e2e0d5d1f0e8be28aa31c802d1543
+#Source0Download: https://pypi.org/simple/zstandard/
+Source0: https://files.pythonhosted.org/packages/source/z/zstandard/%{module}-%{version}.tar.gz
+# Source0-md5: e4a09d8862314d35ed2d4b95f610f25d
URL: https://github.com/indygreg/python-zstandard
-BuildRequires: python3-devel >= 1:3.2
-BuildRequires: python3-setuptools
+%if "%{py3_ver}" == "3.14"
+BuildRequires: python3-cffi >= 2
+%else
+BuildRequires: python3-cffi >= 1.17
+%endif
+BuildRequires: python3-devel >= 1:3.9
+BuildRequires: python3-packaging
+BuildRequires: python3-setuptools >= 1:77.0.0
%if %{with tests}
-#BuildRequires: python3-
+BuildRequires: python3-hypothesis >= 6.111.0
+BuildRequires: python3-pytest >= 8.4.1
+BuildRequires: python3-pytest-xdist >= 3.8.0
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python3-modules >= 1:3.2
+%{?with_system_zstd:BuildRequires: zstd-devel}
+Requires: python3-modules >= 1:3.9
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -26,12 +39,26 @@ This project provides Python bindings for interfacing with the
Zstandard compression library. A C extension and CFFI interface are
provided.
+%description -l pl.UTF-8
+Ten projekt dostarcza wiązania Pythona do współpracy z biblioteką
+kompresji Zstandard. Dostępne jest rozszerzenie oraz interfejs CFFI.
+
%prep
%setup -q -n %{module}-%{version}
%build
+%py3_build \
+ %{?with_system_zstd:--system-zstd}
-%py3_build %{?with_tests:test}
+%if %{with tests}
+# use subdir to hide ../zstandard from pytest
+install -d testdir
+ln -sf ../tests testdir/tests
+cd testdir
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(readlink -f ../build-3/lib.*) \
+%{__python3} -m pytest tests
+%endif
%install
rm -rf $RPM_BUILD_ROOT
@@ -43,11 +70,12 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README.rst
+%doc LICENSE README.rst
%dir %{py3_sitedir}/%{module}
%{py3_sitedir}/%{module}/*.py
%{py3_sitedir}/%{module}/*.pyi
%{py3_sitedir}/%{module}/py.typed
-%attr(755,root,root) %{py3_sitedir}/%{module}/*.so
+%attr(755,root,root) %{py3_sitedir}/%{module}/_cffi.cpython-*.so
+%attr(755,root,root) %{py3_sitedir}/%{module}/backend_c.cpython-*.so
%{py3_sitedir}/%{module}/__pycache__
%{py3_sitedir}/%{module}-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-zstandard.git/commitdiff/895fdbcf205e7d8dba72e7f70378ad66a46b55b5
More information about the pld-cvs-commit
mailing list