[packages/libseccomp] - cleanup, python macros BR

qboosh qboosh at pld-linux.org
Thu Apr 18 21:46:39 CEST 2019


commit 9d204a3533742a00c5c6e218674624209f1a102e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Apr 18 21:46:51 2019 +0200

    - cleanup, python macros BR

 libseccomp.spec | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)
---
diff --git a/libseccomp.spec b/libseccomp.spec
index 942ed3b..32ce494 100644
--- a/libseccomp.spec
+++ b/libseccomp.spec
@@ -2,8 +2,8 @@
 # Conditional build:
 %bcond_without	tests		# "make check"
 %bcond_without	static_libs	# static library
-%bcond_without  python2 # CPython 2.x module
-%bcond_without  python3 # CPython 3.x module
+%bcond_without	python2		# CPython 2.x module
+%bcond_without	python3		# CPython 3.x module
 
 %ifnarch %{x8664}
 # tests seem broken on x86 and x32
@@ -24,12 +24,14 @@ BuildRequires:	pkgconfig
 %if %{with python2}
 BuildRequires:	python-Cython >= 0.16
 BuildRequires:	python-devel
-BuildRequires:	rpm-pythonprov
 %endif
 %if %{with python3}
-BuildRequires:  python3-Cython >= 0.16
-BuildRequires:  python3-devel
-BuildRequires:  rpm-pythonprov
+BuildRequires:	python3-Cython >= 0.16
+BuildRequires:	python3-devel
+%endif
+%if %{with python2} || %{with python3}
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
 %endif
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -87,10 +89,10 @@ Python binding for seccomp library.
 Wiązanie Pythona do biblioteki seccomp.
 
 %package -n python3-seccomp
-Summary:        Python 3 binding for seccomp library
-Summary(pl.UTF-8):      Wiązanie Pythona 3 do biblioteki seccomp
-Group:          Libraries/Python
-Requires:       %{name} = %{version}-%{release}
+Summary:	Python 3 binding for seccomp library
+Summary(pl.UTF-8):	Wiązanie Pythona 3 do biblioteki seccomp
+Group:		Libraries/Python
+Requires:	%{name} = %{version}-%{release}
 
 %description -n python3-seccomp
 Python 3 binding for seccomp library.
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libseccomp.git/commitdiff/9d204a3533742a00c5c6e218674624209f1a102e



More information about the pld-cvs-commit mailing list