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