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://spice-space.org/download/gtk/%{name}-%{version}.tar.bz2
16 # Source0-md5: 29dd7372ac099aedb4d024fc4eacd374
17 Patch0: %{name}-sh.patch
18 Patch1: %{name}-builddir.patch
19 Patch2: %{name}-usbredir.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.22
30 BuildRequires: gtk-doc >= 1.14
31 %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0}
32 BuildRequires: intltool >= 0.40.0
33 %{?with_smartcard:BuildRequires: libcacard-devel >= 0.1.2}
34 BuildRequires: libjpeg-devel
35 BuildRequires: libstdc++-devel
36 BuildRequires: libtool >= 2:2.0
37 BuildRequires: openssl-devel
38 BuildRequires: perl-Text-CSV
39 BuildRequires: perl-base >= 1:5.8.1
40 BuildRequires: pixman-devel >= 0.17.7
41 BuildRequires: pkgconfig
42 BuildRequires: pulseaudio-devel
43 BuildRequires: spice-protocol >= 0.10.1
44 BuildRequires: xorg-lib-libX11-devel
45 BuildRequires: xorg-lib-libXrandr-devel
46 BuildRequires: zlib-devel
48 BuildRequires: gtk+2-devel >= 2:2.18.0
49 BuildRequires: python-devel >= 2.0
50 BuildRequires: python-pygtk-devel >= 2:2.0.0
53 BuildRequires: acl-devel
54 BuildRequires: libusb-devel >= 1.0.9
55 BuildRequires: polkit-devel >= 0.96
56 BuildRequires: udev-glib-devel
57 BuildRequires: usbredir-devel >= 0.3.3
59 %{?with_smartcard:Requires: libcacard >= 0.1.2}
60 Requires: spice-glib = %{version}-%{release}
61 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
64 A GTK+ client and libraries for SPICE remote desktop servers.
66 %description -l pl.UTF-8
67 Klient i biblioteki GTK+ dla serwerów zdalnych pulpitów SPICE.
70 Summary: Header files for SPICE GTK 3.0 client library
71 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0
72 Group: X11/Development/Libraries
73 Requires: %{name} = %{version}-%{release}
74 Requires: spice-glib-devel = %{version}-%{release}
75 Requires: gtk+3-devel >= 3.0
78 Header files for SPICE GTK 3.0 client library.
80 %description devel -l pl.UTF-8
81 Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0.
84 Summary: Static SPICE GTK 3.0 client library
85 Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GTK 3.0
86 Group: X11/Development/Libraries
87 Requires: %{name}-devel = %{version}-%{release}
90 Static SPICE GTK 3.0 client library.
92 %description static -l pl.UTF-8
93 Statyczna biblioteka kliencka SPICE GTK 3.0.
96 Summary: SPICE GTK API documentation
97 Summary(pl.UTF-8): Dokumentacja API bibliotek SPICE GTK
101 API documentation for SPICE GTK libraries.
103 %description apidocs -l pl.UTF-8
104 Dokumentacja API bibliotek SPICE GTK.
106 %package -n spice-glib
107 Summary: SPICE Client GLib library
108 Summary(pl.UTF-8): Biblioteka kliencka SPICE GLib
110 Requires: celt051 >= 0.5.1.1
111 Requires: glib2 >= 1:2.22
112 %{?with_smartcard:Requires: libcacard >= 0.1.2}
113 Requires: pixman >= 0.17.7
115 Requires: libusb >= 1.0.9
116 Requires: usbredir >= 0.3.3
119 %description -n spice-glib
120 SPICE Client GLib library.
122 %description -n spice-glib -l pl.UTF-8
123 Biblioteka kliencka SPICE GLib.
125 %package -n spice-glib-devel
126 Summary: Header files for SPICE Client GLib library
127 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GLib
128 Group: Development/Libraries
129 Requires: celt051-devel >= 0.5.1.1
130 Requires: cyrus-sasl-devel >= 2.0
131 Requires: glib2-devel >= 1:2.22
132 %{?with_smartcard:Requires: libcacard-devel >= 0.1.2}
133 Requires: libjpeg-devel
134 Requires: openssl-devel
135 Requires: pixman-devel >= 0.17.7
136 Requires: pulseaudio-devel
137 Requires: spice-glib = %{version}-%{release}
138 Requires: spice-protocol >= 0.10.1
140 Requires: libusb-devel >= 1.0.9
141 Requires: udev-glib-devel
142 Requires: usbredir-devel >= 0.3.3
145 %description -n spice-glib-devel
146 Header files for SPICE Client GLib library.
148 %description -n spice-glib-devel -l pl.UTF-8
149 Pliki nagłówkowe biblioteki klienckiej SPICE GLib.
151 %package -n spice-glib-static
152 Summary: SPICE Client GLib static library
153 Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GLib
154 Group: Development/Libraries
155 Requires: spice-glib-devel = %{version}-%{release}
157 %description -n spice-glib-static
158 SPICE Client GLib static library.
160 %description -n spice-glib-static -l pl.UTF-8
161 Statyczna biblioteka kliencka SPICE GLib.
163 %package -n spice-glib-usb
164 Summary: USB redirection ACL helper for SPICE Client GLib library
165 Summary(pl.UTF-8): Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej SPICE GLib
166 Group: Applications/System
167 Requires: spice-glib = %{version}-%{release}
168 Requires: polkit >= 0.96
170 %description -n spice-glib-usb
171 USB redirection ACL helper for SPICE Client GLib library.
173 %description -n spice-glib-usb -l pl.UTF-8
174 Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej
177 %package -n spice-gtk2
178 Summary: SPICE Client GTK 2.0 library
179 Summary(pl.UTF-8): Biblioteka kliencka SPICE GTK 2.0
181 Requires: gtk+2 >= 2:2.18.0
182 Requires: spice-glib = %{version}-%{release}
184 %description -n spice-gtk2
185 SPICE Client GTK 2.0 library.
187 %description -n spice-gtk2 -l pl.UTF-8
188 Biblioteka kliencka SPICE GTK 2.0.
190 %package -n spice-gtk2-devel
191 Summary: Header files for SPICE Client GTK 2.0 library
192 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GTK 2.0
193 Group: X11/Development/Libraries
194 Requires: gtk+2-devel >= 2:2.18.0
195 Requires: spice-glib-devel = %{version}-%{release}
197 %description -n spice-gtk2-devel
198 Header files for SPICE Client GTK 2.0 library.
200 %description -n spice-gtk2-devel -l pl.UTF-8
201 Pliki nagłówkowe biblioteki klienckiej SPICE GTK 2.0.
203 %package -n spice-gtk2-static
204 Summary: SPICE Client GTK 2.0 static library
205 Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GTK 2.0
206 Group: X11/Development/Libraries
207 Requires: spice-gtk2-devel = %{version}-%{release}
209 %description -n spice-gtk2-static
210 SPICE Client GTK 2.0 static library.
212 %description -n spice-gtk2-static -l pl.UTF-8
213 Statyczna biblioteka kliencka SPICE GTK 2.0.
215 %package -n python-spice-gtk
216 Summary: Python interface to SPICE client GTK library
217 Summary(pl.UTF-8): Pythonowy interfejs do biblioteki klienckiej SPICE GTK
218 Group: Libraries/Python
219 Requires: spice-gtk2 = %{version}-%{release}
221 %description -n python-spice-gtk
222 Python interface to SPICE client GTK library.
224 %description -n python-spice-gtk -l pl.UTF-8
225 Pythonowy interfejs do biblioteki klienckiej SPICE GTK.
227 %package -n vala-spice-protocol
228 Summary: Vala API for SPICE client library
229 Summary(pl.UTF-8): Interfejs języka Vala do biblioteki klienckiej SPICE
230 Group: Development/Libraries
231 Requires: spice-protocol >= 0.10.1
232 Requires: vala >= 0.14
234 %description -n vala-spice-protocol
235 Vala API for SPICE client library.
237 %description -n vala-spice-protocol -l pl.UTF-8
238 Interfejs języka Vala do biblioteki klienckiej SPICE.
246 mkdir %{?with_gtk2:gtk2} %{?with_gtk3:gtk3}
259 --disable-silent-rules \
260 %{!?with_smartcard:--disable-smartcard} \
261 %{!?with_usbredir:--disable-usbredir} \
263 --with-html-dir=%{_gtkdocdir}
271 --disable-silent-rules \
272 %{!?with_smartcard:--disable-smartcard} \
273 %{!?with_usbredir:--disable-usbredir} \
276 --with-html-dir=%{_gtkdocdir}
281 rm -rf $RPM_BUILD_ROOT
283 # gtk2 first, so executables will use gtk3 libs
285 %{__make} -C gtk2 install -j1 \
286 DESTDIR=$RPM_BUILD_ROOT
290 %{__make} -C gtk3 install -j1 \
291 DESTDIR=$RPM_BUILD_ROOT
294 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/SpiceClientGtk.{la,a}
295 # obsoleted by pkg-config
296 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
301 rm -rf $RPM_BUILD_ROOT
303 %post -p /sbin/ldconfig
304 %postun -p /sbin/ldconfig
306 %post -n spice-glib -p /sbin/ldconfig
307 %postun -n spice-glib -p /sbin/ldconfig
309 %post -n spice-gtk2 -p /sbin/ldconfig
310 %postun -n spice-gtk2 -p /sbin/ldconfig
313 %files -f %{name}.lang
314 %defattr(644,root,root,755)
315 %doc AUTHORS NEWS README THANKS TODO
316 %attr(755,root,root) %{_bindir}/snappy
317 %attr(755,root,root) %{_bindir}/spicy
318 %attr(755,root,root) %{_bindir}/spicy-stats
319 %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so.*.*.*
320 %attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-3.0.so.1
321 %{_libdir}/girepository-1.0/SpiceClientGtk-3.0.typelib
324 %defattr(644,root,root,755)
325 %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so
326 %{_includedir}/spice-client-gtk-3.0
327 %{_pkgconfigdir}/spice-client-gtk-3.0.pc
328 %{_datadir}/gir-1.0/SpiceClientGtk-3.0.gir
331 %defattr(644,root,root,755)
332 %{_libdir}/libspice-client-gtk-3.0.a
335 %defattr(644,root,root,755)
336 %{_gtkdocdir}/spice-gtk
340 %defattr(644,root,root,755)
341 %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so.*.*.*
342 %attr(755,root,root) %ghost %{_libdir}/libspice-client-glib-2.0.so.1
343 %attr(755,root,root) %{_libdir}/libspice-controller.so.*.*.*
344 %attr(755,root,root) %ghost %{_libdir}/libspice-controller.so.0
345 %{_libdir}/girepository-1.0/SpiceClientGLib-2.0.typelib
347 %files -n spice-glib-devel
348 %defattr(644,root,root,755)
349 %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so
350 %attr(755,root,root) %{_libdir}/libspice-controller.so
351 %{_includedir}/spice-client-glib-2.0
352 %{_includedir}/spice-controller
353 %{_pkgconfigdir}/spice-client-glib-2.0.pc
354 %{_pkgconfigdir}/spice-controller.pc
355 %{_datadir}/gir-1.0/SpiceClientGLib-2.0.gir
357 %files -n spice-glib-static
358 %defattr(644,root,root,755)
359 %{_libdir}/libspice-client-glib-2.0.a
360 %{_libdir}/libspice-controller.a
363 %files -n spice-glib-usb
364 %defattr(644,root,root,755)
365 %attr(755,root,root) %{_bindir}/spice-client-glib-usb-acl-helper
366 %{_datadir}/polkit-1/actions/org.spice-space.lowlevelusbaccess.policy
371 %defattr(644,root,root,755)
372 %attr(755,root,root) %{_libdir}/libspice-client-gtk-2.0.so.*.*.*
373 %attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-2.0.so.1
374 %{_libdir}/girepository-1.0/SpiceClientGtk-2.0.typelib
376 %files -n spice-gtk2-devel
377 %defattr(644,root,root,755)
378 %attr(755,root,root) %{_libdir}/libspice-client-gtk-2.0.so
379 %{_includedir}/spice-client-gtk-2.0
380 %{_pkgconfigdir}/spice-client-gtk-2.0.pc
381 %{_datadir}/gir-1.0/SpiceClientGtk-2.0.gir
383 %files -n spice-gtk2-static
384 %defattr(644,root,root,755)
385 %{_libdir}/libspice-client-gtk-2.0.a
387 %files -n python-spice-gtk
388 %defattr(644,root,root,755)
389 %attr(755,root,root) %{py_sitedir}/SpiceClientGtk.so
392 %files -n vala-spice-protocol
393 %defattr(644,root,root,755)
394 %{_datadir}/vala/vapi/spice-protocol.vapi