Author: megabajt                     Date: Mon Apr 30 19:45:01 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added apidocs bcond and subpackage

---- Files affected:
SPECS:
   loudmouth.spec (1.48 -> 1.49) 

---- Diffs:

================================================================
Index: SPECS/loudmouth.spec
diff -u SPECS/loudmouth.spec:1.48 SPECS/loudmouth.spec:1.49
--- SPECS/loudmouth.spec:1.48   Mon Apr 30 02:40:04 2007
+++ SPECS/loudmouth.spec        Mon Apr 30 21:44:56 2007
@@ -1,6 +1,7 @@
 # $Revision$, $Date$
 #
 # Conditional build:
+%bcond_without apidocs # disable gtk-doc
 %bcond_without ssl     # without SSL support
 #
 Summary:       Loudmouth - a Jabber library written in C
@@ -17,7 +18,7 @@
 BuildRequires: automake
 BuildRequires: glib2-devel >= 1:2.12.3
 %{?with_ssl:BuildRequires:     gnutls-devel >= 1.2.5}
-BuildRequires: gtk-doc >= 1.7
+%{?with_apidocs:BuildRequires: gtk-doc >= 1.7}
 BuildRequires: libtool
 BuildRequires: pkgconfig
 Requires:      glib2 >= 1:2.12.3
@@ -41,7 +42,6 @@
 Requires:      %{name} = %{version}-%{release}
 Requires:      glib2-devel >= 1:2.12.3
 %{?with_ssl:Requires:  gnutls-devel >= 1.2.5}
-Requires:      gtk-doc-common
 
 %description devel
 This package provides the necessary header files to allow you to
@@ -63,6 +63,18 @@
 %description static -l pl.UTF-8
 Statyczna wersja bibliotek Loudmouth.
 
+%package apidocs
+Summary:       Loudmouth library API documentation
+Summary(pl.UTF-8):     Dokumentacja API biblioteki Loudmouth.
+Group:         Documentation
+Requires:      gtk-doc-common
+
+%description apidocs
+Loudmouth library API documentation.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki Loudmouth.
+
 %prep
 %setup -q
 
@@ -74,7 +86,7 @@
 %{__automake}
 %configure \
        %{!?with_ssl:--without-ssl} \
-       --enable-gtk-doc
+       --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc
 %{__make}
 
 %install
@@ -84,6 +96,8 @@
        DESTDIR=$RPM_BUILD_ROOT \
        HTML_DIR=%{_gtkdocdir}
 
+%{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -101,18 +115,26 @@
 %{_libdir}/*.la
 %{_pkgconfigdir}/*
 %{_includedir}/loudmouth-1.0
-%{_gtkdocdir}/*
 
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
 
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/%{name}
+%endif
+
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <[EMAIL PROTECTED]>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.49  2007/04/30 19:44:56  megabajt
+- added apidocs bcond and subpackage
+
 Revision 1.48  2007/04/30 00:40:04  aredridel
 - 1.2.2
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/loudmouth.spec?r1=1.48&r2=1.49&f=u

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

Reply via email to