[packages/python3-zopfli] - updated to 0.2.2, bild with system zopfli libraries
qboosh
qboosh at pld-linux.org
Thu Jan 5 21:24:49 CET 2023
commit d9982129b5dd8ccde5736e47b54d05832b2b73fc
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Jan 5 21:10:19 2023 +0100
- updated to 0.2.2, bild with system zopfli libraries
python3-zopfli.spec | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/python3-zopfli.spec b/python3-zopfli.spec
index 6e39c62..9f60c54 100644
--- a/python3-zopfli.spec
+++ b/python3-zopfli.spec
@@ -1,17 +1,18 @@
#
# Conditional build:
-%bcond_without tests # unit tests
+%bcond_without tests # unit tests
+%bcond_without system_zopfli # system zopfli libraries
Summary: Zopfli module for Python
Summary(pl.UTF-8): Moduł zopfli dla Pythona
Name: python3-zopfli
-Version: 0.2.1
+Version: 0.2.2
Release: 1
License: Apache v2.0
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/zopfli/
Source0: https://files.pythonhosted.org/packages/source/z/zopfli/zopfli-%{version}.zip
-# Source0-md5: 505ea595d86b8a7fec55620c839a4859
+# Source0-md5: 0c1e41e5403524e0180f3ed9aaa356ec
URL: https://pypi.org/project/zopfli/
BuildRequires: python3-modules >= 1:3.7
BuildRequires: python3-setuptools
@@ -22,6 +23,10 @@ BuildRequires: python3-pytest
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
BuildRequires: unzip
+%if %{with system_zopfli}
+BuildRequires: zopfli-devel
+BuildRequires: zopfli-png-devel
+%endif
Requires: python3-modules >= 1:3.7
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -37,6 +42,10 @@ zopfli.
%setup -q -n zopfli-%{version}
%build
+%if %{with system_zopfli}
+export USE_SYSTEM_ZOPFLI=1
+%endif
+
%py3_build
%if %{with tests}
@@ -48,6 +57,10 @@ PYTHONPATH=$(echo $(pwd)/build-3/lib.*) \
%install
rm -rf $RPM_BUILD_ROOT
+%if %{with system_zopfli}
+export USE_SYSTEM_ZOPFLI=1
+%endif
+
%py3_install
%clean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-zopfli.git/commitdiff/d9982129b5dd8ccde5736e47b54d05832b2b73fc
More information about the pld-cvs-commit
mailing list