3 %bcond_without gtk2 # GTK+ 2 interfaces
4 %bcond_without gtk3 # GTK+ 3 interfaces
5 %bcond_without smartcard # Smartcard support
6 %bcond_without usbredir # USB redirection
8 Summary: A GTK+ client and libraries for SPICE remote desktop servers
9 Summary(pl.UTF-8): Klient i biblioteki GTK+ dla serwerów zdalnych pulpitów SPICE
14 Group: X11/Applications
15 Source0: http://www.spice-space.org/download/gtk/%{name}-%{version}.tar.bz2
16 # Source0-md5: b1dec0cc3d8253deea70cfcfcce334b6
17 Patch0: %{name}-builddir.patch
18 Patch1: %{name}-am.patch
19 Patch2: %{name}-phodav.patch
20 URL: http://spice-space.org/
21 BuildRequires: autoconf >= 2.57
22 BuildRequires: automake >= 1.6
23 BuildRequires: cairo-devel >= 1.2.0
24 BuildRequires: celt051-devel >= 0.5.1.1
25 BuildRequires: cyrus-sasl-devel >= 2.0
26 BuildRequires: gcc >= 5:3.0
27 BuildRequires: gettext-devel >= 0.17
28 BuildRequires: gobject-introspection-devel >= 0.9.4
29 BuildRequires: glib2-devel >= 1:2.28
30 BuildRequires: gtk-doc >= 1.14
31 %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.18.0}
32 %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0}
33 BuildRequires: intltool >= 0.40.0
34 %{?with_smartcard:BuildRequires: libcacard-devel >= 0.1.2}
35 BuildRequires: libjpeg-devel
36 BuildRequires: libstdc++-devel
37 BuildRequires: libtool >= 2:2.0
38 BuildRequires: openssl-devel
39 BuildRequires: opus-devel >= 0.9.14
40 BuildRequires: perl-Text-CSV
41 BuildRequires: perl-base >= 1:5.8.1
42 BuildRequires: phodav-devel
43 BuildRequires: pixman-devel >= 0.17.7
44 BuildRequires: pkgconfig
45 BuildRequires: pulseaudio-devel
46 BuildRequires: sed >= 4.0
47 BuildRequires: spice-protocol >= 0.10.1
48 BuildRequires: xorg-lib-libX11-devel
49 BuildRequires: xorg-lib-libXrandr-devel
50 BuildRequires: zlib-devel
52 BuildRequires: gtk+2-devel >= 2:2.18.0
53 BuildRequires: python-devel >= 2.0
54 BuildRequires: python-pygtk-devel >= 2:2.0.0
57 BuildRequires: acl-devel
58 BuildRequires: libusb-devel >= 1.0.16
59 BuildRequires: polkit-devel >= 0.96
60 BuildRequires: usbredir-devel >= 0.5.2
62 %{?with_smartcard:Requires: libcacard >= 0.1.2}
63 Requires: spice-glib = %{version}-%{release}
64 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
67 A GTK+ client and libraries for SPICE remote desktop servers.
69 %description -l pl.UTF-8
70 Klient i biblioteki GTK+ dla serwerów zdalnych pulpitów SPICE.
73 Summary: Header files for SPICE GTK 3.0 client library
74 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0
75 Group: X11/Development/Libraries
76 Requires: %{name} = %{version}-%{release}
77 Requires: spice-glib-devel = %{version}-%{release}
78 Requires: gtk+3-devel >= 3.0
81 Header files for SPICE GTK 3.0 client library.
83 %description devel -l pl.UTF-8
84 Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0.
87 Summary: Static SPICE GTK 3.0 client library
88 Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GTK 3.0
89 Group: X11/Development/Libraries
90 Requires: %{name}-devel = %{version}-%{release}
93 Static SPICE GTK 3.0 client library.
95 %description static -l pl.UTF-8
96 Statyczna biblioteka kliencka SPICE GTK 3.0.
99 Summary: SPICE GTK API documentation
100 Summary(pl.UTF-8): Dokumentacja API bibliotek SPICE GTK
104 API documentation for SPICE GTK libraries.
106 %description apidocs -l pl.UTF-8
107 Dokumentacja API bibliotek SPICE GTK.
109 %package -n spice-glib
110 Summary: SPICE Client GLib library
111 Summary(pl.UTF-8): Biblioteka kliencka SPICE GLib
113 Requires: celt051 >= 0.5.1.1
114 Requires: glib2 >= 1:2.28
115 %{?with_smartcard:Requires: libcacard >= 0.1.2}
116 Requires: opus >= 0.9.14
117 Requires: pixman >= 0.17.7
119 Requires: libusb >= 1.0.16
120 Requires: usbredir >= 0.5.2
123 %description -n spice-glib
124 SPICE Client GLib library.
126 %description -n spice-glib -l pl.UTF-8
127 Biblioteka kliencka SPICE GLib.
129 %package -n spice-glib-devel
130 Summary: Header files for SPICE Client GLib library
131 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GLib
132 Group: Development/Libraries
133 Requires: celt051-devel >= 0.5.1.1
134 Requires: cyrus-sasl-devel >= 2.0
135 Requires: glib2-devel >= 1:2.28
136 %{?with_smartcard:Requires: libcacard-devel >= 0.1.2}
137 Requires: libjpeg-devel
138 Requires: openssl-devel
139 Requires: pixman-devel >= 0.17.7
140 Requires: pulseaudio-devel
141 Requires: spice-glib = %{version}-%{release}
142 Requires: spice-protocol >= 0.10.1
144 Requires: libusb-devel >= 1.0.16
145 Requires: usbredir-devel >= 0.5.2
148 %description -n spice-glib-devel
149 Header files for SPICE Client GLib library.
151 %description -n spice-glib-devel -l pl.UTF-8
152 Pliki nagłówkowe biblioteki klienckiej SPICE GLib.
154 %package -n spice-glib-static
155 Summary: SPICE Client GLib static library
156 Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GLib
157 Group: Development/Libraries
158 Requires: spice-glib-devel = %{version}-%{release}
160 %description -n spice-glib-static
161 SPICE Client GLib static library.
163 %description -n spice-glib-static -l pl.UTF-8
164 Statyczna biblioteka kliencka SPICE GLib.
166 %package -n spice-glib-usb
167 Summary: USB redirection ACL helper for SPICE Client GLib library
168 Summary(pl.UTF-8): Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej SPICE GLib
169 Group: Applications/System
170 Requires: spice-glib = %{version}-%{release}
171 Requires: polkit >= 0.96
173 %description -n spice-glib-usb
174 USB redirection ACL helper for SPICE Client GLib library.
176 %description -n spice-glib-usb -l pl.UTF-8
177 Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej
180 %package -n spice-gtk2
181 Summary: SPICE Client GTK 2.0 library
182 Summary(pl.UTF-8): Biblioteka kliencka SPICE GTK 2.0
184 Requires: gtk+2 >= 2:2.18.0
185 Requires: spice-glib = %{version}-%{release}
187 %description -n spice-gtk2
188 SPICE Client GTK 2.0 library.
190 %description -n spice-gtk2 -l pl.UTF-8
191 Biblioteka kliencka SPICE GTK 2.0.
193 %package -n spice-gtk2-devel
194 Summary: Header files for SPICE Client GTK 2.0 library
195 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GTK 2.0
196 Group: X11/Development/Libraries
197 Requires: gtk+2-devel >= 2:2.18.0
198 Requires: spice-glib-devel = %{version}-%{release}
200 %description -n spice-gtk2-devel
201 Header files for SPICE Client GTK 2.0 library.
203 %description -n spice-gtk2-devel -l pl.UTF-8
204 Pliki nagłówkowe biblioteki klienckiej SPICE GTK 2.0.
206 %package -n spice-gtk2-static
207 Summary: SPICE Client GTK 2.0 static library
208 Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GTK 2.0
209 Group: X11/Development/Libraries
210 Requires: spice-gtk2-devel = %{version}-%{release}
212 %description -n spice-gtk2-static
213 SPICE Client GTK 2.0 static library.
215 %description -n spice-gtk2-static -l pl.UTF-8
216 Statyczna biblioteka kliencka SPICE GTK 2.0.
218 %package -n python-spice-gtk
219 Summary: Python interface to SPICE client GTK library
220 Summary(pl.UTF-8): Pythonowy interfejs do biblioteki klienckiej SPICE GTK
221 Group: Libraries/Python
222 Requires: spice-gtk2 = %{version}-%{release}
224 %description -n python-spice-gtk
225 Python interface to SPICE client GTK library.
227 %description -n python-spice-gtk -l pl.UTF-8
228 Pythonowy interfejs do biblioteki klienckiej SPICE GTK.
230 %package -n vala-spice-protocol
231 Summary: Vala API for SPICE client library
232 Summary(pl.UTF-8): Interfejs języka Vala do biblioteki klienckiej SPICE
233 Group: Development/Libraries
234 Requires: spice-protocol >= 0.10.1
235 Requires: vala >= 2:0.14
237 %description -n vala-spice-protocol
238 Vala API for SPICE client library.
240 %description -n vala-spice-protocol -l pl.UTF-8
241 Interfejs języka Vala do biblioteki klienckiej SPICE.
249 mkdir %{?with_gtk2:gtk2} %{?with_gtk3:gtk3}
262 --disable-silent-rules \
263 %{!?with_smartcard:--disable-smartcard} \
264 %{!?with_usbredir:--disable-usbredir} \
266 --with-html-dir=%{_gtkdocdir}
274 --disable-silent-rules \
275 %{!?with_smartcard:--disable-smartcard} \
276 %{!?with_usbredir:--disable-usbredir} \
279 --with-html-dir=%{_gtkdocdir}
284 rm -rf $RPM_BUILD_ROOT
286 # gtk2 first, so executables will use gtk3 libs
288 %{__make} -C gtk2 install -j1 \
289 DESTDIR=$RPM_BUILD_ROOT
293 %{__make} -C gtk3 install -j1 \
294 DESTDIR=$RPM_BUILD_ROOT
297 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/SpiceClientGtk.{la,a}
298 # obsoleted by pkg-config
299 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
304 rm -rf $RPM_BUILD_ROOT
306 %post -p /sbin/ldconfig
307 %postun -p /sbin/ldconfig
309 %post -n spice-glib -p /sbin/ldconfig
310 %postun -n spice-glib -p /sbin/ldconfig
312 %post -n spice-gtk2 -p /sbin/ldconfig
313 %postun -n spice-gtk2 -p /sbin/ldconfig
316 %files -f %{name}.lang
317 %defattr(644,root,root,755)
318 %doc AUTHORS NEWS README THANKS TODO
319 %attr(755,root,root) %{_bindir}/spicy
320 %attr(755,root,root) %{_bindir}/spicy-screenshot
321 %attr(755,root,root) %{_bindir}/spicy-stats
322 %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so.*.*.*
323 %attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-3.0.so.4
324 %{_libdir}/girepository-1.0/SpiceClientGtk-3.0.typelib
327 %defattr(644,root,root,755)
328 %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so
329 %{_includedir}/spice-client-gtk-3.0
330 %{_pkgconfigdir}/spice-client-gtk-3.0.pc
331 %{_datadir}/gir-1.0/SpiceClientGtk-3.0.gir
334 %defattr(644,root,root,755)
335 %{_libdir}/libspice-client-gtk-3.0.a
338 %defattr(644,root,root,755)
339 %{_gtkdocdir}/spice-gtk
343 %defattr(644,root,root,755)
344 %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so.*.*.*
345 %attr(755,root,root) %ghost %{_libdir}/libspice-client-glib-2.0.so.8
346 %attr(755,root,root) %{_libdir}/libspice-controller.so.*.*.*
347 %attr(755,root,root) %ghost %{_libdir}/libspice-controller.so.0
348 %{_libdir}/girepository-1.0/SpiceClientGLib-2.0.typelib
350 %files -n spice-glib-devel
351 %defattr(644,root,root,755)
352 %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so
353 %attr(755,root,root) %{_libdir}/libspice-controller.so
354 %{_includedir}/spice-client-glib-2.0
355 %{_includedir}/spice-controller
356 %{_pkgconfigdir}/spice-client-glib-2.0.pc
357 %{_pkgconfigdir}/spice-controller.pc
358 %{_datadir}/gir-1.0/SpiceClientGLib-2.0.gir
360 %files -n spice-glib-static
361 %defattr(644,root,root,755)
362 %{_libdir}/libspice-client-glib-2.0.a
363 %{_libdir}/libspice-controller.a
366 %files -n spice-glib-usb
367 %defattr(644,root,root,755)
368 %attr(755,root,root) %{_bindir}/spice-client-glib-usb-acl-helper
369 %{_datadir}/polkit-1/actions/org.spice-space.lowlevelusbaccess.policy
374 %defattr(644,root,root,755)
375 %attr(755,root,root) %{_libdir}/libspice-client-gtk-2.0.so.*.*.*
376 %attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-2.0.so.4
377 %{_libdir}/girepository-1.0/SpiceClientGtk-2.0.typelib
379 %files -n spice-gtk2-devel
380 %defattr(644,root,root,755)
381 %attr(755,root,root) %{_libdir}/libspice-client-gtk-2.0.so
382 %{_includedir}/spice-client-gtk-2.0
383 %{_pkgconfigdir}/spice-client-gtk-2.0.pc
384 %{_datadir}/gir-1.0/SpiceClientGtk-2.0.gir
386 %files -n spice-gtk2-static
387 %defattr(644,root,root,755)
388 %{_libdir}/libspice-client-gtk-2.0.a
390 %files -n python-spice-gtk
391 %defattr(644,root,root,755)
392 %attr(755,root,root) %{py_sitedir}/SpiceClientGtk.so
395 %files -n vala-spice-protocol
396 %defattr(644,root,root,755)
397 %{_datadir}/vala/vapi/spice-protocol.vapi