packages: libcap-ng/libcap-ng.spec -=?UTF-8?Q?=20?='without python' bcond added

jajcus jajcus at pld-linux.org
Mon Jun 18 13:52:38 CEST 2012


Author: jajcus                       Date: Mon Jun 18 11:52:38 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- 'without python' bcond added

---- Files affected:
packages/libcap-ng:
   libcap-ng.spec (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: packages/libcap-ng/libcap-ng.spec
diff -u packages/libcap-ng/libcap-ng.spec:1.10 packages/libcap-ng/libcap-ng.spec:1.11
--- packages/libcap-ng/libcap-ng.spec:1.10	Thu Jun 30 19:38:20 2011
+++ packages/libcap-ng/libcap-ng.spec	Mon Jun 18 13:52:33 2012
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	python		# build without python bindings
+#
 Summary:	Next Generation of POSIX capabilities library
 Summary(pl.UTF-8):	Biblioteka POSIX capabilities nowej generacji
 Name:		libcap-ng
@@ -16,7 +20,7 @@
 BuildRequires:	python-devel
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.219
-BuildRequires:	swig-python
+%{?with_python:BuildRequires:	swig-python}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -104,8 +108,10 @@
 mv $RPM_BUILD_ROOT%{_libdir}/libcap-ng.so.* $RPM_BUILD_ROOT/%{_lib}
 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libcap-ng.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libcap-ng.so
 
+%if %{with python}
 %py_postclean
 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/_capng.la
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -143,10 +149,12 @@
 %{_mandir}/man8/netcap.8*
 %{_mandir}/man8/pscap.8*
 
+%if %{with python}
 %files -n python-capng
 %defattr(644,root,root,755)
 %attr(755,root,root) %{py_sitedir}/_capng.so
 %{py_sitedir}/capng.py[co]
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -154,6 +162,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.11  2012/06/18 11:52:33  jajcus
+- 'without python' bcond added
+
 Revision 1.10  2011/06/30 17:38:20  qboosh
 - updated to 0.6.6
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/libcap-ng/libcap-ng.spec?r1=1.10&r2=1.11



More information about the pld-cvs-commit mailing list