[packages/python3-brotlicffi] - python-brotlicffi.spec updated to 1.2.0.0 for python 3.8+

qboosh qboosh at pld-linux.org
Sat Dec 13 16:29:35 CET 2025


commit ca9cae51e85638a19deffcfb91ae2ca272a576d9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Dec 13 16:29:52 2025 +0100

    - python-brotlicffi.spec updated to 1.2.0.0 for python 3.8+

 python-brotlicffi.spec  | 150 ------------------------------------------------
 python3-brotlicffi.spec |  79 +++++++++++++++++++++++++
 2 files changed, 79 insertions(+), 150 deletions(-)
---
diff --git a/python-brotlicffi.spec b/python-brotlicffi.spec
deleted file mode 100644
index e5f1a6e..0000000
--- a/python-brotlicffi.spec
+++ /dev/null
@@ -1,150 +0,0 @@
-#
-# Conditional build:
-%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/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
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-enum34 >= 1.0.4
-BuildRequires:	python-enum34 < 2
-BuildRequires:	python-hypothesis
-BuildRequires:	python-pytest
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-cffi >= 1.0.0
-BuildRequires:	python3-devel >= 1:3.3
-BuildRequires:	python3-setuptools
-%if %{with tests}
-BuildRequires:	python3-hypothesis
-BuildRequires:	python3-pytest
-%if "%{py3_ver}" == "3.3"
-BuildRequires:	python3-enum34 >= 1.0.4
-BuildRequires:	python3-enum34 < 2
-%endif
-%endif
-%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
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-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 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 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 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 CFFI Pythona do wzorcowego
-kodera/dekodera Brotli. Pozwala na korzystanie z algorytmu kompresji
-Brotli bezpośrednio z kodu w Pythonie.
-
-%prep
-%setup -q -n brotlicffi-%{version}
-
-%build
-%if %{with system_brotli}
-export USE_SHARED_BROTLI=1
-%endif
-
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTHONPATH=$(echo $(pwd)/build-2/lib.*) \
-%{__python} -m pytest test
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTHONPATH=$(echo $(pwd)/build-3/lib.*) \
-%{__python3} -m pytest test
-%endif
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with system_brotli}
-export USE_SHARED_BROTLI=1
-%endif
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc HISTORY.rst LICENSE README.rst
-%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}/brotlicffi
-%{py3_sitedir}/brotlicffi/*.py
-%{py3_sitedir}/brotlicffi/_brotlicffi.abi3.so
-%{py3_sitedir}/brotlicffi/__pycache__
-%{py3_sitedir}/brotlicffi-%{version}-py*.egg-info
-%endif
diff --git a/python3-brotlicffi.spec b/python3-brotlicffi.spec
new file mode 100644
index 0000000..b4d4ebf
--- /dev/null
+++ b/python3-brotlicffi.spec
@@ -0,0 +1,79 @@
+#
+# Conditional build:
+%bcond_without	system_brotli	# system brotli library
+%bcond_with	tests		# unit tests (fixture data missing in sdist)
+
+Summary:	Python 2 CFFI binding to the Brotli library
+Summary(pl.UTF-8):	Wiązanie CFFI Pythona 2 do biblioteki Brotli
+Name:		python3-brotlicffi
+Version:	1.2.0.0
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/brotlicffi/
+Source0:	https://files.pythonhosted.org/packages/source/b/brotlicffi/brotlicffi-%{version}.tar.gz
+# Source0-md5:	131da94b8624542f3c36a061b1f37ab4
+URL:		https://pypi.org/project/brotlicffi/
+%if %{with system_brotli}
+BuildRequires:	libbrotli-devel >= 1.2.0
+%endif
+BuildRequires:	python3-cffi >= 1.17.0
+BuildRequires:	python3-devel >= 1:3.8
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-hypothesis
+BuildRequires:	python3-pytest
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with system_brotli}
+Requires:	libbrotli >= 1.2.0
+%endif
+Requires:	python3-modules >= 1:3.8
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+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 CFFI Pythona do wzorcowego
+kodera/dekodera Brotli. Pozwala na korzystanie z algorytmu kompresji
+Brotli bezpośrednio z kodu w Pythonie.
+
+%prep
+%setup -q -n brotlicffi-%{version}
+
+%build
+%if %{with system_brotli}
+export USE_SHARED_BROTLI=1
+%endif
+
+%py3_build
+
+%if %{with tests}
+PYTHONPATH=$(echo $(pwd)/build-3/lib.*) \
+%{__python3} -m pytest test
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with system_brotli}
+export USE_SHARED_BROTLI=1
+%endif
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc HISTORY.rst LICENSE README.rst
+%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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-brotlicffi.git/commitdiff/ca9cae51e85638a19deffcfb91ae2ca272a576d9



More information about the pld-cvs-commit mailing list