SPECS: exo.spec - added apidocs bcond; cosmetics
charles
charles at pld-linux.org
Sat Feb 28 11:22:10 CET 2009
Author: charles Date: Sat Feb 28 10:22:10 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added apidocs bcond; cosmetics
---- Files affected:
SPECS:
exo.spec (1.33 -> 1.34)
---- Diffs:
================================================================
Index: SPECS/exo.spec
diff -u SPECS/exo.spec:1.33 SPECS/exo.spec:1.34
--- SPECS/exo.spec:1.33 Fri Feb 27 19:03:22 2009
+++ SPECS/exo.spec Sat Feb 28 11:22:05 2009
@@ -1,6 +1,7 @@
# $Revision$, $Date$
#
# Conditional build:
+%bcond_without apidocs # disable gtk-doc
%bcond_without static_libs # don't build static library
#
%define xfce_version 4.6.0
@@ -19,7 +20,8 @@
BuildRequires: automake
BuildRequires: gettext-devel
BuildRequires: gtk+2-devel >= 2:2.10.6
-BuildRequires: gtk-doc >= 1.7
+%{?with_apidocs:BuildRequires: gtk-doc >= 1.7}
+BuildRequires: gtk-doc-automake
BuildRequires: hal-devel >= 0.5.7
BuildRequires: intltool >= 0.35.0
BuildRequires: libnotify-devel >= 0.4.0
@@ -136,12 +138,13 @@
%{__automake}
%{__autoconf}
%configure \
+ --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
--enable-hal \
- --enable-gtk-doc \
--enable-notifications \
+ --enable-python \
--with-html-dir=%{_gtkdocdir} \
- %{!?with_static_libs:--disable-static} \
- --enable-python
+ %{!?with_static_libs:--disable-static}
+
%{__make}
%install
@@ -155,6 +158,8 @@
rm -f $RPM_BUILD_ROOT%{py_sitedir}/exo-0.3/*.{la,a}
+%{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/exo}
+
%py_postclean
%find_lang libexo-0.3
@@ -202,9 +207,11 @@
%{_iconsdir}/hicolor/*/apps/applications-other.png
%{_mandir}/man1/*.1*
+%if %{with apidocs}
%files apidocs
%defattr(644,root,root,755)
%{_gtkdocdir}/exo
+%endif
%files devel
%defattr(644,root,root,755)
@@ -241,6 +248,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.34 2009/02/28 10:22:05 charles
+- added apidocs bcond; cosmetics
+
Revision 1.33 2009/02/27 18:03:22 megabajt
- spec file renamed to exo.spec
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/exo.spec?r1=1.33&r2=1.34&f=u
More information about the pld-cvs-commit
mailing list