Author: charles                      Date: Sat Feb 28 10:23:12 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added apidocs and static_libs bconds

---- Files affected:
SPECS:
   libnotify.spec (1.28 -> 1.29) 

---- Diffs:

================================================================
Index: SPECS/libnotify.spec
diff -u SPECS/libnotify.spec:1.28 SPECS/libnotify.spec:1.29
--- SPECS/libnotify.spec:1.28   Tue Dec  2 14:43:36 2008
+++ SPECS/libnotify.spec        Sat Feb 28 11:23:07 2009
@@ -1,4 +1,9 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without apidocs         # disable gtk-doc
+%bcond_without static_libs     # don't build static library
+#
 Summary:       Desktop notifications library
 Summary(pl.UTF-8):     Biblioteka powiadomień dla pulpitu
 Name:          libnotify
@@ -14,7 +19,8 @@
 BuildRequires: dbus-glib-devel >= 0.71
 BuildRequires: glib2-devel >= 1:2.12.1
 BuildRequires: gtk+2-devel >= 2:2.10.1
-BuildRequires: gtk-doc >= 1.7
+%{?with_apidocs:BuildRequires: gtk-doc >= 1.7}
+BuildRequires: gtk-doc-automake
 BuildRequires: libtool
 BuildRequires: pkgconfig
 Requires:      dbus-glib >= 0.71
@@ -83,8 +89,10 @@
 %{__autoheader}
 %{__automake}
 %configure \
-       --enable-gtk-doc \
-       --with-html-dir=%{_gtkdocdir}
+       --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
+       --with-html-dir=%{_gtkdocdir} \
+       %{!?with_static_libs:--disable-static}
+
 %{__make}
 
 %install
@@ -93,6 +101,8 @@
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+%{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/libnotify}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -106,9 +116,11 @@
 %attr(755,root,root) %{_libdir}/lib*.so.*.*
 %attr(755,root,root) %ghost %{_libdir}/lib*.so.1
 
+%if %{with apidocs}
 %files apidocs
 %defattr(644,root,root,755)
 %{_gtkdocdir}/%{name}
+%endif
 
 %files devel
 %defattr(644,root,root,755)
@@ -117,9 +129,11 @@
 %{_pkgconfigdir}/*
 %{_includedir}/*
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+%endif
 
 %define date    %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -127,6 +141,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.29  2009/02/28 10:23:07  charles
+- added apidocs and static_libs bconds
+
 Revision 1.28  2008/12/02 13:43:36  hawk
 - release 2
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/libnotify.spec?r1=1.28&r2=1.29&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to