SPECS: libxslt.spec - added python bcond

qboosh qboosh at pld-linux.org
Fri Dec 29 16:23:10 CET 2006


Author: qboosh                       Date: Fri Dec 29 15:23:10 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added python bcond

---- Files affected:
SPECS:
   libxslt.spec (1.129 -> 1.130) 

---- Diffs:

================================================================
Index: SPECS/libxslt.spec
diff -u SPECS/libxslt.spec:1.129 SPECS/libxslt.spec:1.130
--- SPECS/libxslt.spec:1.129	Sat Dec  2 10:52:59 2006
+++ SPECS/libxslt.spec	Fri Dec 29 16:23:05 2006
@@ -1,6 +1,7 @@
 # $Revision$, $Date$
 #
 # Conditional build:
+%bcond_without	python		# don't build python binding
 %bcond_without	static_libs	# don't build static library
 %bcond_with	tests		# run test suite
 #
@@ -24,9 +25,11 @@
 BuildRequires:	libtool >= 1:1.4.2-9
 BuildRequires:	libxml2-devel >= %{libxml2ver}
 BuildRequires:	perl-base
+%if %{with python}
 BuildRequires:	python
 BuildRequires:	python-devel
 BuildRequires:	python-libxml2 >= %{libxml2ver}
+%endif
 BuildRequires:	rpm-pythonprov
 Requires:	libgcrypt >= 1.1.42
 Requires:	libxml2 >= %{libxml2ver}
@@ -123,7 +126,8 @@
 %{__autoheader}
 %{__automake}
 %configure \
-	%{!?with_static_libs:--disable-static}
+	%{!?with_static_libs:--disable-static} \
+	%{!?with_python:--without-python}
 %{__make}
 
 %{?with_tests:%{__make} -C tests test}
@@ -134,6 +138,7 @@
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+%if %{with python}
 # move examples to proper dir
 install -d $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
 mv $RPM_BUILD_ROOT%{_docdir}/%{name}-python-%{version}/examples/* \
@@ -144,6 +149,7 @@
 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
 
 rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{py,la,a}
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -181,11 +187,13 @@
 %attr(755,root,root) %{_bindir}/xsltproc
 %{_mandir}/man1/*
 
+%if %{with python}
 %files -n python-%{name}
 %defattr(644,root,root,755)
 %attr(755,root,root) %{py_sitedir}/*.so
 %{py_sitedir}/*.py[co]
 %{_examplesdir}/python-%{name}-%{version}
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -193,6 +201,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.130  2006/12/29 15:23:05  qboosh
+- added python bcond
+
 Revision 1.129  2006/12/02 09:52:59  qboosh
 - updated to 1.1.19 (some bug fixes, but still crashes on libxcb)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/libxslt.spec?r1=1.129&r2=1.130&f=u



More information about the pld-cvs-commit mailing list