]>
Commit | Line | Data |
---|---|---|
8e1f9134 MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable gtk-doc | |
f6dc4bde | 4 | %bcond_without vala # do not build Vala API |
8e1f9134 | 5 | # |
6797b577 | 6 | Summary: A GLib library to ease writing telepathy clients |
7 | Summary(pl.UTF-8): Biblioteka oparta na GLib dla aplikacji służących do komunikacji | |
8 | Name: telepathy-glib | |
9ae8c72c | 9 | # NOTE: 0.20.x is stable, 0.21.x will be unstable |
6549fa7b | 10 | Version: 0.20.4 |
a4e827e1 | 11 | Release: 1 |
f6eb4cf0 | 12 | License: LGPL v2.1+ |
6797b577 | 13 | Group: Libraries |
14 | Source0: http://telepathy.freedesktop.org/releases/telepathy-glib/%{name}-%{version}.tar.gz | |
6549fa7b | 15 | # Source0-md5: 78be56307d2da7c580cf6df33a225ba0 |
6797b577 | 16 | URL: http://telepathy.freedesktop.org/wiki/ |
17 | BuildRequires: autoconf >= 2.59 | |
1a30df50 | 18 | BuildRequires: automake >= 1:1.11 |
f2566bc9 | 19 | BuildRequires: dbus-devel >= 0.95 |
65fd07c8 | 20 | BuildRequires: dbus-glib-devel >= 0.90 |
808b0975 | 21 | BuildRequires: docbook-dtd412-xml |
f6eb4cf0 | 22 | BuildRequires: glib2-devel >= 1:2.32.0 |
65fd07c8 MB |
23 | BuildRequires: gobject-introspection-devel >= 1.30.0 |
24 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.17} | |
8e1f9134 | 25 | BuildRequires: libtool |
6797b577 | 26 | BuildRequires: libxslt-progs |
f6eb4cf0 | 27 | BuildRequires: pkgconfig >= 1:0.21 |
c08dac42 | 28 | BuildRequires: python-modules >= 1:2.5 |
f6eb4cf0 JB |
29 | %{?with_vala:BuildRequires: vala >= 2:0.16.0} |
30 | Requires: dbus-libs >= 0.95 | |
31 | Requires: dbus-glib >= 0.90 | |
68a39445 | 32 | Requires: glib2 >= 1:2.32.0 |
6797b577 | 33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
35 | %description | |
36 | telepathy-glib is a D-Bus framework for unifying real time | |
37 | communication, including instant messaging, voice calls and video | |
38 | calls. It abstracts differences between protocols to provide a unified | |
39 | interface for applications. | |
40 | ||
41 | %description -l pl.UTF-8 | |
42 | telepathy-glib jest szkieletem opartym na D-Bus ujednolicającym | |
8e1f9134 MB |
43 | komunikację w czasie rzeczywistym, włączając w to komunikatory oraz |
44 | komunikację głosową i za pośrednictwem wideo. Zasłania warstwą | |
45 | abstrakcji różnice pomiędzy protokołami dostarczając jednolity | |
46 | interfejs dla aplikacji. | |
6797b577 | 47 | |
48 | %package devel | |
49 | Summary: Header files for telepathy-glib library | |
50 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki telepathy-glib | |
51 | Group: Development/Libraries | |
52 | Requires: %{name} = %{version}-%{release} | |
f6eb4cf0 | 53 | Requires: dbus-devel >= 0.95 |
65fd07c8 | 54 | Requires: dbus-glib-devel >= 0.90 |
f6eb4cf0 | 55 | Requires: glib2-devel >= 1:2.32.0 |
6797b577 | 56 | |
57 | %description devel | |
58 | Header files for telepathy-glib library. | |
59 | ||
60 | %description devel -l pl.UTF-8 | |
61 | Pliki nagłówkowe biblioteki telepathy-glib. | |
62 | ||
63 | %package static | |
64 | Summary: Static telepathy-glib library | |
65 | Summary(pl.UTF-8): Statyczna biblioteka telepathy-glib | |
66 | Group: Development/Libraries | |
67 | Requires: %{name}-devel = %{version}-%{release} | |
68 | ||
69 | %description static | |
70 | Static telepathy-glib library. | |
71 | ||
72 | %description static -l pl.UTF-8 | |
73 | Statyczna biblioteka telepathy-glib. | |
74 | ||
8e1f9134 MB |
75 | %package apidocs |
76 | Summary: telepathy-glib API documentation | |
77 | Summary(pl.UTF-8): Dokumentacja API telepathy-glib | |
78 | Group: Documentation | |
79 | Requires: gtk-doc-common | |
80 | ||
81 | %description apidocs | |
82 | telepathy-glib API documentation. | |
83 | ||
84 | %description apidocs -l pl.UTF-8 | |
85 | Dokumentacja API telepathy-glib. | |
86 | ||
f6dc4bde ŁK |
87 | %package -n vala-telepathy-glib |
88 | Summary: telepathy-glib API for Vala language | |
89 | Summary(pl.UTF-8): API telepathy-glib dla języka Vala | |
90 | Group: Development/Libraries | |
91 | Requires: %{name}-devel = %{version}-%{release} | |
f6eb4cf0 | 92 | Requires: vala >= 2:0.16.0 |
f6dc4bde ŁK |
93 | |
94 | %description -n vala-telepathy-glib | |
95 | telepathy-glib API for Vala language. | |
96 | ||
97 | %description -n vala-telepathy-glib -l pl.UTF-8 | |
98 | API telepathy-glib dla języka Vala. | |
99 | ||
6797b577 | 100 | %prep |
101 | %setup -q | |
102 | ||
103 | %build | |
104 | %{__libtoolize} | |
105 | %{__aclocal} -I m4 | |
106 | %{__autoconf} | |
107 | %{__autoheader} | |
108 | %{__automake} | |
8e1f9134 | 109 | %configure \ |
f2566bc9 AF |
110 | --disable-silent-rules \ |
111 | %{__enable_disable apidocs gtk-doc} \ | |
c1045f6a | 112 | --enable-introspection \ |
f6dc4bde | 113 | %{__enable_disable vala vala-bindings} \ |
8e1f9134 | 114 | --with-html-dir=%{_gtkdocdir} |
6797b577 | 115 | %{__make} |
116 | ||
117 | %install | |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
120 | %{__make} install \ | |
8e1f9134 MB |
121 | DESTDIR=$RPM_BUILD_ROOT |
122 | ||
123 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}} | |
6797b577 | 124 | |
125 | %clean | |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
128 | %post -p /sbin/ldconfig | |
129 | %postun -p /sbin/ldconfig | |
130 | ||
131 | %files | |
132 | %defattr(644,root,root,755) | |
68a39445 | 133 | %doc AUTHORS ChangeLog NEWS README |
6797b577 | 134 | %attr(755,root,root) %{_libdir}/libtelepathy-glib.so.*.*.* |
a40eb8a9 | 135 | %attr(755,root,root) %ghost %{_libdir}/libtelepathy-glib.so.0 |
f6eb4cf0 | 136 | %{_libdir}/girepository-1.0/TelepathyGLib-0.12.typelib |
6797b577 | 137 | |
138 | %files devel | |
139 | %defattr(644,root,root,755) | |
140 | %attr(755,root,root) %{_libdir}/libtelepathy-glib.so | |
38e523c1 | 141 | %{_libdir}/libtelepathy-glib.la |
6797b577 | 142 | %dir %{_includedir}/telepathy-1.0 |
143 | %dir %{_includedir}/telepathy-1.0/telepathy-glib | |
8e1f9134 | 144 | %dir %{_includedir}/telepathy-1.0/telepathy-glib/_gen |
6797b577 | 145 | %{_includedir}/telepathy-1.0/telepathy-glib/*.h |
8e1f9134 | 146 | %{_includedir}/telepathy-1.0/telepathy-glib/_gen/*.h |
6797b577 | 147 | %{_pkgconfigdir}/telepathy-glib.pc |
f6eb4cf0 | 148 | %{_datadir}/gir-1.0/TelepathyGLib-0.12.gir |
6797b577 | 149 | |
150 | %files static | |
151 | %defattr(644,root,root,755) | |
152 | %{_libdir}/libtelepathy-glib.a | |
8e1f9134 MB |
153 | |
154 | %if %{with apidocs} | |
155 | %files apidocs | |
156 | %defattr(644,root,root,755) | |
157 | %{_gtkdocdir}/telepathy-glib | |
158 | %endif | |
f6dc4bde ŁK |
159 | |
160 | %if %{with vala} | |
161 | %files -n vala-telepathy-glib | |
162 | %defattr(644,root,root,755) | |
163 | %{_datadir}/vala/vapi/telepathy-glib.deps | |
164 | %{_datadir}/vala/vapi/telepathy-glib.vapi | |
165 | %endif |