3 %bcond_without static_libs # static libraries
4 %bcond_without vala # Vala API
6 Summary: A GTK+ widget for VNC clients (GTK+ 2.x version)
7 Summary(pl.UTF-8): Widget GTK+ dla klientów VNC (wersja dla GTK+ 2.x)
13 Source0: http://ftp.gnome.org/pub/GNOME/sources/gtk-vnc/0.9/%{name}-%{version}.tar.xz
14 # Source0-md5: 1eed0aa5d71f849eae9fa00ecf28e247
15 Patch0: %{name}-pc.patch
16 URL: https://wiki.gnome.org/Projects/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-tools
23 BuildRequires: glib2-devel >= 1:2.42.0
24 BuildRequires: gnome-common
25 BuildRequires: gnutls-devel >= 3.1.18
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 >= 1.5.0
31 BuildRequires: libgpg-error-devel
32 BuildRequires: libtool >= 2:2.2.6
33 BuildRequires: libview-devel >= 0.6.0
34 BuildRequires: perl-Text-CSV
35 BuildRequires: perl-tools-pod
36 BuildRequires: pkgconfig
37 BuildRequires: pulseaudio-devel
38 BuildRequires: python3 >= 1:3
39 BuildRequires: tar >= 1:1.22
40 %{?with_vala:BuildRequires: vala >= 0.14.0}
41 BuildRequires: xorg-lib-libX11-devel
43 BuildRequires: zlib-devel
44 Requires: cairo >= 1.2.0
45 Requires: gtk+2 >= 2:2.18.0
46 Requires: libgvnc = %{version}-%{release}
47 Obsoletes: python-gtk-vnc < 0.8.0
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).
94 Summary: A GTK+ widget for VNC clients (GTK+ 3.x version)
95 Summary(pl.UTF-8): Widget GTK+ dla klientów VNC
97 Requires: cairo >= 1.2.0
98 Requires: gtk+3 >= 3.0.0
99 Requires: libgvnc = %{version}-%{release}
101 %description -n gtk3-vnc
102 gtk-vnc is a VNC viewer widget for GTK+. It is built using coroutines
103 allowing it to be completely asynchronous while remaining single
106 This package contains version for GTK+ 3.x.
108 %description -n gtk3-vnc -l pl.UTF-8
109 gtk-vnc to widget przeglądarki VNC dla GTK+. Jest skonstruowany z
110 użyciem korutyn, dzięki czemu mogą być w pełni asynchroniczne
111 pozostając jednowątkowymi.
113 Ten pakiet zawiera wersję dla GTK+ 3.x.
115 %package -n gtk3-vnc-devel
116 Summary: Header files for gtk-vnc library (GTK+ 3.x version)
117 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 3.x)
118 Group: X11/Development/Libraries
119 Requires: cairo-devel >= 1.2.0
120 Requires: gtk+3-devel >= 3.0.0
121 Requires: gtk3-vnc = %{version}-%{release}
122 Requires: libgcrypt-devel >= 1.5.0
123 Requires: libgvnc-devel = %{version}-%{release}
124 Requires: xorg-lib-libX11-devel
126 %description -n gtk3-vnc-devel
127 Header files for gtk-vnc library (GTK+ 3.x version).
129 %description -n gtk3-vnc-devel -l pl.UTF-8
130 Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 3.x).
132 %package -n gtk3-vnc-static
133 Summary: Static gtk-vnc library (GTK+ 3.x version)
134 Summary(pl.UTF-8): Statyczna biblioteka gtk-vnc (wersja dla GTK+ 3.x)
135 Group: X11/Development/Libraries
136 Requires: gtk3-vnc-devel = %{version}-%{release}
137 Requires: libgvnc-static = %{version}-%{release}
139 %description -n gtk3-vnc-static
140 Static gtk-vnc library (GTK+ 3.x version).
142 %description -n gtk3-vnc-static -l pl.UTF-8
143 Statyczna biblioteka gtk-vnc (wersja dla GTK+ 3.x).
145 %package -n vala-gtk3-vnc
146 Summary: Vala API for gtk-vnc library (GTK+ 3.x version)
147 Summary(pl.UTF-8): API języka Vala dla biblioteki gtk-vnc (wersja dla GTK+3)
148 Group: Development/Languages
149 Requires: gtk3-vnc-devel = %{version}-%{release}
150 Requires: vala-libgvnc = %{version}-%{release}
151 %if "%{_rpmversion}" >= "4.6"
155 %description -n vala-gtk3-vnc
156 Vala API for gtk-vnc library (GTK+ 3.x version).
158 %description -n vala-gtk3-vnc -l pl.UTF-8
159 API języka Vala dla biblioteki gtk-vnc (wersja dla GTK+3).
162 Summary: A library for VNC clients
163 Summary(pl.UTF-8): Biblioteka dla klientów VNC
165 Requires: gdk-pixbuf2 >= 2.10.0
166 Requires: glib2 >= 1:2.42.0
167 Requires: gnutls >= 3.1.18
168 Requires: libgcrypt >= 1.5.0
170 %description -n libgvnc
171 A library for VNC clients.
173 %description -n libgvnc -l pl.UTF-8
174 Biblioteka dla klientów VNC.
176 %package -n libgvnc-devel
177 Summary: Header files for libgvnc library
178 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgvnc
179 Group: X11/Development/Libraries
180 Requires: cyrus-sasl-devel
181 Requires: gdk-pixbuf2-devel >= 2.10.0
182 Requires: glib2-devel >= 1:2.42.0
183 Requires: gnutls-devel >= 3.1.18
184 Requires: libgcrypt-devel >= 1.5.0
185 Requires: libgvnc = %{version}-%{release}
188 %description -n libgvnc-devel
189 Header files for libgvnc library.
191 %description -n libgvnc-devel -l pl.UTF-8
192 Pliki nagłówkowe biblioteki libgvnc.
194 %package -n libgvnc-static
195 Summary: Static libgvnc library
196 Summary(pl.UTF-8): Statyczna biblioteka libgvnc
197 Group: X11/Development/Libraries
198 Requires: libgvnc-devel = %{version}-%{release}
200 %description -n libgvnc-static
201 Static libgvnc library.
203 %description -n libgvnc-static -l pl.UTF-8
204 Statyczna biblioteka libgvnc.
206 %package -n vala-libgvnc
207 Summary: Vala API for libgvnc library
208 Summary(pl.UTF-8): API języka Vala dla biblioteki libgvnc
209 Group: Development/Languages
210 Requires: libgvnc-devel = %{version}-%{release}
212 %if "%{_rpmversion}" >= "4.6"
216 %description -n vala-libgvnc
217 Vala API for libgvnc library.
219 %description -n vala-libgvnc -l pl.UTF-8
220 API języka Vala dla biblioteki libgvnc.
223 Summary: Command line tools for VNC
224 Summary(pl.UTF-8): Narzędzia linii poleceń dla VNC
225 Group: Applications/Networking
226 Requires: libgvnc = %{version}-%{release}
229 Command line utilities for interacting with VNC servers.
231 %description tools -l pl.UTF-8
232 Narzędzia linii poleceń do interakcji z serwerami VNC.
238 %{__sed} -i -e '1s,/usr/bin/python$,%{__python},' examples/gvncviewer.py
246 # force enums regeneration
247 touch src/vncconnection.h src/vncdisplay.h
253 %{?with_static_libs:--enable-static} \
255 --disable-silent-rules
259 # libview not ported to gtk+3
263 %{?with_static_libs:--enable-static} \
265 --disable-silent-rules \
266 %{!?with_vala:--disable-vala}
270 rm -rf $RPM_BUILD_ROOT
272 %{__make} -C gtk2 -j1 install \
273 DESTDIR=$RPM_BUILD_ROOT
275 %{__make} -C gtk3 -j1 install \
276 DESTDIR=$RPM_BUILD_ROOT
278 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
280 cp -p examples/gvncviewer.{c,js,pl,py} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
282 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
284 # not supported by glibc (as of 2.25)
285 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/guc
290 rm -rf $RPM_BUILD_ROOT
292 %post -p /sbin/ldconfig
293 %postun -p /sbin/ldconfig
295 %post -n gtk3-vnc -p /sbin/ldconfig
296 %postun -n gtk3-vnc -p /sbin/ldconfig
298 %post -n libgvnc -p /sbin/ldconfig
299 %postun -n libgvnc -p /sbin/ldconfig
302 %defattr(644,root,root,755)
303 %attr(755,root,root) %{_libdir}/libgtk-vnc-1.0.so.*.*.*
304 %attr(755,root,root) %ghost %{_libdir}/libgtk-vnc-1.0.so.0
305 %{_libdir}/girepository-1.0/GtkVnc-1.0.typelib
308 %defattr(644,root,root,755)
309 %attr(755,root,root) %{_libdir}/libgtk-vnc-1.0.so
310 %{_includedir}/%{name}-1.0
311 %{_datadir}/gir-1.0/GtkVnc-1.0.gir
312 %{_pkgconfigdir}/%{name}-1.0.pc
313 %{_examplesdir}/%{name}-%{version}
315 %if %{with static_libs}
317 %defattr(644,root,root,755)
318 %{_libdir}/libgtk-vnc-1.0.a
322 %defattr(644,root,root,755)
323 %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so.*.*.*
324 %attr(755,root,root) %ghost %{_libdir}/libgtk-vnc-2.0.so.0
325 %{_libdir}/girepository-1.0/GtkVnc-2.0.typelib
327 %files -n gtk3-vnc-devel
328 %defattr(644,root,root,755)
329 %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so
330 %{_includedir}/gtk-vnc-2.0
331 %{_pkgconfigdir}/gtk-vnc-2.0.pc
332 %{_datadir}/gir-1.0/GtkVnc-2.0.gir
334 %if %{with static_libs}
335 %files -n gtk3-vnc-static
336 %defattr(644,root,root,755)
337 %{_libdir}/libgtk-vnc-2.0.a
341 %files -n vala-gtk3-vnc
342 %defattr(644,root,root,755)
343 %{_datadir}/vala/vapi/gtk-vnc-2.0.deps
344 %{_datadir}/vala/vapi/gtk-vnc-2.0.vapi
347 %files -n libgvnc -f %{name}.lang
348 %defattr(644,root,root,755)
349 %doc AUTHORS ChangeLog NEWS README
350 %attr(755,root,root) %{_libdir}/libgvnc-1.0.so.*.*.*
351 %attr(755,root,root) %{_libdir}/libgvncpulse-1.0.so.*.*.*
352 %attr(755,root,root) %ghost %{_libdir}/libgvnc-1.0.so.0
353 %attr(755,root,root) %ghost %{_libdir}/libgvncpulse-1.0.so.0
354 %{_libdir}/girepository-1.0/GVnc-1.0.typelib
355 %{_libdir}/girepository-1.0/GVncPulse-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 %attr(755,root,root) %{_libdir}/libgvncpulse-1.0.so
361 %{_datadir}/gir-1.0/GVnc-1.0.gir
362 %{_datadir}/gir-1.0/GVncPulse-1.0.gir
363 %{_includedir}/gvnc-1.0
364 %{_includedir}/gvncpulse-1.0
365 %{_pkgconfigdir}/gvnc-1.0.pc
366 %{_pkgconfigdir}/gvncpulse-1.0.pc
368 %if %{with static_libs}
369 %files -n libgvnc-static
370 %defattr(644,root,root,755)
371 %{_libdir}/libgvnc-1.0.a
372 %{_libdir}/libgvncpulse-1.0.a
376 %files -n vala-libgvnc
377 %defattr(644,root,root,755)
378 %{_datadir}/vala/vapi/gvnc-1.0.deps
379 %{_datadir}/vala/vapi/gvnc-1.0.vapi
380 %{_datadir}/vala/vapi/gvncpulse-1.0.deps
381 %{_datadir}/vala/vapi/gvncpulse-1.0.vapi
385 %defattr(644,root,root,755)
386 %attr(755,root,root) %{_bindir}/gvnccapture
387 %{_mandir}/man1/gvnccapture.1*