]> git.pld-linux.org Git - packages/telepathy-glib.git/blobdiff - telepathy-glib.spec
- 0.9.1
[packages/telepathy-glib.git] / telepathy-glib.spec
index 74ece67f08a678ef7755112f17879aaed1d45731..7678281a0760d89721c2583715c90123c3ea1dcf 100644 (file)
@@ -1,20 +1,23 @@
+#
+# 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.9.1
 Release:       1
 License:       LGPL
 Group:         Libraries
 Source0:       http://telepathy.freedesktop.org/releases/telepathy-glib/%{name}-%{version}.tar.gz
-# Source0-md5: 5ddba9c6f1620ed27a05e651bebb1800
+# Source0-md5: fa82a4474b3a5436b5b3cb44cbc9a9b4
 URL:           http://telepathy.freedesktop.org/wiki/
 BuildRequires: autoconf >= 2.59
-BuildRequires: automake >= 1:1.8
-BuildRequires: dbus-glib-devel >= 0.61
-BuildRequires: glib2-devel >= 2.4.0
-BuildRequires: gtk-doc >= 1.7
+BuildRequires: automake >= 1:1.11
+BuildRequires: dbus-glib-devel >= 0.74
+BuildRequires: glib2-devel >= 1:2.20.0
+%{?with_apidocs:BuildRequires: gtk-doc >= 1.10}
 BuildRequires: libtool
-BuildRequires: libtelepathy-devel
 BuildRequires: libxslt-progs
 BuildRequires: pkgconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -27,18 +30,18 @@ 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
 Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki telepathy-glib
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
-Requires:      dbus-glib-devel >= 0.61
-Requires:      glib2-devel >= 2.4.0
+Requires:      dbus-glib-devel >= 0.74
+Requires:      glib2-devel >= 1:2.16.0
 
 %description devel
 Header files for telepathy-glib library.
@@ -58,6 +61,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 +82,19 @@ Statyczna biblioteka telepathy-glib.
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+       --enable-silent-rules \
+       --%{?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
@@ -87,17 +106,25 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog README
 %attr(755,root,root) %{_libdir}/libtelepathy-glib.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libtelepathy-glib.so.0
 
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libtelepathy-glib.so
+%{_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
-%{_libdir}/libtelepathy-glib.la
+%{_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.070782 seconds and 4 git commands to generate.