Author: cactus                       Date: Tue Aug 11 22:22:56 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- bcond without apidocs

---- Files affected:
packages/polkit:
   polkit.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: packages/polkit/polkit.spec
diff -u packages/polkit/polkit.spec:1.4 packages/polkit/polkit.spec:1.5
--- packages/polkit/polkit.spec:1.4     Tue Aug  4 20:27:30 2009
+++ packages/polkit/polkit.spec Wed Aug 12 00:22:51 2009
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+
+# Conditional build:
+%bcond_without apidocs                 # build without apidocs
+
 Summary:       A framework for defining policy for system-wide components
 Summary(pl.UTF-8):     Szkielet do definiowania polityki dla komponentów 
systemowych
 Name:          polkit
@@ -14,8 +18,8 @@
 BuildRequires: eggdbus-devel >= 0.4
 BuildRequires: expat-devel >= 1:1.95.8
 BuildRequires: gettext-devel
-BuildRequires: glib2-devel >= 1:2.18.0
-BuildRequires: gtk-doc >= 1.3
+BuildRequires: glib2-devel >= 1:2.21.4
+%{?with_apidocs:BuildRequires: gtk-doc >= 1.3}
 BuildRequires: intltool >= 0.40.0
 BuildRequires: libtool
 BuildRequires: pam-devel >= 0.80
@@ -97,7 +101,7 @@
 %{__autoheader}
 %{__automake}
 %configure \
-       --enable-gtk-doc \
+       --%{!?with_apidocs:dis}%{?with_apidocs:en}able-gtk-doc \
        --with-html-dir=%{_gtkdocdir} \
        --with-pam-include=system-auth \
        --with-pam-module-dir=/%{_lib}/security
@@ -148,9 +152,11 @@
 %{_mandir}/man8/polkit.8*
 %{_mandir}/man8/polkitd.8*
 
+%if %{with apidocs}
 %files apidocs
 %defattr(644,root,root,755)
 %{_gtkdocdir}/polkit-1
+%endif
 
 %files libs
 %defattr(644,root,root,755)
@@ -189,6 +195,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2009/08/11 22:22:51  cactus
+- bcond without apidocs
+
 Revision 1.4  2009/08/04 18:27:30  patrys
 - 0.93
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/polkit/polkit.spec?r1=1.4&r2=1.5&f=u

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

Reply via email to