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.8/%{name}-%{version}.tar.xz
14 # Source0-md5: 86cfae4dc84b6b3a9a5d29151defab2e
15 URL: https://wiki.gnome.org/Projects/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: python3 >= 1:3
38 BuildRequires: tar >= 1:1.22
39 %{?with_vala:BuildRequires: vala >= 0.14.0}
40 BuildRequires: xorg-lib-libX11-devel
42 BuildRequires: zlib-devel
43 Requires: cairo >= 1.2.0
44 Requires: gtk+2 >= 2:2.18.0
45 Requires: libgvnc = %{version}-%{release}
46 Obsoletes: python-gtk-vnc < 0.8.0
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 gtk-vnc is a VNC viewer widget for GTK+. It is built using coroutines
51 allowing it to be completely asynchronous while remaining single
54 This package contains version for GTK+ 2.x.
56 %description -l pl.UTF-8
57 gtk-vnc to widget przeglądarki VNC dla GTK+. Jest skonstruowany z
58 użyciem korutyn, dzięki czemu mogą być w pełni asynchroniczne
59 pozostając jednowątkowymi.
61 Ten pakiet zawiera wersję dla GTK+ 2.x.
64 Summary: Header files for gtk-vnc library (GTK+ 2.x version)
65 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 2.x)
66 Group: X11/Development/Libraries
67 Requires: %{name} = %{version}-%{release}
68 Requires: cairo-devel >= 1.2.0
69 Requires: gtk+2-devel >= 2:2.18.0
70 Requires: libgvnc-devel = %{version}-%{release}
71 Requires: xorg-lib-libX11-devel
74 Header files for gtk-vnc library (GTK+ 2.x version).
76 %description devel -l pl.UTF-8
77 Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 2.x).
80 Summary: Static gtk-vnc library (GTK+ 2.x version)
81 Summary(pl.UTF-8): Statyczna biblioteka gtk-vnc (wersja dla GTK+ 2.x)
82 Group: X11/Development/Libraries
83 Requires: %{name}-devel = %{version}-%{release}
84 Requires: libgvnc-static = %{version}-%{release}
87 Static gtk-vnc library (GTK+ 2.x version).
89 %description static -l pl.UTF-8
90 Statyczna biblioteka gtk-vnc (wersja dla GTK+ 2.x).
93 Summary: A GTK+ widget for VNC clients (GTK+ 3.x version)
94 Summary(pl.UTF-8): Widget GTK+ dla klientów VNC
96 Requires: cairo >= 1.2.0
97 Requires: gtk+3 >= 3.0.0
98 Requires: libgvnc = %{version}-%{release}
100 %description -n gtk3-vnc
101 gtk-vnc is a VNC viewer widget for GTK+. It is built using coroutines
102 allowing it to be completely asynchronous while remaining single
105 This package contains version for GTK+ 3.x.
107 %description -n gtk3-vnc -l pl.UTF-8
108 gtk-vnc to widget przeglądarki VNC dla GTK+. Jest skonstruowany z
109 użyciem korutyn, dzięki czemu mogą być w pełni asynchroniczne
110 pozostając jednowątkowymi.
112 Ten pakiet zawiera wersję dla GTK+ 3.x.
114 %package -n gtk3-vnc-devel
115 Summary: Header files for gtk-vnc library (GTK+ 3.x version)
116 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 3.x)
117 Group: X11/Development/Libraries
118 Requires: cairo-devel >= 1.2.0
119 Requires: gtk+3-devel >= 3.0.0
120 Requires: gtk3-vnc = %{version}-%{release}
121 Requires: libgcrypt-devel >= 1.4.0
122 Requires: libgvnc-devel = %{version}-%{release}
123 Requires: xorg-lib-libX11-devel
125 %description -n gtk3-vnc-devel
126 Header files for gtk-vnc library (GTK+ 3.x version).
128 %description -n gtk3-vnc-devel -l pl.UTF-8
129 Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 3.x).
131 %package -n gtk3-vnc-static
132 Summary: Static gtk-vnc library (GTK+ 3.x version)
133 Summary(pl.UTF-8): Statyczna biblioteka gtk-vnc (wersja dla GTK+ 3.x)
134 Group: X11/Development/Libraries
135 Requires: gtk3-vnc-devel = %{version}-%{release}
136 Requires: libgvnc-static = %{version}-%{release}
138 %description -n gtk3-vnc-static
139 Static gtk-vnc library (GTK+ 3.x version).
141 %description -n gtk3-vnc-static -l pl.UTF-8
142 Statyczna biblioteka gtk-vnc (wersja dla GTK+ 3.x).
144 %package -n vala-gtk3-vnc
145 Summary: Vala API for gtk-vnc library (GTK+ 3.x version)
146 Summary(pl.UTF-8): API języka Vala dla biblioteki gtk-vnc (wersja dla GTK+3)
147 Group: Development/Languages
148 Requires: gtk3-vnc-devel = %{version}-%{release}
149 Requires: vala-libgvnc = %{version}-%{release}
150 %if "%{_rpmversion}" >= "4.6"
154 %description -n vala-gtk3-vnc
155 Vala API for gtk-vnc library (GTK+ 3.x version).
157 %description -n vala-gtk3-vnc -l pl.UTF-8
158 API języka Vala dla biblioteki gtk-vnc (wersja dla GTK+3).
161 Summary: A library for VNC clients
162 Summary(pl.UTF-8): Biblioteka dla klientów VNC
164 Requires: gdk-pixbuf2 >= 2.10.0
165 Requires: glib2 >= 1:2.28.0
166 Requires: gnutls >= 2.2.0
167 Requires: libgcrypt >= 1.4.0
169 %description -n libgvnc
170 A library for VNC clients.
172 %description -n libgvnc -l pl.UTF-8
173 Biblioteka dla klientów VNC.
175 %package -n libgvnc-devel
176 Summary: Header files for libgvnc library
177 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgvnc
178 Group: X11/Development/Libraries
179 Requires: cyrus-sasl-devel
180 Requires: gdk-pixbuf2-devel >= 2.10.0
181 Requires: glib2-devel >= 1:2.28.0
182 Requires: gnutls-devel >= 2.2.0
183 Requires: libgcrypt-devel >= 1.4.0
184 Requires: libgvnc = %{version}-%{release}
187 %description -n libgvnc-devel
188 Header files for libgvnc library.
190 %description -n libgvnc-devel -l pl.UTF-8
191 Pliki nagłówkowe biblioteki libgvnc.
193 %package -n libgvnc-static
194 Summary: Static libgvnc library
195 Summary(pl.UTF-8): Statyczna biblioteka libgvnc
196 Group: X11/Development/Libraries
197 Requires: libgvnc-devel = %{version}-%{release}
199 %description -n libgvnc-static
200 Static libgvnc library.
202 %description -n libgvnc-static -l pl.UTF-8
203 Statyczna biblioteka libgvnc.
205 %package -n vala-libgvnc
206 Summary: Vala API for libgvnc library
207 Summary(pl.UTF-8): API języka Vala dla biblioteki libgvnc
208 Group: Development/Languages
209 Requires: libgvnc-devel = %{version}-%{release}
211 %if "%{_rpmversion}" >= "4.6"
215 %description -n vala-libgvnc
216 Vala API for libgvnc library.
218 %description -n vala-libgvnc -l pl.UTF-8
219 API języka Vala dla biblioteki libgvnc.
222 Summary: Command line tools for VNC
223 Summary(pl.UTF-8): Narzędzia linii poleceń dla VNC
224 Group: Applications/Networking
225 Requires: libgvnc = %{version}-%{release}
228 Command line utilities for interacting with VNC servers.
230 %description tools -l pl.UTF-8
231 Narzędzia linii poleceń do interakcji z serwerami VNC.
236 %{__sed} -i -e '1s,/usr/bin/python$,%{__python},' examples/gvncviewer.py
244 # force enums regeneration
245 touch src/vncconnection.h src/vncdisplay.h
251 %{?with_static_libs:--enable-static} \
253 --disable-silent-rules
257 # libview not ported to gtk+3
261 %{?with_static_libs:--enable-static} \
263 --disable-silent-rules \
264 %{!?with_vala:--disable-vala}
268 rm -rf $RPM_BUILD_ROOT
270 %{__make} -C gtk2 -j1 install \
271 DESTDIR=$RPM_BUILD_ROOT
273 %{__make} -C gtk3 -j1 install \
274 DESTDIR=$RPM_BUILD_ROOT
276 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
278 cp -p examples/gvncviewer.{c,js,pl,py} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
280 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
282 # not supported by glibc (as of 2.25)
283 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/guc
288 rm -rf $RPM_BUILD_ROOT
290 %post -p /sbin/ldconfig
291 %postun -p /sbin/ldconfig
293 %post -n gtk3-vnc -p /sbin/ldconfig
294 %postun -n gtk3-vnc -p /sbin/ldconfig
296 %post -n libgvnc -p /sbin/ldconfig
297 %postun -n libgvnc -p /sbin/ldconfig
300 %defattr(644,root,root,755)
301 %attr(755,root,root) %{_libdir}/libgtk-vnc-1.0.so.*.*.*
302 %attr(755,root,root) %ghost %{_libdir}/libgtk-vnc-1.0.so.0
303 %{_libdir}/girepository-1.0/GtkVnc-1.0.typelib
306 %defattr(644,root,root,755)
307 %attr(755,root,root) %{_libdir}/libgtk-vnc-1.0.so
308 %{_includedir}/%{name}-1.0
309 %{_datadir}/gir-1.0/GtkVnc-1.0.gir
310 %{_pkgconfigdir}/%{name}-1.0.pc
311 %{_examplesdir}/%{name}-%{version}
313 %if %{with static_libs}
315 %defattr(644,root,root,755)
316 %{_libdir}/libgtk-vnc-1.0.a
320 %defattr(644,root,root,755)
321 %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so.*.*.*
322 %attr(755,root,root) %ghost %{_libdir}/libgtk-vnc-2.0.so.0
323 %{_libdir}/girepository-1.0/GtkVnc-2.0.typelib
325 %files -n gtk3-vnc-devel
326 %defattr(644,root,root,755)
327 %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so
328 %{_includedir}/gtk-vnc-2.0
329 %{_pkgconfigdir}/gtk-vnc-2.0.pc
330 %{_datadir}/gir-1.0/GtkVnc-2.0.gir
332 %if %{with static_libs}
333 %files -n gtk3-vnc-static
334 %defattr(644,root,root,755)
335 %{_libdir}/libgtk-vnc-2.0.a
339 %files -n vala-gtk3-vnc
340 %defattr(644,root,root,755)
341 %{_datadir}/vala/vapi/gtk-vnc-2.0.deps
342 %{_datadir}/vala/vapi/gtk-vnc-2.0.vapi
345 %files -n libgvnc -f %{name}.lang
346 %defattr(644,root,root,755)
347 %doc AUTHORS ChangeLog NEWS README
348 %attr(755,root,root) %{_libdir}/libgvnc-1.0.so.*.*.*
349 %attr(755,root,root) %{_libdir}/libgvncpulse-1.0.so.*.*.*
350 %attr(755,root,root) %ghost %{_libdir}/libgvnc-1.0.so.0
351 %attr(755,root,root) %ghost %{_libdir}/libgvncpulse-1.0.so.0
352 %{_libdir}/girepository-1.0/GVnc-1.0.typelib
353 %{_libdir}/girepository-1.0/GVncPulse-1.0.typelib
355 %files -n libgvnc-devel
356 %defattr(644,root,root,755)
357 %attr(755,root,root) %{_libdir}/libgvnc-1.0.so
358 %attr(755,root,root) %{_libdir}/libgvncpulse-1.0.so
359 %{_datadir}/gir-1.0/GVnc-1.0.gir
360 %{_datadir}/gir-1.0/GVncPulse-1.0.gir
361 %{_includedir}/gvnc-1.0
362 %{_includedir}/gvncpulse-1.0
363 %{_pkgconfigdir}/gvnc-1.0.pc
364 %{_pkgconfigdir}/gvncpulse-1.0.pc
366 %if %{with static_libs}
367 %files -n libgvnc-static
368 %defattr(644,root,root,755)
369 %{_libdir}/libgvnc-1.0.a
370 %{_libdir}/libgvncpulse-1.0.a
374 %files -n vala-libgvnc
375 %defattr(644,root,root,755)
376 %{_datadir}/vala/vapi/gvnc-1.0.deps
377 %{_datadir}/vala/vapi/gvnc-1.0.vapi
378 %{_datadir}/vala/vapi/gvncpulse-1.0.deps
379 %{_datadir}/vala/vapi/gvncpulse-1.0.vapi
383 %defattr(644,root,root,755)
384 %attr(755,root,root) %{_bindir}/gvnccapture
385 %{_mandir}/man1/gvnccapture.1*