SPECS (AC-branch): poldek.spec - added --without python bcond

sparky sparky at pld-linux.org
Wed Jun 7 10:54:02 CEST 2006


Author: sparky                       Date: Wed Jun  7 08:54:02 2006 GMT
Module: SPECS                         Tag: AC-branch
---- Log message:
- added --without python bcond

---- Files affected:
SPECS:
   poldek.spec (1.197.2.77 -> 1.197.2.78) 

---- Diffs:

================================================================
Index: SPECS/poldek.spec
diff -u SPECS/poldek.spec:1.197.2.77 SPECS/poldek.spec:1.197.2.78
--- SPECS/poldek.spec:1.197.2.77	Wed Jun  7 00:31:31 2006
+++ SPECS/poldek.spec	Wed Jun  7 10:53:57 2006
@@ -3,6 +3,7 @@
 # Conditional build:
 %bcond_with	static	# don't use shared libraries
 %bcond_without	imode	# don't build interactive mode
+%bcond_without	python	# don't build python bindings
 #
 # required versions (forced to avoid SEGV with mixed db used by rpm and poldek)
 %define	ver_db	4.2.50-1
@@ -43,7 +44,7 @@
 BuildRequires:	pcre-devel
 BuildRequires:	perl-tools-pod
 BuildRequires:	popt-devel
-BuildRequires:	python-devel
+%{?with_python:BuildRequires:	python-devel}
 BuildRequires:	readline-devel >= 5.0
 BuildRequires:	rpm-devel >= %{ver_rpm}
 BuildRequires:	zlib-devel
@@ -174,7 +175,7 @@
 %configure \
 	%{?with_static:--enable-static --disable-shared} \
 	%{!?with_imode:--disable-imode} \
-	--with-python \
+	%{?with_python:--with-python} \
 	--enable-nls
 %{__make}
 
@@ -185,8 +186,10 @@
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+%if %{with python}
 %{__make} -C python install \
 	DESTDIR=$RPM_BUILD_ROOT
+%endif
 
 %{?with_static:rm -f $RPM_BUILD_ROOT%{_bindir}/rpmvercmp}
 
@@ -339,11 +342,13 @@
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
 
+%if %{with python}
 %files -n python-poldek
 %defattr(644,root,root,755)
 %attr(755,root,root) %{py_sitedir}/_poldekmod.so
 %{py_sitescriptdir}/poldek.py[co]
 %{py_sitescriptdir}/poldekmod.py[co]
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -351,6 +356,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.197.2.78  2006/06/07 08:53:57  sparky
+- added --without python bcond
+
 Revision 1.197.2.77  2006/06/06 22:31:31  glen
 - move _poldekmod.so to python dir for python to find it
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/poldek.spec?r1=1.197.2.77&r2=1.197.2.78&f=u



More information about the pld-cvs-commit mailing list