]>
Commit | Line | Data |
---|---|---|
de94b064 JB |
1 | # |
2 | # Conditional build: | |
d9c6ef4b JB |
3 | %bcond_without static_libs # static libraries |
4 | %bcond_without vala # Vala API | |
2dc5fe44 | 5 | |
de94b064 JB |
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) | |
e8f8ba6b | 8 | Name: gtk-vnc |
d9c6ef4b | 9 | Version: 0.8.0 |
4b9f4da3 | 10 | Release: 1 |
de94b064 | 11 | License: LGPL v2+ |
3994aa9c | 12 | Group: X11/Libraries |
d9c6ef4b JB |
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 | |
7c955236 MB |
16 | BuildRequires: autoconf >= 2.63 |
17 | BuildRequires: automake >= 1:1.10 | |
796a7010 | 18 | BuildRequires: cairo-devel >= 1.2.0 |
7cbe80e3 | 19 | BuildRequires: cyrus-sasl-devel |
796a7010 | 20 | BuildRequires: gdk-pixbuf2-devel >= 2.10.0 |
943bb532 | 21 | BuildRequires: gettext-tools |
796a7010 | 22 | BuildRequires: glib2-devel >= 1:2.28.0 |
7c955236 | 23 | BuildRequires: gnome-common |
aa530dbb | 24 | BuildRequires: gnutls-devel >= 2.2.0 |
7c955236 MB |
25 | BuildRequires: gobject-introspection-devel >= 0.9.4 |
26 | BuildRequires: gtk+2-devel >= 2:2.18.0 | |
796a7010 | 27 | BuildRequires: gtk+3-devel >= 3.0.0 |
7c955236 | 28 | BuildRequires: intltool >= 0.40.0 |
031d1744 | 29 | BuildRequires: libgcrypt-devel >= 1.4.0 |
81c2a01a | 30 | BuildRequires: libgpg-error-devel |
de94b064 | 31 | BuildRequires: libtool >= 2:2.2.6 |
796a7010 | 32 | BuildRequires: libview-devel >= 0.6.0 |
7c955236 | 33 | BuildRequires: perl-Text-CSV |
ef607b54 | 34 | BuildRequires: perl-tools-pod |
a87b1ed1 | 35 | BuildRequires: pkgconfig |
81c2a01a | 36 | BuildRequires: pulseaudio-devel |
d9c6ef4b | 37 | BuildRequires: python3 >= 1:3 |
3ef49d53 | 38 | BuildRequires: tar >= 1:1.22 |
81c2a01a | 39 | %{?with_vala:BuildRequires: vala >= 0.14.0} |
796a7010 | 40 | BuildRequires: xorg-lib-libX11-devel |
3ef49d53 | 41 | BuildRequires: xz |
3994aa9c | 42 | BuildRequires: zlib-devel |
de94b064 JB |
43 | Requires: cairo >= 1.2.0 |
44 | Requires: gtk+2 >= 2:2.18.0 | |
3ef49d53 | 45 | Requires: libgvnc = %{version}-%{release} |
d9c6ef4b | 46 | Obsoletes: python-gtk-vnc < 0.8.0 |
e8f8ba6b PZ |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
48 | ||
49 | %description | |
436191a8 | 50 | gtk-vnc is a VNC viewer widget for GTK+. It is built using coroutines |
e8f8ba6b PZ |
51 | allowing it to be completely asynchronous while remaining single |
52 | threaded. | |
53 | ||
de94b064 JB |
54 | This package contains version for GTK+ 2.x. |
55 | ||
436191a8 JB |
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. | |
60 | ||
de94b064 JB |
61 | Ten pakiet zawiera wersję dla GTK+ 2.x. |
62 | ||
e8f8ba6b | 63 | %package devel |
de94b064 JB |
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) | |
3994aa9c | 66 | Group: X11/Development/Libraries |
436191a8 | 67 | Requires: %{name} = %{version}-%{release} |
de94b064 | 68 | Requires: cairo-devel >= 1.2.0 |
7c955236 | 69 | Requires: gtk+2-devel >= 2:2.18.0 |
3ef49d53 | 70 | Requires: libgvnc-devel = %{version}-%{release} |
de94b064 | 71 | Requires: xorg-lib-libX11-devel |
e8f8ba6b PZ |
72 | |
73 | %description devel | |
de94b064 | 74 | Header files for gtk-vnc library (GTK+ 2.x version). |
e8f8ba6b | 75 | |
436191a8 | 76 | %description devel -l pl.UTF-8 |
de94b064 | 77 | Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 2.x). |
e8f8ba6b | 78 | |
a87b1ed1 | 79 | %package static |
de94b064 JB |
80 | Summary: Static gtk-vnc library (GTK+ 2.x version) |
81 | Summary(pl.UTF-8): Statyczna biblioteka gtk-vnc (wersja dla GTK+ 2.x) | |
3994aa9c | 82 | Group: X11/Development/Libraries |
a87b1ed1 | 83 | Requires: %{name}-devel = %{version}-%{release} |
796a7010 | 84 | Requires: libgvnc-static = %{version}-%{release} |
a87b1ed1 JB |
85 | |
86 | %description static | |
de94b064 | 87 | Static gtk-vnc library (GTK+ 2.x version). |
a87b1ed1 JB |
88 | |
89 | %description static -l pl.UTF-8 | |
de94b064 JB |
90 | Statyczna biblioteka gtk-vnc (wersja dla GTK+ 2.x). |
91 | ||
796a7010 | 92 | %package -n gtk3-vnc |
de94b064 | 93 | Summary: A GTK+ widget for VNC clients (GTK+ 3.x version) |
796a7010 AF |
94 | Summary(pl.UTF-8): Widget GTK+ dla klientów VNC |
95 | Group: X11/Libraries | |
de94b064 JB |
96 | Requires: cairo >= 1.2.0 |
97 | Requires: gtk+3 >= 3.0.0 | |
3ef49d53 | 98 | Requires: libgvnc = %{version}-%{release} |
796a7010 AF |
99 | |
100 | %description -n gtk3-vnc | |
de94b064 JB |
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 | |
103 | threaded. | |
104 | ||
105 | This package contains version for GTK+ 3.x. | |
796a7010 AF |
106 | |
107 | %description -n gtk3-vnc -l pl.UTF-8 | |
de94b064 | 108 | gtk-vnc to widget przeglądarki VNC dla GTK+. Jest skonstruowany z |
796a7010 AF |
109 | użyciem korutyn, dzięki czemu mogą być w pełni asynchroniczne |
110 | pozostając jednowątkowymi. | |
111 | ||
de94b064 JB |
112 | Ten pakiet zawiera wersję dla GTK+ 3.x. |
113 | ||
796a7010 | 114 | %package -n gtk3-vnc-devel |
de94b064 JB |
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) | |
796a7010 | 117 | Group: X11/Development/Libraries |
de94b064 | 118 | Requires: cairo-devel >= 1.2.0 |
796a7010 | 119 | Requires: gtk+3-devel >= 3.0.0 |
91650e9c | 120 | Requires: gtk3-vnc = %{version}-%{release} |
031d1744 | 121 | Requires: libgcrypt-devel >= 1.4.0 |
796a7010 | 122 | Requires: libgvnc-devel = %{version}-%{release} |
de94b064 | 123 | Requires: xorg-lib-libX11-devel |
796a7010 AF |
124 | |
125 | %description -n gtk3-vnc-devel | |
de94b064 | 126 | Header files for gtk-vnc library (GTK+ 3.x version). |
796a7010 AF |
127 | |
128 | %description -n gtk3-vnc-devel -l pl.UTF-8 | |
de94b064 | 129 | Pliki nagłówkowe biblioteki gtk-vnc (wersja dla GTK+ 3.x). |
796a7010 AF |
130 | |
131 | %package -n gtk3-vnc-static | |
de94b064 JB |
132 | Summary: Static gtk-vnc library (GTK+ 3.x version) |
133 | Summary(pl.UTF-8): Statyczna biblioteka gtk-vnc (wersja dla GTK+ 3.x) | |
796a7010 AF |
134 | Group: X11/Development/Libraries |
135 | Requires: gtk3-vnc-devel = %{version}-%{release} | |
136 | Requires: libgvnc-static = %{version}-%{release} | |
137 | ||
138 | %description -n gtk3-vnc-static | |
de94b064 | 139 | Static gtk-vnc library (GTK+ 3.x version). |
796a7010 AF |
140 | |
141 | %description -n gtk3-vnc-static -l pl.UTF-8 | |
de94b064 JB |
142 | Statyczna biblioteka gtk-vnc (wersja dla GTK+ 3.x). |
143 | ||
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} | |
d9c6ef4b | 150 | %if "%{_rpmversion}" >= "4.6" |
2dc5fe44 ER |
151 | BuildArch: noarch |
152 | %endif | |
de94b064 JB |
153 | |
154 | %description -n vala-gtk3-vnc | |
155 | Vala API for gtk-vnc library (GTK+ 3.x version). | |
156 | ||
157 | %description -n vala-gtk3-vnc -l pl.UTF-8 | |
158 | API języka Vala dla biblioteki gtk-vnc (wersja dla GTK+3). | |
796a7010 AF |
159 | |
160 | %package -n libgvnc | |
161 | Summary: A library for VNC clients | |
162 | Summary(pl.UTF-8): Biblioteka dla klientów VNC | |
163 | Group: X11/Libraries | |
de94b064 | 164 | Requires: gdk-pixbuf2 >= 2.10.0 |
3ef49d53 | 165 | Requires: glib2 >= 1:2.28.0 |
aa530dbb | 166 | Requires: gnutls >= 2.2.0 |
031d1744 | 167 | Requires: libgcrypt >= 1.4.0 |
796a7010 AF |
168 | |
169 | %description -n libgvnc | |
170 | A library for VNC clients. | |
171 | ||
172 | %description -n libgvnc -l pl.UTF-8 | |
173 | Biblioteka dla klientów VNC. | |
174 | ||
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 | |
de94b064 | 179 | Requires: cyrus-sasl-devel |
de94b064 | 180 | Requires: gdk-pixbuf2-devel >= 2.10.0 |
3ef49d53 | 181 | Requires: glib2-devel >= 1:2.28.0 |
aa530dbb | 182 | Requires: gnutls-devel >= 2.2.0 |
031d1744 | 183 | Requires: libgcrypt-devel >= 1.4.0 |
3ef49d53 | 184 | Requires: libgvnc = %{version}-%{release} |
de94b064 | 185 | Requires: zlib-devel |
796a7010 AF |
186 | |
187 | %description -n libgvnc-devel | |
188 | Header files for libgvnc library. | |
189 | ||
190 | %description -n libgvnc-devel -l pl.UTF-8 | |
191 | Pliki nagłówkowe biblioteki libgvnc. | |
192 | ||
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} | |
198 | ||
199 | %description -n libgvnc-static | |
200 | Static libgvnc library. | |
201 | ||
202 | %description -n libgvnc-static -l pl.UTF-8 | |
203 | Statyczna biblioteka libgvnc. | |
204 | ||
de94b064 JB |
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} | |
210 | Requires: vala | |
d9c6ef4b JB |
211 | %if "%{_rpmversion}" >= "4.6" |
212 | BuildArch: noarch | |
213 | %endif | |
e8f8ba6b | 214 | |
de94b064 JB |
215 | %description -n vala-libgvnc |
216 | Vala API for libgvnc library. | |
e8f8ba6b | 217 | |
de94b064 JB |
218 | %description -n vala-libgvnc -l pl.UTF-8 |
219 | API języka Vala dla biblioteki libgvnc. | |
e8f8ba6b | 220 | |
7c955236 MB |
221 | %package tools |
222 | Summary: Command line tools for VNC | |
223 | Summary(pl.UTF-8): Narzędzia linii poleceń dla VNC | |
224 | Group: Applications/Networking | |
d0682d5e | 225 | Requires: libgvnc = %{version}-%{release} |
7c955236 MB |
226 | |
227 | %description tools | |
228 | Command line utilities for interacting with VNC servers. | |
229 | ||
230 | %description tools -l pl.UTF-8 | |
231 | Narzędzia linii poleceń do interakcji z serwerami VNC. | |
232 | ||
e8f8ba6b PZ |
233 | %prep |
234 | %setup -q | |
d9c6ef4b JB |
235 | |
236 | %{__sed} -i -e '1s,/usr/bin/python$,%{__python},' examples/gvncviewer.py | |
e8f8ba6b PZ |
237 | |
238 | %build | |
239 | %{__libtoolize} | |
7c955236 | 240 | %{__aclocal} -I m4 |
e8f8ba6b | 241 | %{__autoconf} |
3994aa9c | 242 | %{__autoheader} |
e8f8ba6b | 243 | %{__automake} |
796a7010 AF |
244 | # force enums regeneration |
245 | touch src/vncconnection.h src/vncdisplay.h | |
246 | mkdir gtk{2,3} | |
247 | cd gtk2 | |
248 | ../%configure \ | |
249 | --with-gtk=2.0 \ | |
250 | --with-libview \ | |
d9c6ef4b | 251 | %{?with_static_libs:--enable-static} \ |
796a7010 | 252 | --disable-plugin \ |
7c955236 | 253 | --disable-silent-rules |
e8f8ba6b | 254 | %{__make} |
d9c6ef4b | 255 | |
796a7010 AF |
256 | cd ../gtk3 |
257 | # libview not ported to gtk+3 | |
258 | ../%configure \ | |
259 | --with-gtk=3.0 \ | |
260 | --without-libview \ | |
d9c6ef4b | 261 | %{?with_static_libs:--enable-static} \ |
796a7010 | 262 | --disable-plugin \ |
de94b064 JB |
263 | --disable-silent-rules \ |
264 | %{!?with_vala:--disable-vala} | |
796a7010 | 265 | %{__make} |
e8f8ba6b PZ |
266 | |
267 | %install | |
268 | rm -rf $RPM_BUILD_ROOT | |
436191a8 | 269 | |
de94b064 | 270 | %{__make} -C gtk2 -j1 install \ |
796a7010 | 271 | DESTDIR=$RPM_BUILD_ROOT |
d9c6ef4b | 272 | |
de94b064 | 273 | %{__make} -C gtk3 -j1 install \ |
e8f8ba6b PZ |
274 | DESTDIR=$RPM_BUILD_ROOT |
275 | ||
d9c6ef4b | 276 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
a87b1ed1 | 277 | |
d9c6ef4b | 278 | cp -p examples/gvncviewer.{c,js,pl,py} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
a87b1ed1 | 279 | |
d9c6ef4b | 280 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
e8f8ba6b | 281 | |
b220cc97 JB |
282 | # not supported by glibc (as of 2.25) |
283 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/guc | |
284 | ||
7cbe80e3 MB |
285 | %find_lang %{name} |
286 | ||
e8f8ba6b | 287 | %clean |
a65f3e04 | 288 | rm -rf $RPM_BUILD_ROOT |
e8f8ba6b | 289 | |
a87b1ed1 JB |
290 | %post -p /sbin/ldconfig |
291 | %postun -p /sbin/ldconfig | |
e8f8ba6b | 292 | |
de94b064 JB |
293 | %post -n gtk3-vnc -p /sbin/ldconfig |
294 | %postun -n gtk3-vnc -p /sbin/ldconfig | |
a849c9ce | 295 | |
de94b064 JB |
296 | %post -n libgvnc -p /sbin/ldconfig |
297 | %postun -n libgvnc -p /sbin/ldconfig | |
a849c9ce | 298 | |
796a7010 | 299 | %files |
e8f8ba6b | 300 | %defattr(644,root,root,755) |
a87b1ed1 JB |
301 | %attr(755,root,root) %{_libdir}/libgtk-vnc-1.0.so.*.*.* |
302 | %attr(755,root,root) %ghost %{_libdir}/libgtk-vnc-1.0.so.0 | |
7c955236 | 303 | %{_libdir}/girepository-1.0/GtkVnc-1.0.typelib |
e8f8ba6b PZ |
304 | |
305 | %files devel | |
306 | %defattr(644,root,root,755) | |
a87b1ed1 | 307 | %attr(755,root,root) %{_libdir}/libgtk-vnc-1.0.so |
a87b1ed1 | 308 | %{_includedir}/%{name}-1.0 |
7c955236 | 309 | %{_datadir}/gir-1.0/GtkVnc-1.0.gir |
e8f8ba6b | 310 | %{_pkgconfigdir}/%{name}-1.0.pc |
a87b1ed1 JB |
311 | %{_examplesdir}/%{name}-%{version} |
312 | ||
d9c6ef4b | 313 | %if %{with static_libs} |
a87b1ed1 JB |
314 | %files static |
315 | %defattr(644,root,root,755) | |
316 | %{_libdir}/libgtk-vnc-1.0.a | |
d9c6ef4b | 317 | %endif |
de94b064 | 318 | |
796a7010 AF |
319 | %files -n gtk3-vnc |
320 | %defattr(644,root,root,755) | |
a849c9ce MB |
321 | %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so.*.*.* |
322 | %attr(755,root,root) %ghost %{_libdir}/libgtk-vnc-2.0.so.0 | |
796a7010 AF |
323 | %{_libdir}/girepository-1.0/GtkVnc-2.0.typelib |
324 | ||
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 | |
331 | ||
d9c6ef4b | 332 | %if %{with static_libs} |
796a7010 AF |
333 | %files -n gtk3-vnc-static |
334 | %defattr(644,root,root,755) | |
335 | %{_libdir}/libgtk-vnc-2.0.a | |
d9c6ef4b | 336 | %endif |
796a7010 | 337 | |
de94b064 JB |
338 | %if %{with vala} |
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 | |
343 | %endif | |
344 | ||
796a7010 AF |
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.*.*.* | |
3ef49d53 | 349 | %attr(755,root,root) %{_libdir}/libgvncpulse-1.0.so.*.*.* |
796a7010 | 350 | %attr(755,root,root) %ghost %{_libdir}/libgvnc-1.0.so.0 |
3ef49d53 | 351 | %attr(755,root,root) %ghost %{_libdir}/libgvncpulse-1.0.so.0 |
796a7010 | 352 | %{_libdir}/girepository-1.0/GVnc-1.0.typelib |
3ef49d53 | 353 | %{_libdir}/girepository-1.0/GVncPulse-1.0.typelib |
796a7010 AF |
354 | |
355 | %files -n libgvnc-devel | |
356 | %defattr(644,root,root,755) | |
357 | %attr(755,root,root) %{_libdir}/libgvnc-1.0.so | |
3ef49d53 | 358 | %attr(755,root,root) %{_libdir}/libgvncpulse-1.0.so |
796a7010 | 359 | %{_datadir}/gir-1.0/GVnc-1.0.gir |
3ef49d53 | 360 | %{_datadir}/gir-1.0/GVncPulse-1.0.gir |
796a7010 | 361 | %{_includedir}/gvnc-1.0 |
3ef49d53 | 362 | %{_includedir}/gvncpulse-1.0 |
796a7010 | 363 | %{_pkgconfigdir}/gvnc-1.0.pc |
3ef49d53 | 364 | %{_pkgconfigdir}/gvncpulse-1.0.pc |
796a7010 | 365 | |
d9c6ef4b | 366 | %if %{with static_libs} |
796a7010 AF |
367 | %files -n libgvnc-static |
368 | %defattr(644,root,root,755) | |
7c955236 | 369 | %{_libdir}/libgvnc-1.0.a |
3ef49d53 | 370 | %{_libdir}/libgvncpulse-1.0.a |
d9c6ef4b | 371 | %endif |
e8f8ba6b | 372 | |
de94b064 JB |
373 | %if %{with vala} |
374 | %files -n vala-libgvnc | |
e8f8ba6b | 375 | %defattr(644,root,root,755) |
aa530dbb | 376 | %{_datadir}/vala/vapi/gvnc-1.0.deps |
de94b064 | 377 | %{_datadir}/vala/vapi/gvnc-1.0.vapi |
aa530dbb | 378 | %{_datadir}/vala/vapi/gvncpulse-1.0.deps |
3ef49d53 | 379 | %{_datadir}/vala/vapi/gvncpulse-1.0.vapi |
de94b064 | 380 | %endif |
7c955236 MB |
381 | |
382 | %files tools | |
383 | %defattr(644,root,root,755) | |
384 | %attr(755,root,root) %{_bindir}/gvnccapture | |
385 | %{_mandir}/man1/gvnccapture.1* |