[packages/python3-isal] - new
qboosh
qboosh at pld-linux.org
Tue Dec 16 19:12:53 CET 2025
commit dc4729df1e9d9ed7767b248e4e8888c6a58a8bbc
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Dec 16 19:13:08 2025 +0100
- new
python3-isal.spec | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 79 insertions(+)
---
diff --git a/python3-isal.spec b/python3-isal.spec
new file mode 100644
index 0000000..06bf879
--- /dev/null
+++ b/python3-isal.spec
@@ -0,0 +1,79 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+%bcond_without system_isal # system ISA-L library
+
+Summary: Faster zlib and gzip compatible compression and decompression via ISA-L library
+Summary(pl.UTF-8): Szybsza kompresja i dekompresja zgodna ze zlib i gzip poprzez bibliotekę ISA-L
+Name: python3-isal
+Version: 1.8.0
+Release: 1
+License: PSF v2
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/isal/
+Source0: https://files.pythonhosted.org/packages/source/i/isal/isal-%{version}.tar.gz
+# Source0-md5: 39fe1612a4038a814bb9d73ba6e4fd2d
+URL: https://pypi.org/project/isal/
+%{?with_system_isal:BuildRequires: libisal-devel >= 2.31.0}
+BuildRequires: python3-devel >= 1:3.9
+BuildRequires: python3-setuptools >= 1:77
+BuildRequires: python3-setuptools_scm >= 8
+%if %{with tests}
+BuildRequires: python3-pytest
+BuildRequires: python3-pytest-timeout
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+%{?with_system_isal:Requires: libisal >= 2.31.0}
+Requires: python3-modules >= 1:3.9
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Faster zlib and gzip compatible compression and decompression by
+providing Python bindings for the ISA-L library.
+
+%description -l pl.UTF-8
+Szybsza kompresja i dekompresja zgodna ze zlib i gzip poprzez
+dostarczenie wiązań Ptyhona do biblioteki ISA-L.
+
+%prep
+%setup -q -n isal-%{version}
+
+%build
+%if %{with system_isal}
+export PYTHON_ISAL_LINK_DYNAMIC=1
+%endif
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_timeout \
+PYTHONPATH=$(readlink -f build-3/lib.*) \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with system_isal}
+export PYTHON_ISAL_LINK_DYNAMIC=1
+%endif
+%py3_install
+
+# docs from internal isa-l library (packaged in libisal.spec)
+%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/isal/isa-l/{LICENSE,README.md,Release_notes.txt}
+rmdir $RPM_BUILD_ROOT%{py3_sitedir}/isal/isa-l
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.rst README.rst
+%dir %{py3_sitedir}/isal
+%{py3_sitedir}/isal/*.py
+%{py3_sitedir}/isal/*.pyi
+%{py3_sitedir}/isal/*.so
+%{py3_sitedir}/isal/py.typed
+%{py3_sitedir}/isal/__pycache__
+%{py3_sitedir}/isal-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-isal.git/commitdiff/dc4729df1e9d9ed7767b248e4e8888c6a58a8bbc
More information about the pld-cvs-commit
mailing list