]> git.pld-linux.org Git - packages/telepathy-glib.git/commitdiff
- updated to 0.5.13 auto/th/telepathy-glib-0_5_13-1
authorMarcin Banasiak <marcin.banasiak@gmail.com>
Sat, 2 Jun 2007 22:44:48 +0000 (22:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added apidocs bcond and subpackage

Changed files:
    telepathy-glib.spec -> 1.3

telepathy-glib.spec

index e62c9782cd3cb969e598498718b09e26038ed025..eb6db7f54b633c8ff142bfcbcd57c3fc45953e2a 100644 (file)
@@ -1,20 +1,24 @@
+#
+# Conditional build:
+%bcond_without apidocs         # disable gtk-doc
+#
 Summary:       A GLib library to ease writing telepathy clients
 Summary(pl.UTF-8):     Biblioteka oparta na GLib dla aplikacji służących do komunikacji
 Name:          telepathy-glib
-Version:       0.5.11
+Version:       0.5.13
 Release:       1
 License:       LGPL
 Group:         Libraries
 Source0:       http://telepathy.freedesktop.org/releases/telepathy-glib/%{name}-%{version}.tar.gz
-# Source0-md5: 5ddba9c6f1620ed27a05e651bebb1800
+# Source0-md5: 61b16101b6164ae495c765c2d09a0899
 URL:           http://telepathy.freedesktop.org/wiki/
 BuildRequires: autoconf >= 2.59
 BuildRequires: automake >= 1:1.8
 BuildRequires: dbus-glib-devel >= 0.61
 BuildRequires: glib2-devel >= 1:2.4.0
-BuildRequires: gtk-doc >= 1.7
-BuildRequires: libtool
+%{?with_apidocs:BuildRequires: gtk-doc >= 1.7}
 BuildRequires: libtelepathy-devel
+BuildRequires: libtool
 BuildRequires: libxslt-progs
 BuildRequires: pkgconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -27,10 +31,10 @@ interface for applications.
 
 %description -l pl.UTF-8
 telepathy-glib jest szkieletem opartym na D-Bus ujednolicającym
-komunikację w czasie rzeczywistym, włączając w to komunikatory
-oraz komunikację głosową i za pośrednictwem wideo. Zasłania
-warstwą abstrakcji różnice pomiędzy protokołami dostarczając
-jednolity interfejs dla aplikacji.
+komunikację w czasie rzeczywistym, włączając w to komunikatory oraz
+komunikację głosową i za pośrednictwem wideo. Zasłania warstwą
+abstrakcji różnice pomiędzy protokołami dostarczając jednolity
+interfejs dla aplikacji.
 
 %package devel
 Summary:       Header files for telepathy-glib library
@@ -58,6 +62,18 @@ Static telepathy-glib library.
 %description static -l pl.UTF-8
 Statyczna biblioteka telepathy-glib.
 
+%package apidocs
+Summary:       telepathy-glib API documentation
+Summary(pl.UTF-8):     Dokumentacja API telepathy-glib
+Group:         Documentation
+Requires:      gtk-doc-common
+
+%description apidocs
+telepathy-glib API documentation.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API telepathy-glib.
+
 %prep
 %setup -q
 
@@ -67,15 +83,18 @@ Statyczna biblioteka telepathy-glib.
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+       --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
+       --with-html-dir=%{_gtkdocdir}
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT \
-       HTML_DIR=%{_gtkdocdir}
+       DESTDIR=$RPM_BUILD_ROOT
+
+%{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -94,10 +113,17 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libtelepathy-glib.la
 %dir %{_includedir}/telepathy-1.0
 %dir %{_includedir}/telepathy-1.0/telepathy-glib
+%dir %{_includedir}/telepathy-1.0/telepathy-glib/_gen
 %{_includedir}/telepathy-1.0/telepathy-glib/*.h
+%{_includedir}/telepathy-1.0/telepathy-glib/_gen/*.h
 %{_pkgconfigdir}/telepathy-glib.pc
-%{_gtkdocdir}/*
 
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libtelepathy-glib.a
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/telepathy-glib
+%endif
This page took 0.043224 seconds and 4 git commands to generate.