]> git.pld-linux.org Git - packages/libseccomp.git/commitdiff
- cleanup, python macros BR
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 18 Apr 2019 19:46:51 +0000 (21:46 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 18 Apr 2019 19:46:51 +0000 (21:46 +0200)
libseccomp.spec

index 942ed3b9b3ab8405ea219d22e8f55c85b789eb3a..32ce4944ab5f90ee3810354cf69f991f4e192b2a 100644 (file)
@@ -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.
This page took 0.081915 seconds and 4 git commands to generate.