[packages/python3-zstd] - updated to 1.5.7.3

qboosh qboosh at pld-linux.org
Sat Feb 21 09:19:01 CET 2026


commit 5c8322eb0b1155440a1b2456c50d7b9d0da2a78c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Feb 21 09:18:56 2026 +0100

    - updated to 1.5.7.3

 python3-zstd.spec   | 45 ++++++++++++++++++++++++++++++---------------
 unbundle-zstd.patch | 14 --------------
 2 files changed, 30 insertions(+), 29 deletions(-)
---
diff --git a/python3-zstd.spec b/python3-zstd.spec
index bba31e8..01f729b 100644
--- a/python3-zstd.spec
+++ b/python3-zstd.spec
@@ -3,42 +3,57 @@
 %bcond_without	tests	# unit tests
 
 %define		module	zstd
-Summary:	Simple python bindings to Yann Collet ZSTD compression library
+Summary:	Simple Python bindings to Yann Collet ZSTD compression library
+Summary(pl.UTF-8):	Proste wiązania Pytona do biblioteki kompresji ZSTD Yanna Colleta
 Name:		python3-%{module}
-Version:	1.5.1.0
-Release:	3
+Version:	1.5.7.3
+Release:	1
 License:	BSD
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/zstd/
 Source0:	https://files.pythonhosted.org/packages/source/z/zstd/%{module}-%{version}.tar.gz
-# Source0-md5:	fe5e894d6925ee1ff13b824eababf13b
-Patch0:		unbundle-zstd.patch
+# Source0-md5:	3ce4bf4a6cbb9db50db8afa6ecd4d6aa
 URL:		https://pypi.org/project/zstd/
-BuildRequires:	python3-devel >= 1:3.2
+BuildRequires:	pkgconfig
+BuildRequires:	python3-devel >= 1:3.4
 BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-pytest
+%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
-BuildRequires:	zstd-devel
-# replace with other requires if defined in setup.py
-Requires:	python3-modules >= 1:3.2
+BuildRequires:	zstd-devel >= 1.4.0
+Requires:	python3-modules >= 1:3.4
+Requires:	zstd >= 1.4.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Simple python bindings to Yann Collet ZSTD compression library.
+Simple Python bindings to Yann Collet ZSTD compression library.
+
+%description -l pl.UTF-8
+Proste wiązania Pytona do biblioteki kompresji ZSTD Yanna Colleta.
 
 %prep
 %setup -q -n %{module}-%{version}
-%patch -P 0 -p1
 
 # Remove bundled lib
-%{__rm} -rf zstd
+%{__rm} -r zstd
 
 %build
-%py3_build %{?with_tests:test}
+export ZSTD_EXTERNAL=1
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(readlink -f build-3/lib.*) \
+%{__python3} -m pytest tests
+# discover -s tests
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
+export ZSTD_EXTERNAL=1
 %py3_install
 
 %clean
@@ -46,6 +61,6 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README.rst
-%attr(755,root,root) %{py3_sitedir}/%{module}*.so
+%doc LICENSE README.rst
+%{py3_sitedir}/zstd.cpython-*.so
 %{py3_sitedir}/%{module}-%{version}-py*.egg-info
diff --git a/unbundle-zstd.patch b/unbundle-zstd.patch
deleted file mode 100644
index 6aced25..0000000
--- a/unbundle-zstd.patch
+++ /dev/null
@@ -1,14 +0,0 @@
---- zstd-1.5.1.0/setup.py~	2022-01-03 03:30:38.000000000 +0100
-+++ zstd-1.5.1.0/setup.py	2022-04-09 11:41:50.737112512 +0200
-@@ -35,10 +35,9 @@
- 
- SUP_EXTERNAL=0
- ext_libraries=[]
--if "--external" in sys.argv:
-+if True:
-     # You want use external Zstd library?
-     SUP_EXTERNAL=1
--    sys.argv.remove("--external")
-     # You should add external library by option: --libraries zstd
-     # And probably include paths by option: --include-dirs /usr/include/zstd
-     # And probably library paths by option: --library-dirs /usr/lib/i386-linux-gnu
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-zstd.git/commitdiff/5c8322eb0b1155440a1b2456c50d7b9d0da2a78c



More information about the pld-cvs-commit mailing list