]>
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 | |
85006a24 | 8 | Version: 0.7.0 |
2a590e16 | 9 | Release: 1 |
6797b577 | 10 | License: LGPL |
11 | Group: Libraries | |
12 | Source0: http://telepathy.freedesktop.org/releases/telepathy-glib/%{name}-%{version}.tar.gz | |
85006a24 | 13 | # Source0-md5: b4cb035a6e235be3179364341843e929 |
6797b577 | 14 | URL: http://telepathy.freedesktop.org/wiki/ |
15 | BuildRequires: autoconf >= 2.59 | |
16 | BuildRequires: automake >= 1:1.8 | |
17 | BuildRequires: dbus-glib-devel >= 0.61 | |
38e523c1 | 18 | BuildRequires: glib2-devel >= 1:2.4.0 |
8e1f9134 | 19 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.7} |
85006a24 | 20 | #BuildRequires: libtelepathy-devel |
8e1f9134 | 21 | BuildRequires: libtool |
6797b577 | 22 | BuildRequires: libxslt-progs |
23 | BuildRequires: pkgconfig | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | telepathy-glib is a D-Bus framework for unifying real time | |
28 | communication, including instant messaging, voice calls and video | |
29 | calls. It abstracts differences between protocols to provide a unified | |
30 | interface for applications. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | telepathy-glib jest szkieletem opartym na D-Bus ujednolicającym | |
8e1f9134 MB |
34 | komunikację w czasie rzeczywistym, włączając w to komunikatory oraz |
35 | komunikację głosową i za pośrednictwem wideo. Zasłania warstwą | |
36 | abstrakcji różnice pomiędzy protokołami dostarczając jednolity | |
37 | interfejs dla aplikacji. | |
6797b577 | 38 | |
39 | %package devel | |
40 | Summary: Header files for telepathy-glib library | |
41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki telepathy-glib | |
42 | Group: Development/Libraries | |
43 | Requires: %{name} = %{version}-%{release} | |
44 | Requires: dbus-glib-devel >= 0.61 | |
38e523c1 | 45 | Requires: glib2-devel >= 1:2.4.0 |
6797b577 | 46 | |
47 | %description devel | |
48 | Header files for telepathy-glib library. | |
49 | ||
50 | %description devel -l pl.UTF-8 | |
51 | Pliki nagłówkowe biblioteki telepathy-glib. | |
52 | ||
53 | %package static | |
54 | Summary: Static telepathy-glib library | |
55 | Summary(pl.UTF-8): Statyczna biblioteka telepathy-glib | |
56 | Group: Development/Libraries | |
57 | Requires: %{name}-devel = %{version}-%{release} | |
58 | ||
59 | %description static | |
60 | Static telepathy-glib library. | |
61 | ||
62 | %description static -l pl.UTF-8 | |
63 | Statyczna biblioteka telepathy-glib. | |
64 | ||
8e1f9134 MB |
65 | %package apidocs |
66 | Summary: telepathy-glib API documentation | |
67 | Summary(pl.UTF-8): Dokumentacja API telepathy-glib | |
68 | Group: Documentation | |
69 | Requires: gtk-doc-common | |
70 | ||
71 | %description apidocs | |
72 | telepathy-glib API documentation. | |
73 | ||
74 | %description apidocs -l pl.UTF-8 | |
75 | Dokumentacja API telepathy-glib. | |
76 | ||
6797b577 | 77 | %prep |
78 | %setup -q | |
79 | ||
80 | %build | |
81 | %{__libtoolize} | |
82 | %{__aclocal} -I m4 | |
83 | %{__autoconf} | |
84 | %{__autoheader} | |
85 | %{__automake} | |
8e1f9134 MB |
86 | %configure \ |
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.*.*.* | |
109 | ||
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
112 | %attr(755,root,root) %{_libdir}/libtelepathy-glib.so | |
38e523c1 | 113 | %{_libdir}/libtelepathy-glib.la |
6797b577 | 114 | %dir %{_includedir}/telepathy-1.0 |
115 | %dir %{_includedir}/telepathy-1.0/telepathy-glib | |
8e1f9134 | 116 | %dir %{_includedir}/telepathy-1.0/telepathy-glib/_gen |
6797b577 | 117 | %{_includedir}/telepathy-1.0/telepathy-glib/*.h |
8e1f9134 | 118 | %{_includedir}/telepathy-1.0/telepathy-glib/_gen/*.h |
6797b577 | 119 | %{_pkgconfigdir}/telepathy-glib.pc |
6797b577 | 120 | |
121 | %files static | |
122 | %defattr(644,root,root,755) | |
123 | %{_libdir}/libtelepathy-glib.a | |
8e1f9134 MB |
124 | |
125 | %if %{with apidocs} | |
126 | %files apidocs | |
127 | %defattr(644,root,root,755) | |
128 | %{_gtkdocdir}/telepathy-glib | |
129 | %endif |