- added apidocs bcond; cosmetics auto/th/exo-0_3_100-1 auto/ti/exo-0_3_100-1
authorKarol Krenski <charles@pld-linux.org>
Sat, 28 Feb 2009 10:22:05 +0000 (10:22 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    exo.spec -> 1.34

exo.spec

index c78bc6e..cd84517 100644 (file)
--- a/exo.spec
+++ b/exo.spec
@@ -1,5 +1,6 @@
 #
 # Conditional build:
+%bcond_without apidocs         # disable gtk-doc
 %bcond_without static_libs     # don't build static library
 #
 %define                xfce_version    4.6.0
@@ -18,7 +19,8 @@ BuildRequires:        autoconf >= 2.50
 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
@@ -135,12 +137,13 @@ Pliki programistyczne wiązań Pythona do libexo.
 %{__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
@@ -154,6 +157,8 @@ mv $RPM_BUILD_ROOT%{_datadir}/locale/nb{_NO,}
 
 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
@@ -201,9 +206,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_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)
This page took 0.043522 seconds and 4 git commands to generate.