3 %bcond_without vala # Vala API
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)
12 Source0: http://ftp.gnome.org/pub/GNOME/sources/gtk-vnc/0.7/%{name}-%{version}.tar.xz
13 # Source0-md5: 474644cfaf9c65d800c51d009bd32408
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 >= 2.2.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
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)
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
55 This package contains version for GTK+ 2.x.
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.
62 Ten pakiet zawiera wersję dla GTK+ 2.x.
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
75 Header files for gtk-vnc library (GTK+ 2.x version).
77 %description devel -l pl.UTF-8
78 Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 2.x).
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}
88 Static gtk-vnc library (GTK+ 2.x version).
90 %description static -l pl.UTF-8
91 Statyczna biblioteka gtk-vnc (wersja dla GTK+ 2.x).
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}
99 %description -n python-gtk-vnc
100 A module allowing use of the GTK+ VNC widget (GTK+ 2.x version) from
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)
108 Summary: A GTK+ widget for VNC clients (GTK+ 3.x version)
109 Summary(pl.UTF-8): Widget GTK+ dla klientów VNC
111 Requires: cairo >= 1.2.0
112 Requires: gtk+3 >= 3.0.0
113 Requires: libgvnc = %{version}-%{release}
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
120 This package contains version for GTK+ 3.x.
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.
127 Ten pakiet zawiera wersję dla GTK+ 3.x.
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
140 %description -n gtk3-vnc-devel
141 Header files for gtk-vnc library (GTK+ 3.x version).
143 %description -n gtk3-vnc-devel -l pl.UTF-8
144 Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 3.x).
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}
153 %description -n gtk3-vnc-static
154 Static gtk-vnc library (GTK+ 3.x version).
156 %description -n gtk3-vnc-static -l pl.UTF-8
157 Statyczna biblioteka gtk-vnc (wersja dla GTK+ 3.x).
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"
169 %description -n vala-gtk3-vnc
170 Vala API for gtk-vnc library (GTK+ 3.x version).
172 %description -n vala-gtk3-vnc -l pl.UTF-8
173 API języka Vala dla biblioteki gtk-vnc (wersja dla GTK+3).
176 Summary: A library for VNC clients
177 Summary(pl.UTF-8): Biblioteka dla klientów VNC
179 Requires: gdk-pixbuf2 >= 2.10.0
180 Requires: glib2 >= 1:2.28.0
181 Requires: gnutls >= 2.2.0
182 Requires: libgcrypt >= 1.4.0
184 %description -n libgvnc
185 A library for VNC clients.
187 %description -n libgvnc -l pl.UTF-8
188 Biblioteka dla klientów VNC.
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 >= 2.2.0
198 Requires: libgcrypt-devel >= 1.4.0
199 Requires: libgvnc = %{version}-%{release}
202 %description -n libgvnc-devel
203 Header files for libgvnc library.
205 %description -n libgvnc-devel -l pl.UTF-8
206 Pliki nagłówkowe biblioteki libgvnc.
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}
214 %description -n libgvnc-static
215 Static libgvnc library.
217 %description -n libgvnc-static -l pl.UTF-8
218 Statyczna biblioteka libgvnc.
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}
227 %description -n vala-libgvnc
228 Vala API for libgvnc library.
230 %description -n vala-libgvnc -l pl.UTF-8
231 API języka Vala dla biblioteki libgvnc.
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}
240 Command line utilities for interacting with VNC servers.
242 %description tools -l pl.UTF-8
243 Narzędzia linii poleceń do interakcji z serwerami VNC.
255 # force enums regeneration
256 touch src/vncconnection.h src/vncdisplay.h
264 --disable-silent-rules
267 # libview not ported to gtk+3
273 --disable-silent-rules \
274 %{!?with_vala:--disable-vala}
278 rm -rf $RPM_BUILD_ROOT
280 %{__make} -C gtk2 -j1 install \
281 DESTDIR=$RPM_BUILD_ROOT
282 %{__make} -C gtk3 -j1 install \
283 DESTDIR=$RPM_BUILD_ROOT
285 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
286 $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
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}
291 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a} \
292 $RPM_BUILD_ROOT%{_libdir}/*.la
294 # not supported by glibc (as of 2.25)
295 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/guc
300 rm -rf $RPM_BUILD_ROOT
302 %post -p /sbin/ldconfig
303 %postun -p /sbin/ldconfig
305 %post -n gtk3-vnc -p /sbin/ldconfig
306 %postun -n gtk3-vnc -p /sbin/ldconfig
308 %post -n libgvnc -p /sbin/ldconfig
309 %postun -n libgvnc -p /sbin/ldconfig
312 %defattr(644,root,root,755)
313 %attr(755,root,root) %{_libdir}/libgtk-vnc-1.0.so.*.*.*
314 %attr(755,root,root) %ghost %{_libdir}/libgtk-vnc-1.0.so.0
315 %{_libdir}/girepository-1.0/GtkVnc-1.0.typelib
318 %defattr(644,root,root,755)
319 %attr(755,root,root) %{_libdir}/libgtk-vnc-1.0.so
320 %{_includedir}/%{name}-1.0
321 %{_datadir}/gir-1.0/GtkVnc-1.0.gir
322 %{_pkgconfigdir}/%{name}-1.0.pc
323 %{_examplesdir}/%{name}-%{version}
326 %defattr(644,root,root,755)
327 %{_libdir}/libgtk-vnc-1.0.a
329 %files -n python-gtk-vnc
330 %defattr(644,root,root,755)
331 %attr(755,root,root) %{py_sitedir}/gtkvnc.so
332 %{_examplesdir}/python-%{name}-%{version}
335 %defattr(644,root,root,755)
336 %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so.*.*.*
337 %attr(755,root,root) %ghost %{_libdir}/libgtk-vnc-2.0.so.0
338 %{_libdir}/girepository-1.0/GtkVnc-2.0.typelib
340 %files -n gtk3-vnc-devel
341 %defattr(644,root,root,755)
342 %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so
343 %{_includedir}/gtk-vnc-2.0
344 %{_pkgconfigdir}/gtk-vnc-2.0.pc
345 %{_datadir}/gir-1.0/GtkVnc-2.0.gir
347 %files -n gtk3-vnc-static
348 %defattr(644,root,root,755)
349 %{_libdir}/libgtk-vnc-2.0.a
352 %files -n vala-gtk3-vnc
353 %defattr(644,root,root,755)
354 %{_datadir}/vala/vapi/gtk-vnc-2.0.deps
355 %{_datadir}/vala/vapi/gtk-vnc-2.0.vapi
358 %files -n libgvnc -f %{name}.lang
359 %defattr(644,root,root,755)
360 %doc AUTHORS ChangeLog NEWS README
361 %attr(755,root,root) %{_libdir}/libgvnc-1.0.so.*.*.*
362 %attr(755,root,root) %{_libdir}/libgvncpulse-1.0.so.*.*.*
363 %attr(755,root,root) %ghost %{_libdir}/libgvnc-1.0.so.0
364 %attr(755,root,root) %ghost %{_libdir}/libgvncpulse-1.0.so.0
365 %{_libdir}/girepository-1.0/GVnc-1.0.typelib
366 %{_libdir}/girepository-1.0/GVncPulse-1.0.typelib
368 %files -n libgvnc-devel
369 %defattr(644,root,root,755)
370 %attr(755,root,root) %{_libdir}/libgvnc-1.0.so
371 %attr(755,root,root) %{_libdir}/libgvncpulse-1.0.so
372 %{_datadir}/gir-1.0/GVnc-1.0.gir
373 %{_datadir}/gir-1.0/GVncPulse-1.0.gir
374 %{_includedir}/gvnc-1.0
375 %{_includedir}/gvncpulse-1.0
376 %{_pkgconfigdir}/gvnc-1.0.pc
377 %{_pkgconfigdir}/gvncpulse-1.0.pc
379 %files -n libgvnc-static
380 %defattr(644,root,root,755)
381 %{_libdir}/libgvnc-1.0.a
382 %{_libdir}/libgvncpulse-1.0.a
385 %files -n vala-libgvnc
386 %defattr(644,root,root,755)
387 %{_datadir}/vala/vapi/gvnc-1.0.deps
388 %{_datadir}/vala/vapi/gvnc-1.0.vapi
389 %{_datadir}/vala/vapi/gvncpulse-1.0.deps
390 %{_datadir}/vala/vapi/gvncpulse-1.0.vapi
394 %defattr(644,root,root,755)
395 %attr(755,root,root) %{_bindir}/gvnccapture
396 %{_mandir}/man1/gvnccapture.1*