]>
Commit | Line | Data |
---|---|---|
8e1f9134 MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable gtk-doc | |
4 | # | |
6797b577 | 5 | Summary: A GLib library to ease writing telepathy clients |
6 | Summary(pl.UTF-8): Biblioteka oparta na GLib dla aplikacji służących do komunikacji | |
7 | Name: telepathy-glib | |
1a30df50 | 8 | Version: 0.9.1 |
2a590e16 | 9 | Release: 1 |
6797b577 | 10 | License: LGPL |
11 | Group: Libraries | |
12 | Source0: http://telepathy.freedesktop.org/releases/telepathy-glib/%{name}-%{version}.tar.gz | |
1a30df50 | 13 | # Source0-md5: fa82a4474b3a5436b5b3cb44cbc9a9b4 |
6797b577 | 14 | URL: http://telepathy.freedesktop.org/wiki/ |
15 | BuildRequires: autoconf >= 2.59 | |
1a30df50 | 16 | BuildRequires: automake >= 1:1.11 |
f7691ece | 17 | BuildRequires: dbus-glib-devel >= 0.74 |
1a30df50 | 18 | BuildRequires: glib2-devel >= 1:2.20.0 |
f7691ece | 19 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.10} |
8e1f9134 | 20 | BuildRequires: libtool |
6797b577 | 21 | BuildRequires: libxslt-progs |
22 | BuildRequires: pkgconfig | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | telepathy-glib is a D-Bus framework for unifying real time | |
27 | communication, including instant messaging, voice calls and video | |
28 | calls. It abstracts differences between protocols to provide a unified | |
29 | interface for applications. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | telepathy-glib jest szkieletem opartym na D-Bus ujednolicającym | |
8e1f9134 MB |
33 | komunikację w czasie rzeczywistym, włączając w to komunikatory oraz |
34 | komunikację głosową i za pośrednictwem wideo. Zasłania warstwą | |
35 | abstrakcji różnice pomiędzy protokołami dostarczając jednolity | |
36 | interfejs dla aplikacji. | |
6797b577 | 37 | |
38 | %package devel | |
39 | Summary: Header files for telepathy-glib library | |
40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki telepathy-glib | |
41 | Group: Development/Libraries | |
42 | Requires: %{name} = %{version}-%{release} | |
f7691ece MB |
43 | Requires: dbus-glib-devel >= 0.74 |
44 | Requires: glib2-devel >= 1:2.16.0 | |
6797b577 | 45 | |
46 | %description devel | |
47 | Header files for telepathy-glib library. | |
48 | ||
49 | %description devel -l pl.UTF-8 | |
50 | Pliki nagłówkowe biblioteki telepathy-glib. | |
51 | ||
52 | %package static | |
53 | Summary: Static telepathy-glib library | |
54 | Summary(pl.UTF-8): Statyczna biblioteka telepathy-glib | |
55 | Group: Development/Libraries | |
56 | Requires: %{name}-devel = %{version}-%{release} | |
57 | ||
58 | %description static | |
59 | Static telepathy-glib library. | |
60 | ||
61 | %description static -l pl.UTF-8 | |
62 | Statyczna biblioteka telepathy-glib. | |
63 | ||
8e1f9134 MB |
64 | %package apidocs |
65 | Summary: telepathy-glib API documentation | |
66 | Summary(pl.UTF-8): Dokumentacja API telepathy-glib | |
67 | Group: Documentation | |
68 | Requires: gtk-doc-common | |
69 | ||
70 | %description apidocs | |
71 | telepathy-glib API documentation. | |
72 | ||
73 | %description apidocs -l pl.UTF-8 | |
74 | Dokumentacja API telepathy-glib. | |
75 | ||
6797b577 | 76 | %prep |
77 | %setup -q | |
78 | ||
79 | %build | |
80 | %{__libtoolize} | |
81 | %{__aclocal} -I m4 | |
82 | %{__autoconf} | |
83 | %{__autoheader} | |
84 | %{__automake} | |
8e1f9134 | 85 | %configure \ |
1a30df50 | 86 | --enable-silent-rules \ |
8e1f9134 MB |
87 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
88 | --with-html-dir=%{_gtkdocdir} | |
6797b577 | 89 | %{__make} |
90 | ||
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %{__make} install \ | |
8e1f9134 MB |
95 | DESTDIR=$RPM_BUILD_ROOT |
96 | ||
97 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}} | |
6797b577 | 98 | |
99 | %clean | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %post -p /sbin/ldconfig | |
103 | %postun -p /sbin/ldconfig | |
104 | ||
105 | %files | |
106 | %defattr(644,root,root,755) | |
107 | %doc AUTHORS ChangeLog README | |
108 | %attr(755,root,root) %{_libdir}/libtelepathy-glib.so.*.*.* | |
a40eb8a9 | 109 | %attr(755,root,root) %ghost %{_libdir}/libtelepathy-glib.so.0 |
6797b577 | 110 | |
111 | %files devel | |
112 | %defattr(644,root,root,755) | |
113 | %attr(755,root,root) %{_libdir}/libtelepathy-glib.so | |
38e523c1 | 114 | %{_libdir}/libtelepathy-glib.la |
6797b577 | 115 | %dir %{_includedir}/telepathy-1.0 |
116 | %dir %{_includedir}/telepathy-1.0/telepathy-glib | |
8e1f9134 | 117 | %dir %{_includedir}/telepathy-1.0/telepathy-glib/_gen |
6797b577 | 118 | %{_includedir}/telepathy-1.0/telepathy-glib/*.h |
8e1f9134 | 119 | %{_includedir}/telepathy-1.0/telepathy-glib/_gen/*.h |
6797b577 | 120 | %{_pkgconfigdir}/telepathy-glib.pc |
6797b577 | 121 | |
122 | %files static | |
123 | %defattr(644,root,root,755) | |
124 | %{_libdir}/libtelepathy-glib.a | |
8e1f9134 MB |
125 | |
126 | %if %{with apidocs} | |
127 | %files apidocs | |
128 | %defattr(644,root,root,755) | |
129 | %{_gtkdocdir}/telepathy-glib | |
130 | %endif |