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.4/%{name}-%{version}.tar.bz2
13 # Source0-md5: 0c51bcbdf1530c4856f49ace7c8f709a
14 Patch0: %{name}-codegen.patch
15 Patch1: %{name}-libtool.patch
16 URL: http://live.gnome.org/gtk-vnc
17 BuildRequires: autoconf >= 2.63
18 BuildRequires: automake >= 1:1.10
19 BuildRequires: cairo-devel >= 1.2.0
20 BuildRequires: cyrus-sasl-devel
21 BuildRequires: gdk-pixbuf2-devel >= 2.10.0
22 BuildRequires: gettext-devel
23 BuildRequires: glib2-devel >= 1:2.28.0
24 BuildRequires: gnome-common
25 BuildRequires: gnutls-devel >= 1.4.0
26 BuildRequires: gobject-introspection-devel >= 0.9.4
27 BuildRequires: gtk+2-devel >= 2:2.18.0
28 BuildRequires: gtk+3-devel >= 3.0.0
29 BuildRequires: intltool >= 0.40.0
30 BuildRequires: libgcrypt-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: python-devel >= 1:2.4
37 BuildRequires: python-pygtk-devel >= 2:2.0.0
38 BuildRequires: rpm-pythonprov
39 %{?with_vala:BuildRequires: vala >= 0.14.0}
40 BuildRequires: xorg-lib-libX11-devel
41 BuildRequires: zlib-devel
42 Requires: libgvnc = %{version}-%{release}
43 Requires: cairo >= 1.2.0
44 Requires: gtk+2 >= 2:2.18.0
45 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48 gtk-vnc is a VNC viewer widget for GTK+. It is built using coroutines
49 allowing it to be completely asynchronous while remaining single
52 This package contains version for GTK+ 2.x.
54 %description -l pl.UTF-8
55 gtk-vnc to widget przeglądarki VNC dla GTK+. Jest skonstruowany z
56 użyciem korutyn, dzięki czemu mogą być w pełni asynchroniczne
57 pozostając jednowątkowymi.
59 Ten pakiet zawiera wersję dla GTK+ 2.x.
62 Summary: Header files for gtk-vnc library (GTK+ 2.x version)
63 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 2.x)
64 Group: X11/Development/Libraries
65 Requires: %{name} = %{version}-%{release}
66 Requires: libgvnc-devel = %{version}-%{release}
67 Requires: cairo-devel >= 1.2.0
68 Requires: gnutls-devel >= 1.4.0
69 Requires: gtk+2-devel >= 2:2.18.0
70 Requires: xorg-lib-libX11-devel
73 Header files for gtk-vnc library (GTK+ 2.x version).
75 %description devel -l pl.UTF-8
76 Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 2.x).
79 Summary: Static gtk-vnc library (GTK+ 2.x version)
80 Summary(pl.UTF-8): Statyczna biblioteka gtk-vnc (wersja dla GTK+ 2.x)
81 Group: X11/Development/Libraries
82 Requires: %{name}-devel = %{version}-%{release}
83 Requires: libgvnc-static = %{version}-%{release}
86 Static gtk-vnc library (GTK+ 2.x version).
88 %description static -l pl.UTF-8
89 Statyczna biblioteka gtk-vnc (wersja dla GTK+ 2.x).
91 %package -n python-gtk-vnc
92 Summary: Python bindings for the gtk-vnc library (GTK+ 2.x version)
93 Summary(pl.UTF-8): Wiązania Pythona do biblioteki gtk-vnc (wersja dla GTK+ 2.x)
94 Group: Libraries/Python
95 Requires: %{name} = %{version}-%{release}
96 %requires_eq python-libs
98 %description -n python-gtk-vnc
99 A module allowing use of the GTK+ VNC widget (GTK+ 2.x version) from
102 %description -n python-gtk-vnc -l pl.UTF-8
103 Moduł pozwalający na używanie widgetu GTK+ VNC (w wersji dla GTK+ 2.x)
107 Summary: A GTK+ widget for VNC clients (GTK+ 3.x version)
108 Summary(pl.UTF-8): Widget GTK+ dla klientów VNC
110 Requires: libgvnc = %{version}-%{release}
111 Requires: cairo >= 1.2.0
112 Requires: gtk+3 >= 3.0.0
114 %description -n gtk3-vnc
115 gtk-vnc is a VNC viewer widget for GTK+. It is built using coroutines
116 allowing it to be completely asynchronous while remaining single
119 This package contains version for GTK+ 3.x.
121 %description -n gtk3-vnc -l pl.UTF-8
122 gtk-vnc to widget przeglądarki VNC dla GTK+. Jest skonstruowany z
123 użyciem korutyn, dzięki czemu mogą być w pełni asynchroniczne
124 pozostając jednowątkowymi.
126 Ten pakiet zawiera wersję dla GTK+ 3.x.
128 %package -n gtk3-vnc-devel
129 Summary: Header files for gtk-vnc library (GTK+ 3.x version)
130 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 3.x)
131 Group: X11/Development/Libraries
132 Requires: cairo-devel >= 1.2.0
133 Requires: gtk+3-devel >= 3.0.0
134 Requires: gtk3-vnc = %{version}-%{release}
135 Requires: libgvnc-devel = %{version}-%{release}
136 Requires: xorg-lib-libX11-devel
138 %description -n gtk3-vnc-devel
139 Header files for gtk-vnc library (GTK+ 3.x version).
141 %description -n gtk3-vnc-devel -l pl.UTF-8
142 Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 3.x).
144 %package -n gtk3-vnc-static
145 Summary: Static gtk-vnc library (GTK+ 3.x version)
146 Summary(pl.UTF-8): Statyczna biblioteka gtk-vnc (wersja dla GTK+ 3.x)
147 Group: X11/Development/Libraries
148 Requires: gtk3-vnc-devel = %{version}-%{release}
149 Requires: libgvnc-static = %{version}-%{release}
151 %description -n gtk3-vnc-static
152 Static gtk-vnc library (GTK+ 3.x version).
154 %description -n gtk3-vnc-static -l pl.UTF-8
155 Statyczna biblioteka gtk-vnc (wersja dla GTK+ 3.x).
157 %package -n vala-gtk3-vnc
158 Summary: Vala API for gtk-vnc library (GTK+ 3.x version)
159 Summary(pl.UTF-8): API języka Vala dla biblioteki gtk-vnc (wersja dla GTK+3)
160 Group: Development/Languages
161 Requires: gtk3-vnc-devel = %{version}-%{release}
162 Requires: vala-libgvnc = %{version}-%{release}
164 %description -n vala-gtk3-vnc
165 Vala API for gtk-vnc library (GTK+ 3.x version).
167 %description -n vala-gtk3-vnc -l pl.UTF-8
168 API języka Vala dla biblioteki gtk-vnc (wersja dla GTK+3).
171 Summary: A library for VNC clients
172 Summary(pl.UTF-8): Biblioteka dla klientów VNC
174 Requires: glib2 >= 1:2.28.0
175 Requires: gdk-pixbuf2 >= 2.10.0
176 Requires: gnutls >= 1.4.0
178 %description -n libgvnc
179 A library for VNC clients.
181 %description -n libgvnc -l pl.UTF-8
182 Biblioteka dla klientów VNC.
184 %package -n libgvnc-devel
185 Summary: Header files for libgvnc library
186 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgvnc
187 Group: X11/Development/Libraries
188 Requires: libgvnc = %{version}-%{release}
189 Requires: cyrus-sasl-devel
190 Requires: glib2-devel >= 1:2.28.0
191 Requires: gdk-pixbuf2-devel >= 2.10.0
192 Requires: gnutls-devel >= 1.4.0
193 Requires: libgcrypt-devel
196 %description -n libgvnc-devel
197 Header files for libgvnc library.
199 %description -n libgvnc-devel -l pl.UTF-8
200 Pliki nagłówkowe biblioteki libgvnc.
202 %package -n libgvnc-static
203 Summary: Static libgvnc library
204 Summary(pl.UTF-8): Statyczna biblioteka libgvnc
205 Group: X11/Development/Libraries
206 Requires: libgvnc-devel = %{version}-%{release}
208 %description -n libgvnc-static
209 Static libgvnc library.
211 %description -n libgvnc-static -l pl.UTF-8
212 Statyczna biblioteka libgvnc.
214 %package -n vala-libgvnc
215 Summary: Vala API for libgvnc library
216 Summary(pl.UTF-8): API języka Vala dla biblioteki libgvnc
217 Group: Development/Languages
218 Requires: libgvnc-devel = %{version}-%{release}
221 %description -n vala-libgvnc
222 Vala API for libgvnc library.
224 %description -n vala-libgvnc -l pl.UTF-8
225 API języka Vala dla biblioteki libgvnc.
228 Summary: Command line tools for VNC
229 Summary(pl.UTF-8): Narzędzia linii poleceń dla VNC
230 Group: Applications/Networking
231 Requires: libgvnc = %{version}-%{release}
234 Command line utilities for interacting with VNC servers.
236 %description tools -l pl.UTF-8
237 Narzędzia linii poleceń do interakcji z serwerami VNC.
250 # force enums regeneration
251 touch src/vncconnection.h src/vncdisplay.h
259 --disable-silent-rules
262 # libview not ported to gtk+3
268 --disable-silent-rules \
269 %{!?with_vala:--disable-vala}
273 rm -rf $RPM_BUILD_ROOT
275 %{__make} -C gtk2 -j1 install \
276 DESTDIR=$RPM_BUILD_ROOT
277 %{__make} -C gtk3 -j1 install \
278 DESTDIR=$RPM_BUILD_ROOT
280 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
281 $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
283 install examples/gvncviewer.{c,js} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
284 install examples/gvncviewer.py $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
286 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a} \
287 $RPM_BUILD_ROOT%{_libdir}/*.la
292 rm -rf $RPM_BUILD_ROOT
294 %post -p /sbin/ldconfig
295 %postun -p /sbin/ldconfig
297 %post -n gtk3-vnc -p /sbin/ldconfig
298 %postun -n gtk3-vnc -p /sbin/ldconfig
300 %post -n libgvnc -p /sbin/ldconfig
301 %postun -n libgvnc -p /sbin/ldconfig
304 %defattr(644,root,root,755)
305 %attr(755,root,root) %{_libdir}/libgtk-vnc-1.0.so.*.*.*
306 %attr(755,root,root) %ghost %{_libdir}/libgtk-vnc-1.0.so.0
307 %{_libdir}/girepository-1.0/GtkVnc-1.0.typelib
310 %defattr(644,root,root,755)
311 %attr(755,root,root) %{_libdir}/libgtk-vnc-1.0.so
312 %{_includedir}/%{name}-1.0
313 %{_datadir}/gir-1.0/GtkVnc-1.0.gir
314 %{_pkgconfigdir}/%{name}-1.0.pc
315 %{_examplesdir}/%{name}-%{version}
318 %defattr(644,root,root,755)
319 %{_libdir}/libgtk-vnc-1.0.a
321 %files -n python-gtk-vnc
322 %defattr(644,root,root,755)
323 %attr(755,root,root) %{py_sitedir}/gtkvnc.so
324 %{_examplesdir}/python-%{name}-%{version}
327 %defattr(644,root,root,755)
328 %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so.*.*.*
329 %attr(755,root,root) %ghost %{_libdir}/libgtk-vnc-2.0.so.0
330 %{_libdir}/girepository-1.0/GtkVnc-2.0.typelib
332 %files -n gtk3-vnc-devel
333 %defattr(644,root,root,755)
334 %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so
335 %{_includedir}/gtk-vnc-2.0
336 %{_pkgconfigdir}/gtk-vnc-2.0.pc
337 %{_datadir}/gir-1.0/GtkVnc-2.0.gir
339 %files -n gtk3-vnc-static
340 %defattr(644,root,root,755)
341 %{_libdir}/libgtk-vnc-2.0.a
344 %files -n vala-gtk3-vnc
345 %defattr(644,root,root,755)
346 %{_datadir}/vala/vapi/gtk-vnc-2.0.deps
347 %{_datadir}/vala/vapi/gtk-vnc-2.0.vapi
350 %files -n libgvnc -f %{name}.lang
351 %defattr(644,root,root,755)
352 %doc AUTHORS ChangeLog NEWS README
353 %attr(755,root,root) %{_libdir}/libgvnc-1.0.so.*.*.*
354 %attr(755,root,root) %ghost %{_libdir}/libgvnc-1.0.so.0
355 %{_libdir}/girepository-1.0/GVnc-1.0.typelib
357 %files -n libgvnc-devel
358 %defattr(644,root,root,755)
359 %attr(755,root,root) %{_libdir}/libgvnc-1.0.so
360 %{_datadir}/gir-1.0/GVnc-1.0.gir
361 %{_includedir}/gvnc-1.0
362 %{_pkgconfigdir}/gvnc-1.0.pc
364 %files -n libgvnc-static
365 %defattr(644,root,root,755)
366 %{_libdir}/libgvnc-1.0.a
369 %files -n vala-libgvnc
370 %defattr(644,root,root,755)
371 %{_datadir}/vala/vapi/gvnc-1.0.vapi
375 %defattr(644,root,root,755)
376 %attr(755,root,root) %{_bindir}/gvnccapture
377 %{_mandir}/man1/gvnccapture.1*