[packages/python-brotlicffi] - brotlipy has been renamed to brotlicffi; updated to 1.0.9.2 (last version with python2.7 support)

qboosh qboosh at pld-linux.org
Sat Dec 13 16:27:22 CET 2025


commit ba1a1a830c31fc3f5eece34cb6197d5e67061e30
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Dec 13 16:27:28 2025 +0100

    - brotlipy has been renamed to brotlicffi; updated to 1.0.9.2 (last version with python2.7 support)

 python-brotlipy.spec => python-brotlicffi.spec | 84 ++++++++++++++++----------
 1 file changed, 51 insertions(+), 33 deletions(-)
---
diff --git a/python-brotlipy.spec b/python-brotlicffi.spec
similarity index 51%
rename from python-brotlipy.spec
rename to python-brotlicffi.spec
index 2534b37..e5f1a6e 100644
--- a/python-brotlipy.spec
+++ b/python-brotlicffi.spec
@@ -1,20 +1,25 @@
 #
 # Conditional build:
-%bcond_with	tests	# unit tests (fixture files missing in sdist)
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-Summary:	Python 2 binding to the Brotli library
-Summary(pl.UTF-8):	Wiązanie Pythona 2 do biblioteki Brotli
-Name:		python-brotlipy
-Version:	0.7.0
+%bcond_without	system_brotli	# system brotli library
+%bcond_with	tests		# unit tests (fixture data missing in sdist)
+%bcond_without	python2		# CPython 2.x module
+%bcond_with	python3		# CPython 3.x module (built from python3-brotlicffi.spec)
+
+Summary:	Python 2 CFFI binding to the Brotli library
+Summary(pl.UTF-8):	Wiązanie CFFI Pythona 2 do biblioteki Brotli
+Name:		python-brotlicffi
+# keep 1.0.x here for python2 support
+Version:	1.0.9.2
 Release:	1
 License:	MIT
 Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/brotlipy/
-Source0:	https://files.pythonhosted.org/packages/source/b/brotlipy/brotlipy-%{version}.tar.gz
-# Source0-md5:	300a63158cec5b74082625dd9a2ae4d2
-URL:		https://pypi.org/project/brotlipy/
+#Source0Download: https://pypi.org/simple/brotlicffi/
+Source0:	https://files.pythonhosted.org/packages/source/b/brotlicffi/brotlicffi-%{version}.tar.gz
+# Source0-md5:	9f5c35d3f8ce5ddceefacb309936f2ab
+URL:		https://pypi.org/project/brotlicffi/
+%if %{with system_brotli}
+BuildRequires:	libbrotli-devel >= 1.0.9
+%endif
 %if %{with python2}
 BuildRequires:	python-cffi >= 1.0.0
 BuildRequires:	python-devel >= 1:2.7
@@ -41,41 +46,50 @@ BuildRequires:	python3-enum34 < 2
 %endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with system_brotli}
+Requires:	libbrotli >= 1.0.9
+%endif
 Requires:	python-modules >= 1:2.7
-Conflicts:	python-brotli
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-This library contains Python bindings for the reference Brotli
+This library contains Python CFFI bindings for the reference Brotli
 encoder/decoder. This allows Python software to use the Brotli
 compression algorithm directly from Python code.
 
 %description -l pl.UTF-8
-Ta biblioteka zawiera wiązania Pythona do wzorcowego kodera/dekodera
-Brotli. Pozwala na korzystanie z algorytmu kompresji Brotli
-bezpośrednio z kodu w Pythonie.
+Ta biblioteka zawiera wiązania CFFI Pythona do wzorcowego
+kodera/dekodera Brotli. Pozwala na korzystanie z algorytmu kompresji
+Brotli bezpośrednio z kodu w Pythonie.
 
 %package -n python3-brotlipy
-Summary:	Python 3 binding to the Brotli library
-Summary(pl.UTF-8):	Wiązanie Pythona 3 do biblioteki Brotli
+Summary:	Python 3 CFFI binding to the Brotli library
+Summary(pl.UTF-8):	Wiązanie CFFI Pythona 3 do biblioteki Brotli
 Group:		Libraries/Python
+%if %{with system_brotli}
+Requires:	libbrotli >= 1.0.9
+%endif
 Requires:	python3-modules >= 1:3.3
 Conflicts:	python3-brotli
 
 %description -n python3-brotlipy
-This library contains Python bindings for the reference Brotli
+This library contains Python CFFI bindings for the reference Brotli
 encoder/decoder. This allows Python software to use the Brotli
 compression algorithm directly from Python code.
 
 %description -n python3-brotlipy -l pl.UTF-8
-Ta biblioteka zawiera wiązania Pythona do wzorcowego kodera/dekodera
-Brotli. Pozwala na korzystanie z algorytmu kompresji Brotli
-bezpośrednio z kodu w Pythonie.
+Ta biblioteka zawiera wiązania CFFI Pythona do wzorcowego
+kodera/dekodera Brotli. Pozwala na korzystanie z algorytmu kompresji
+Brotli bezpośrednio z kodu w Pythonie.
 
 %prep
-%setup -q -n brotlipy-%{version}
+%setup -q -n brotlicffi-%{version}
 
 %build
+%if %{with system_brotli}
+export USE_SHARED_BROTLI=1
+%endif
+
 %if %{with python2}
 %py_build
 
@@ -97,6 +111,10 @@ PYTHONPATH=$(echo $(pwd)/build-3/lib.*) \
 %install
 rm -rf $RPM_BUILD_ROOT
 
+%if %{with system_brotli}
+export USE_SHARED_BROTLI=1
+%endif
+
 %if %{with python2}
 %py_install
 
@@ -114,19 +132,19 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc HISTORY.rst LICENSE README.rst
-%dir %{py_sitedir}/brotli
-%{py_sitedir}/brotli/*.py[co]
-%attr(755,root,root) %{py_sitedir}/brotli/_brotli.so
-%{py_sitedir}/brotlipy-%{version}-py*.egg-info
+%dir %{py_sitedir}/brotlicffi
+%{py_sitedir}/brotlicffi/*.py[co]
+%{py_sitedir}/brotlicffi/_brotlicffi.so
+%{py_sitedir}/brotlicffi-%{version}-py*.egg-info
 %endif
 
 %if %{with python3}
 %files -n python3-brotlipy
 %defattr(644,root,root,755)
 %doc HISTORY.rst LICENSE README.rst
-%dir %{py3_sitedir}/brotli
-%{py3_sitedir}/brotli/*.py
-%attr(755,root,root) %{py3_sitedir}/brotli/_brotli.abi3.so
-%{py3_sitedir}/brotli/__pycache__
-%{py3_sitedir}/brotlipy-%{version}-py*.egg-info
+%dir %{py3_sitedir}/brotlicffi
+%{py3_sitedir}/brotlicffi/*.py
+%{py3_sitedir}/brotlicffi/_brotlicffi.abi3.so
+%{py3_sitedir}/brotlicffi/__pycache__
+%{py3_sitedir}/brotlicffi-%{version}-py*.egg-info
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-brotlicffi.git/commitdiff/ba1a1a830c31fc3f5eece34cb6197d5e67061e30



More information about the pld-cvs-commit mailing list