SPECS: libxfce4util.spec - added apidocs bcond

charles charles at pld-linux.org
Sat Feb 28 11:21:22 CET 2009


Author: charles                      Date: Sat Feb 28 10:21:22 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added apidocs bcond

---- Files affected:
SPECS:
   libxfce4util.spec (1.52 -> 1.53) 

---- Diffs:

================================================================
Index: SPECS/libxfce4util.spec
diff -u SPECS/libxfce4util.spec:1.52 SPECS/libxfce4util.spec:1.53
--- SPECS/libxfce4util.spec:1.52	Fri Feb 27 14:16:09 2009
+++ SPECS/libxfce4util.spec	Sat Feb 28 11:21:16 2009
@@ -1,6 +1,7 @@
 # $Revision$, $Date$
 #
 # Conditional build:
+%bcond_without	apidocs		# disable gtk-doc
 %bcond_without	static_libs	# don't build static library
 #
 Summary:	Utility library for the Xfce desktop environment
@@ -17,6 +18,7 @@
 BuildRequires:	automake
 BuildRequires:	gettext-devel
 BuildRequires:	glib2-devel >= 1:2.12.4
+%{?with_apidocs:BuildRequires:	gtk-doc}
 BuildRequires:	gtk-doc-automake
 BuildRequires:	libtool
 BuildRequires:	pkgconfig >= 1:0.9.0
@@ -89,7 +91,7 @@
 %{__automake}
 %{__autoconf}
 %configure \
-	--enable-gtk-doc \
+	--%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
 	--with-html-dir=%{_gtkdocdir} \
 	%{!?with_static_libs:--disable-static}
 %{__make}
@@ -105,6 +107,8 @@
 mv $RPM_BUILD_ROOT%{_datadir}/locale/nb{_NO,}
 mv $RPM_BUILD_ROOT%{_datadir}/locale/pt{_PT,}
 
+%{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/libxfce4util}
+
 %find_lang %{name}
 
 %clean
@@ -120,9 +124,11 @@
 %attr(755,root,root) %ghost %{_libdir}/libxfce4util.so.4
 %dir %{_datadir}/xfce4
 
+%if %{with apidocs}
 %files apidocs
 %defattr(644,root,root,755)
 %{_gtkdocdir}/%{name}
+%endif
 
 %files devel
 %defattr(644,root,root,755)
@@ -148,6 +154,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.53  2009/02/28 10:21:16  charles
+- added apidocs bcond
+
 Revision 1.52  2009/02/27 13:16:09  megabajt
 - updated to 4.6.0
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/libxfce4util.spec?r1=1.52&r2=1.53&f=u



More information about the pld-cvs-commit mailing list