packages: libindicate/libindicate.spec - doc bcond

arekm arekm at pld-linux.org
Fri Jan 8 12:21:28 CET 2010


Author: arekm                        Date: Fri Jan  8 11:21:28 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- doc bcond

---- Files affected:
packages/libindicate:
   libindicate.spec (1.14 -> 1.15) 

---- Diffs:

================================================================
Index: packages/libindicate/libindicate.spec
diff -u packages/libindicate/libindicate.spec:1.14 packages/libindicate/libindicate.spec:1.15
--- packages/libindicate/libindicate.spec:1.14	Mon Dec  7 21:18:29 2009
+++ packages/libindicate/libindicate.spec	Fri Jan  8 12:21:22 2010
@@ -1,5 +1,5 @@
 # $Revision$, $Date$
-
+%bcond_without	doc
 Summary:	Libindicate
 Summary(pl.UTF-8):	Libindicate
 Name:		libindicate
@@ -15,17 +15,19 @@
 BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	dbus-glib-devel
-BuildRequires:	docbook-dtd412-xml
 BuildRequires:	gir-repository-devel
 BuildRequires:	glibc-misc
 BuildRequires:	gnome-common
 BuildRequires:	gnome-doc-utils
 BuildRequires:	gobject-introspection-devel
 BuildRequires:	gtk+2-devel
-BuildRequires:	gtk-doc
 BuildRequires:	libtool
 BuildRequires:	libxml2-devel
 BuildRequires:	pkgconfig
+%if %{with doc}
+BuildRequires:	docbook-dtd412-xml
+BuildRequires:	gtk-doc
+%endif
 Requires(post,preun):	/sbin/chkconfig
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -83,7 +85,7 @@
 %{__autoconf}
 %{__automake}
 %configure \
-	--enable-gtk-doc \
+	--%{?with_doc:en}%{!?with_doc:dis}able-gtk-doc \
 	--with-html-dir=%{_gtkdocdir}
 
 # without -j1 introspection tries to link with system -lindicate
@@ -128,9 +130,11 @@
 %{_datadir}/gir-1.0/Indicate-*.gir
 %{_datadir}/gir-1.0/IndicateGtk-*.gir
 
+%if %{with doc}
 %files apidocs
 %defattr(644,root,root,755)
 %{_gtkdocdir}/libindicate
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -138,6 +142,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.15  2010/01/08 11:21:22  arekm
+- doc bcond
+
 Revision 1.14  2009/12/07 20:18:29  sparky
 - BR: glibc-misc (for ldd binary)
 - make with -j1 - without it introspection tries to link with system -lindicate
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/libindicate/libindicate.spec?r1=1.14&r2=1.15&f=u



More information about the pld-cvs-commit mailing list