SPECS: libopensync.spec - added 2 bconds (python, static_libs)

djurban djurban at pld-linux.org
Sun Apr 16 13:45:31 CEST 2006


Author: djurban                      Date: Sun Apr 16 11:45:31 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added 2 bconds (python, static_libs)

---- Files affected:
SPECS:
   libopensync.spec (1.9 -> 1.10) 

---- Diffs:

================================================================
Index: SPECS/libopensync.spec
diff -u SPECS/libopensync.spec:1.9 SPECS/libopensync.spec:1.10
--- SPECS/libopensync.spec:1.9	Tue Jan 31 22:17:24 2006
+++ SPECS/libopensync.spec	Sun Apr 16 13:45:26 2006
@@ -1,4 +1,6 @@
 # $Revision$, $Date$
+%bcond_without	python
+%bcond_without	static_libs
 Summary:	Data synchronization framework
 Summary(pl):	Szkielet do synchronizacji danych
 Name:		libopensync
@@ -14,10 +16,12 @@
 BuildRequires:	automake
 BuildRequires:	libtool
 BuildRequires:	libxml2-devel
+%if %{with python}
 BuildRequires:	python-devel
 BuildRequires:	python-modules
-BuildRequires:	sqlite3-devel
 BuildRequires:	swig-python
+%endif
+BuildRequires:	sqlite3-devel
 # no such opensync plugins (yet?)
 Obsoletes:	multisync-ldap
 Obsoletes:	multisync-opie
@@ -95,7 +99,9 @@
 %{__autoheader}
 %{__automake}
 %configure \
-	--enable-static
+	--%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \
+	--%{?with_python:en}%{!?with_python:dis}able-python
+	
 %{__make}
 
 %install
@@ -135,14 +141,18 @@
 %{_includedir}/opensync*
 %{_pkgconfigdir}/*.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+%endif
 
+%if %{with python}
 %files -n python-opensync
 %defattr(644,root,root,755)
 %attr(755,root,root) %{py_sitedir}/*.so
 %{py_sitedir}/*.py[co]
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -150,6 +160,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.10  2006/04/16 11:45:26  djurban
+- added 2 bconds (python, static_libs)
+
 Revision 1.9  2006/01/31 21:17:24  patrys
 - missing BR: sqlite3
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/libopensync.spec?r1=1.9&r2=1.10&f=u



More information about the pld-cvs-commit mailing list