]>
Commit | Line | Data |
---|---|---|
de94b064 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without vala # Vala API | |
4 | # | |
5 | Summary: A GTK+ widget for VNC clients (GTK+ 2.x version) | |
6 | Summary(pl.UTF-8): Widget GTK+ dla klientów VNC (wersja dla GTK+ 2.x) | |
e8f8ba6b | 7 | Name: gtk-vnc |
2b3f8d21 | 8 | Version: 0.5.3 |
ee1e4e17 | 9 | Release: 2 |
de94b064 | 10 | License: LGPL v2+ |
3994aa9c | 11 | Group: X11/Libraries |
3ef49d53 | 12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gtk-vnc/0.5/%{name}-%{version}.tar.xz |
2b3f8d21 | 13 | # Source0-md5: 1dccd918a4d633020e4afaf6c9352cde |
e8f8ba6b | 14 | Patch0: %{name}-codegen.patch |
de94b064 | 15 | Patch1: %{name}-libtool.patch |
3994aa9c | 16 | URL: http://live.gnome.org/gtk-vnc |
7c955236 MB |
17 | BuildRequires: autoconf >= 2.63 |
18 | BuildRequires: automake >= 1:1.10 | |
796a7010 | 19 | BuildRequires: cairo-devel >= 1.2.0 |
7cbe80e3 | 20 | BuildRequires: cyrus-sasl-devel |
796a7010 | 21 | BuildRequires: gdk-pixbuf2-devel >= 2.10.0 |
943bb532 | 22 | BuildRequires: gettext-tools |
796a7010 | 23 | BuildRequires: glib2-devel >= 1:2.28.0 |
7c955236 | 24 | BuildRequires: gnome-common |
a87b1ed1 | 25 | BuildRequires: gnutls-devel >= 1.4.0 |
7c955236 MB |
26 | BuildRequires: gobject-introspection-devel >= 0.9.4 |
27 | BuildRequires: gtk+2-devel >= 2:2.18.0 | |
796a7010 | 28 | BuildRequires: gtk+3-devel >= 3.0.0 |
7c955236 | 29 | BuildRequires: intltool >= 0.40.0 |
de94b064 | 30 | BuildRequires: libgcrypt-devel |
81c2a01a | 31 | BuildRequires: libgpg-error-devel |
de94b064 | 32 | BuildRequires: libtool >= 2:2.2.6 |
796a7010 | 33 | BuildRequires: libview-devel >= 0.6.0 |
7c955236 | 34 | BuildRequires: perl-Text-CSV |
ef607b54 | 35 | BuildRequires: perl-tools-pod |
a87b1ed1 | 36 | BuildRequires: pkgconfig |
81c2a01a | 37 | BuildRequires: pulseaudio-devel |
a87b1ed1 JB |
38 | BuildRequires: python-devel >= 1:2.4 |
39 | BuildRequires: python-pygtk-devel >= 2:2.0.0 | |
436191a8 | 40 | BuildRequires: rpm-pythonprov |
3ef49d53 | 41 | BuildRequires: tar >= 1:1.22 |
81c2a01a | 42 | %{?with_vala:BuildRequires: vala >= 0.14.0} |
796a7010 | 43 | BuildRequires: xorg-lib-libX11-devel |
3ef49d53 | 44 | BuildRequires: xz |
3994aa9c | 45 | BuildRequires: zlib-devel |
de94b064 JB |
46 | Requires: cairo >= 1.2.0 |
47 | Requires: gtk+2 >= 2:2.18.0 | |
3ef49d53 | 48 | Requires: libgvnc = %{version}-%{release} |
e8f8ba6b PZ |
49 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
50 | ||
51 | %description | |
436191a8 | 52 | gtk-vnc is a VNC viewer widget for GTK+. It is built using coroutines |
e8f8ba6b PZ |
53 | allowing it to be completely asynchronous while remaining single |
54 | threaded. | |
55 | ||
de94b064 JB |
56 | This package contains version for GTK+ 2.x. |
57 | ||
436191a8 JB |
58 | %description -l pl.UTF-8 |
59 | gtk-vnc to widget przeglądarki VNC dla GTK+. Jest skonstruowany z | |
60 | użyciem korutyn, dzięki czemu mogą być w pełni asynchroniczne | |
61 | pozostając jednowątkowymi. | |
62 | ||
de94b064 JB |
63 | Ten pakiet zawiera wersję dla GTK+ 2.x. |
64 | ||
e8f8ba6b | 65 | %package devel |
de94b064 JB |
66 | Summary: Header files for gtk-vnc library (GTK+ 2.x version) |
67 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 2.x) | |
3994aa9c | 68 | Group: X11/Development/Libraries |
436191a8 | 69 | Requires: %{name} = %{version}-%{release} |
de94b064 | 70 | Requires: cairo-devel >= 1.2.0 |
a87b1ed1 | 71 | Requires: gnutls-devel >= 1.4.0 |
7c955236 | 72 | Requires: gtk+2-devel >= 2:2.18.0 |
3ef49d53 | 73 | Requires: libgvnc-devel = %{version}-%{release} |
de94b064 | 74 | Requires: xorg-lib-libX11-devel |
e8f8ba6b PZ |
75 | |
76 | %description devel | |
de94b064 | 77 | Header files for gtk-vnc library (GTK+ 2.x version). |
e8f8ba6b | 78 | |
436191a8 | 79 | %description devel -l pl.UTF-8 |
de94b064 | 80 | Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 2.x). |
e8f8ba6b | 81 | |
a87b1ed1 | 82 | %package static |
de94b064 JB |
83 | Summary: Static gtk-vnc library (GTK+ 2.x version) |
84 | Summary(pl.UTF-8): Statyczna biblioteka gtk-vnc (wersja dla GTK+ 2.x) | |
3994aa9c | 85 | Group: X11/Development/Libraries |
a87b1ed1 | 86 | Requires: %{name}-devel = %{version}-%{release} |
796a7010 | 87 | Requires: libgvnc-static = %{version}-%{release} |
a87b1ed1 JB |
88 | |
89 | %description static | |
de94b064 | 90 | Static gtk-vnc library (GTK+ 2.x version). |
a87b1ed1 JB |
91 | |
92 | %description static -l pl.UTF-8 | |
de94b064 JB |
93 | Statyczna biblioteka gtk-vnc (wersja dla GTK+ 2.x). |
94 | ||
95 | %package -n python-gtk-vnc | |
96 | Summary: Python bindings for the gtk-vnc library (GTK+ 2.x version) | |
97 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki gtk-vnc (wersja dla GTK+ 2.x) | |
98 | Group: Libraries/Python | |
99 | Requires: %{name} = %{version}-%{release} | |
de94b064 JB |
100 | |
101 | %description -n python-gtk-vnc | |
102 | A module allowing use of the GTK+ VNC widget (GTK+ 2.x version) from | |
103 | Python. | |
104 | ||
105 | %description -n python-gtk-vnc -l pl.UTF-8 | |
106 | Moduł pozwalający na używanie widgetu GTK+ VNC (w wersji dla GTK+ 2.x) | |
107 | z poziomu Pythona. | |
a87b1ed1 | 108 | |
796a7010 | 109 | %package -n gtk3-vnc |
de94b064 | 110 | Summary: A GTK+ widget for VNC clients (GTK+ 3.x version) |
796a7010 AF |
111 | Summary(pl.UTF-8): Widget GTK+ dla klientów VNC |
112 | Group: X11/Libraries | |
de94b064 JB |
113 | Requires: cairo >= 1.2.0 |
114 | Requires: gtk+3 >= 3.0.0 | |
3ef49d53 | 115 | Requires: libgvnc = %{version}-%{release} |
796a7010 AF |
116 | |
117 | %description -n gtk3-vnc | |
de94b064 JB |
118 | gtk-vnc is a VNC viewer widget for GTK+. It is built using coroutines |
119 | allowing it to be completely asynchronous while remaining single | |
120 | threaded. | |
121 | ||
122 | This package contains version for GTK+ 3.x. | |
796a7010 AF |
123 | |
124 | %description -n gtk3-vnc -l pl.UTF-8 | |
de94b064 | 125 | gtk-vnc to widget przeglądarki VNC dla GTK+. Jest skonstruowany z |
796a7010 AF |
126 | użyciem korutyn, dzięki czemu mogą być w pełni asynchroniczne |
127 | pozostając jednowątkowymi. | |
128 | ||
de94b064 JB |
129 | Ten pakiet zawiera wersję dla GTK+ 3.x. |
130 | ||
796a7010 | 131 | %package -n gtk3-vnc-devel |
de94b064 JB |
132 | Summary: Header files for gtk-vnc library (GTK+ 3.x version) |
133 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 3.x) | |
796a7010 | 134 | Group: X11/Development/Libraries |
de94b064 | 135 | Requires: cairo-devel >= 1.2.0 |
796a7010 | 136 | Requires: gtk+3-devel >= 3.0.0 |
91650e9c | 137 | Requires: gtk3-vnc = %{version}-%{release} |
796a7010 | 138 | Requires: libgvnc-devel = %{version}-%{release} |
de94b064 | 139 | Requires: xorg-lib-libX11-devel |
796a7010 AF |
140 | |
141 | %description -n gtk3-vnc-devel | |
de94b064 | 142 | Header files for gtk-vnc library (GTK+ 3.x version). |
796a7010 AF |
143 | |
144 | %description -n gtk3-vnc-devel -l pl.UTF-8 | |
de94b064 | 145 | Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 3.x). |
796a7010 AF |
146 | |
147 | %package -n gtk3-vnc-static | |
de94b064 JB |
148 | Summary: Static gtk-vnc library (GTK+ 3.x version) |
149 | Summary(pl.UTF-8): Statyczna biblioteka gtk-vnc (wersja dla GTK+ 3.x) | |
796a7010 AF |
150 | Group: X11/Development/Libraries |
151 | Requires: gtk3-vnc-devel = %{version}-%{release} | |
152 | Requires: libgvnc-static = %{version}-%{release} | |
153 | ||
154 | %description -n gtk3-vnc-static | |
de94b064 | 155 | Static gtk-vnc library (GTK+ 3.x version). |
796a7010 AF |
156 | |
157 | %description -n gtk3-vnc-static -l pl.UTF-8 | |
de94b064 JB |
158 | Statyczna biblioteka gtk-vnc (wersja dla GTK+ 3.x). |
159 | ||
160 | %package -n vala-gtk3-vnc | |
161 | Summary: Vala API for gtk-vnc library (GTK+ 3.x version) | |
162 | Summary(pl.UTF-8): API języka Vala dla biblioteki gtk-vnc (wersja dla GTK+3) | |
163 | Group: Development/Languages | |
164 | Requires: gtk3-vnc-devel = %{version}-%{release} | |
165 | Requires: vala-libgvnc = %{version}-%{release} | |
166 | ||
167 | %description -n vala-gtk3-vnc | |
168 | Vala API for gtk-vnc library (GTK+ 3.x version). | |
169 | ||
170 | %description -n vala-gtk3-vnc -l pl.UTF-8 | |
171 | API języka Vala dla biblioteki gtk-vnc (wersja dla GTK+3). | |
796a7010 AF |
172 | |
173 | %package -n libgvnc | |
174 | Summary: A library for VNC clients | |
175 | Summary(pl.UTF-8): Biblioteka dla klientów VNC | |
176 | Group: X11/Libraries | |
de94b064 | 177 | Requires: gdk-pixbuf2 >= 2.10.0 |
3ef49d53 | 178 | Requires: glib2 >= 1:2.28.0 |
de94b064 | 179 | Requires: gnutls >= 1.4.0 |
796a7010 AF |
180 | |
181 | %description -n libgvnc | |
182 | A library for VNC clients. | |
183 | ||
184 | %description -n libgvnc -l pl.UTF-8 | |
185 | Biblioteka dla klientów VNC. | |
186 | ||
187 | %package -n libgvnc-devel | |
188 | Summary: Header files for libgvnc library | |
189 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgvnc | |
190 | Group: X11/Development/Libraries | |
de94b064 | 191 | Requires: cyrus-sasl-devel |
de94b064 | 192 | Requires: gdk-pixbuf2-devel >= 2.10.0 |
3ef49d53 | 193 | Requires: glib2-devel >= 1:2.28.0 |
de94b064 JB |
194 | Requires: gnutls-devel >= 1.4.0 |
195 | Requires: libgcrypt-devel | |
3ef49d53 | 196 | Requires: libgvnc = %{version}-%{release} |
de94b064 | 197 | Requires: zlib-devel |
796a7010 AF |
198 | |
199 | %description -n libgvnc-devel | |
200 | Header files for libgvnc library. | |
201 | ||
202 | %description -n libgvnc-devel -l pl.UTF-8 | |
203 | Pliki nagłówkowe biblioteki libgvnc. | |
204 | ||
205 | %package -n libgvnc-static | |
206 | Summary: Static libgvnc library | |
207 | Summary(pl.UTF-8): Statyczna biblioteka libgvnc | |
208 | Group: X11/Development/Libraries | |
209 | Requires: libgvnc-devel = %{version}-%{release} | |
210 | ||
211 | %description -n libgvnc-static | |
212 | Static libgvnc library. | |
213 | ||
214 | %description -n libgvnc-static -l pl.UTF-8 | |
215 | Statyczna biblioteka libgvnc. | |
216 | ||
de94b064 JB |
217 | %package -n vala-libgvnc |
218 | Summary: Vala API for libgvnc library | |
219 | Summary(pl.UTF-8): API języka Vala dla biblioteki libgvnc | |
220 | Group: Development/Languages | |
221 | Requires: libgvnc-devel = %{version}-%{release} | |
222 | Requires: vala | |
e8f8ba6b | 223 | |
de94b064 JB |
224 | %description -n vala-libgvnc |
225 | Vala API for libgvnc library. | |
e8f8ba6b | 226 | |
de94b064 JB |
227 | %description -n vala-libgvnc -l pl.UTF-8 |
228 | API języka Vala dla biblioteki libgvnc. | |
e8f8ba6b | 229 | |
7c955236 MB |
230 | %package tools |
231 | Summary: Command line tools for VNC | |
232 | Summary(pl.UTF-8): Narzędzia linii poleceń dla VNC | |
233 | Group: Applications/Networking | |
d0682d5e | 234 | Requires: libgvnc = %{version}-%{release} |
7c955236 MB |
235 | |
236 | %description tools | |
237 | Command line utilities for interacting with VNC servers. | |
238 | ||
239 | %description tools -l pl.UTF-8 | |
240 | Narzędzia linii poleceń do interakcji z serwerami VNC. | |
241 | ||
e8f8ba6b PZ |
242 | %prep |
243 | %setup -q | |
244 | %patch0 -p1 | |
de94b064 | 245 | %patch1 -p1 |
e8f8ba6b PZ |
246 | |
247 | %build | |
248 | %{__libtoolize} | |
7c955236 | 249 | %{__aclocal} -I m4 |
e8f8ba6b | 250 | %{__autoconf} |
3994aa9c | 251 | %{__autoheader} |
e8f8ba6b | 252 | %{__automake} |
796a7010 AF |
253 | # force enums regeneration |
254 | touch src/vncconnection.h src/vncdisplay.h | |
255 | mkdir gtk{2,3} | |
256 | cd gtk2 | |
257 | ../%configure \ | |
258 | --with-gtk=2.0 \ | |
259 | --with-libview \ | |
7c955236 | 260 | --enable-static \ |
796a7010 | 261 | --disable-plugin \ |
7c955236 | 262 | --disable-silent-rules |
e8f8ba6b | 263 | %{__make} |
796a7010 AF |
264 | cd ../gtk3 |
265 | # libview not ported to gtk+3 | |
266 | ../%configure \ | |
267 | --with-gtk=3.0 \ | |
268 | --without-libview \ | |
269 | --enable-static \ | |
270 | --disable-plugin \ | |
de94b064 JB |
271 | --disable-silent-rules \ |
272 | %{!?with_vala:--disable-vala} | |
796a7010 | 273 | %{__make} |
e8f8ba6b PZ |
274 | |
275 | %install | |
276 | rm -rf $RPM_BUILD_ROOT | |
436191a8 | 277 | |
de94b064 | 278 | %{__make} -C gtk2 -j1 install \ |
796a7010 | 279 | DESTDIR=$RPM_BUILD_ROOT |
de94b064 | 280 | %{__make} -C gtk3 -j1 install \ |
e8f8ba6b PZ |
281 | DESTDIR=$RPM_BUILD_ROOT |
282 | ||
a87b1ed1 JB |
283 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \ |
284 | $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version} | |
285 | ||
7c955236 | 286 | install examples/gvncviewer.{c,js} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
3ef49d53 | 287 | install examples/gvncviewer-{bindings,introspection}.py $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version} |
a87b1ed1 | 288 | |
796a7010 AF |
289 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a} \ |
290 | $RPM_BUILD_ROOT%{_libdir}/*.la | |
e8f8ba6b | 291 | |
7cbe80e3 MB |
292 | %find_lang %{name} |
293 | ||
e8f8ba6b | 294 | %clean |
a65f3e04 | 295 | rm -rf $RPM_BUILD_ROOT |
e8f8ba6b | 296 | |
a87b1ed1 JB |
297 | %post -p /sbin/ldconfig |
298 | %postun -p /sbin/ldconfig | |
e8f8ba6b | 299 | |
de94b064 JB |
300 | %post -n gtk3-vnc -p /sbin/ldconfig |
301 | %postun -n gtk3-vnc -p /sbin/ldconfig | |
a849c9ce | 302 | |
de94b064 JB |
303 | %post -n libgvnc -p /sbin/ldconfig |
304 | %postun -n libgvnc -p /sbin/ldconfig | |
a849c9ce | 305 | |
796a7010 | 306 | %files |
e8f8ba6b | 307 | %defattr(644,root,root,755) |
a87b1ed1 JB |
308 | %attr(755,root,root) %{_libdir}/libgtk-vnc-1.0.so.*.*.* |
309 | %attr(755,root,root) %ghost %{_libdir}/libgtk-vnc-1.0.so.0 | |
7c955236 | 310 | %{_libdir}/girepository-1.0/GtkVnc-1.0.typelib |
e8f8ba6b PZ |
311 | |
312 | %files devel | |
313 | %defattr(644,root,root,755) | |
a87b1ed1 | 314 | %attr(755,root,root) %{_libdir}/libgtk-vnc-1.0.so |
a87b1ed1 | 315 | %{_includedir}/%{name}-1.0 |
7c955236 | 316 | %{_datadir}/gir-1.0/GtkVnc-1.0.gir |
e8f8ba6b | 317 | %{_pkgconfigdir}/%{name}-1.0.pc |
a87b1ed1 JB |
318 | %{_examplesdir}/%{name}-%{version} |
319 | ||
320 | %files static | |
321 | %defattr(644,root,root,755) | |
322 | %{_libdir}/libgtk-vnc-1.0.a | |
796a7010 | 323 | |
de94b064 JB |
324 | %files -n python-gtk-vnc |
325 | %defattr(644,root,root,755) | |
326 | %attr(755,root,root) %{py_sitedir}/gtkvnc.so | |
327 | %{_examplesdir}/python-%{name}-%{version} | |
328 | ||
796a7010 AF |
329 | %files -n gtk3-vnc |
330 | %defattr(644,root,root,755) | |
a849c9ce MB |
331 | %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so.*.*.* |
332 | %attr(755,root,root) %ghost %{_libdir}/libgtk-vnc-2.0.so.0 | |
796a7010 AF |
333 | %{_libdir}/girepository-1.0/GtkVnc-2.0.typelib |
334 | ||
335 | %files -n gtk3-vnc-devel | |
336 | %defattr(644,root,root,755) | |
337 | %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so | |
338 | %{_includedir}/gtk-vnc-2.0 | |
339 | %{_pkgconfigdir}/gtk-vnc-2.0.pc | |
340 | %{_datadir}/gir-1.0/GtkVnc-2.0.gir | |
341 | ||
342 | %files -n gtk3-vnc-static | |
343 | %defattr(644,root,root,755) | |
344 | %{_libdir}/libgtk-vnc-2.0.a | |
345 | ||
de94b064 JB |
346 | %if %{with vala} |
347 | %files -n vala-gtk3-vnc | |
348 | %defattr(644,root,root,755) | |
349 | %{_datadir}/vala/vapi/gtk-vnc-2.0.deps | |
350 | %{_datadir}/vala/vapi/gtk-vnc-2.0.vapi | |
351 | %endif | |
352 | ||
796a7010 AF |
353 | %files -n libgvnc -f %{name}.lang |
354 | %defattr(644,root,root,755) | |
355 | %doc AUTHORS ChangeLog NEWS README | |
356 | %attr(755,root,root) %{_libdir}/libgvnc-1.0.so.*.*.* | |
3ef49d53 | 357 | %attr(755,root,root) %{_libdir}/libgvncpulse-1.0.so.*.*.* |
796a7010 | 358 | %attr(755,root,root) %ghost %{_libdir}/libgvnc-1.0.so.0 |
3ef49d53 | 359 | %attr(755,root,root) %ghost %{_libdir}/libgvncpulse-1.0.so.0 |
796a7010 | 360 | %{_libdir}/girepository-1.0/GVnc-1.0.typelib |
3ef49d53 | 361 | %{_libdir}/girepository-1.0/GVncPulse-1.0.typelib |
796a7010 AF |
362 | |
363 | %files -n libgvnc-devel | |
364 | %defattr(644,root,root,755) | |
365 | %attr(755,root,root) %{_libdir}/libgvnc-1.0.so | |
3ef49d53 | 366 | %attr(755,root,root) %{_libdir}/libgvncpulse-1.0.so |
796a7010 | 367 | %{_datadir}/gir-1.0/GVnc-1.0.gir |
3ef49d53 | 368 | %{_datadir}/gir-1.0/GVncPulse-1.0.gir |
796a7010 | 369 | %{_includedir}/gvnc-1.0 |
3ef49d53 | 370 | %{_includedir}/gvncpulse-1.0 |
796a7010 | 371 | %{_pkgconfigdir}/gvnc-1.0.pc |
3ef49d53 | 372 | %{_pkgconfigdir}/gvncpulse-1.0.pc |
796a7010 AF |
373 | |
374 | %files -n libgvnc-static | |
375 | %defattr(644,root,root,755) | |
7c955236 | 376 | %{_libdir}/libgvnc-1.0.a |
3ef49d53 | 377 | %{_libdir}/libgvncpulse-1.0.a |
e8f8ba6b | 378 | |
de94b064 JB |
379 | %if %{with vala} |
380 | %files -n vala-libgvnc | |
e8f8ba6b | 381 | %defattr(644,root,root,755) |
de94b064 | 382 | %{_datadir}/vala/vapi/gvnc-1.0.vapi |
3ef49d53 | 383 | %{_datadir}/vala/vapi/gvncpulse-1.0.vapi |
de94b064 | 384 | %endif |
7c955236 MB |
385 | |
386 | %files tools | |
387 | %defattr(644,root,root,755) | |
388 | %attr(755,root,root) %{_bindir}/gvnccapture | |
389 | %{_mandir}/man1/gvnccapture.1* |