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
7 %bcond_without static_libs # static libraries
9 Summary: A GTK+ client and libraries for SPICE remote desktop servers
10 Summary(pl.UTF-8): Klient i biblioteki GTK+ dla serwerów zdalnych pulpitów SPICE
15 Group: X11/Applications
16 Source0: http://www.spice-space.org/download/gtk/%{name}-%{version}.tar.bz2
17 # Source0-md5: ad07d438ce6dfbb038aa8e28f5a2fb81
18 Patch0: %{name}-builddir.patch
19 Patch1: %{name}-am.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-tools >= 0.17
28 BuildRequires: gobject-introspection-devel >= 0.9.4
29 BuildRequires: glib2-devel >= 1:2.44
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: lz4-devel
39 BuildRequires: openssl-devel
40 BuildRequires: opus-devel >= 0.9.14
41 BuildRequires: perl-Text-CSV
42 BuildRequires: perl-base >= 1:5.8.1
43 BuildRequires: phodav-devel >= 2.0
44 BuildRequires: pixman-devel >= 0.17.7
45 BuildRequires: pkgconfig
46 BuildRequires: pulseaudio-devel
47 BuildRequires: sed >= 4.0
48 BuildRequires: spice-protocol >= 0.10.1
49 BuildRequires: xorg-lib-libX11-devel
50 BuildRequires: xorg-lib-libXrandr-devel
51 BuildRequires: zlib-devel
53 BuildRequires: gtk+2-devel >= 2:2.18.0
54 BuildRequires: python-devel >= 2.0
55 BuildRequires: python-pygtk-devel >= 2:2.0.0
58 BuildRequires: acl-devel
59 BuildRequires: libusb-devel >= 1.0.16
60 BuildRequires: polkit-devel >= 0.96
61 BuildRequires: usbredir-devel >= 0.5.2
63 %{?with_smartcard:Requires: libcacard >= 0.1.2}
64 Requires: spice-glib = %{version}-%{release}
65 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
68 A GTK+ client and libraries for SPICE remote desktop servers.
70 %description -l pl.UTF-8
71 Klient i biblioteki GTK+ dla serwerów zdalnych pulpitów SPICE.
74 Summary: Header files for SPICE GTK 3.0 client library
75 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0
76 Group: X11/Development/Libraries
77 Requires: %{name} = %{version}-%{release}
78 Requires: spice-glib-devel = %{version}-%{release}
79 Requires: gtk+3-devel >= 3.0
82 Header files for SPICE GTK 3.0 client library.
84 %description devel -l pl.UTF-8
85 Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0.
88 Summary: Static SPICE GTK 3.0 client library
89 Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GTK 3.0
90 Group: X11/Development/Libraries
91 Requires: %{name}-devel = %{version}-%{release}
94 Static SPICE GTK 3.0 client library.
96 %description static -l pl.UTF-8
97 Statyczna biblioteka kliencka SPICE GTK 3.0.
100 Summary: SPICE GTK API documentation
101 Summary(pl.UTF-8): Dokumentacja API bibliotek SPICE GTK
105 API documentation for SPICE GTK libraries.
107 %description apidocs -l pl.UTF-8
108 Dokumentacja API bibliotek SPICE GTK.
110 %package -n spice-glib
111 Summary: SPICE Client GLib library
112 Summary(pl.UTF-8): Biblioteka kliencka SPICE GLib
114 Requires: celt051 >= 0.5.1.1
115 Requires: glib2 >= 1:2.28
116 %{?with_smartcard:Requires: libcacard >= 0.1.2}
117 Requires: opus >= 0.9.14
118 Requires: pixman >= 0.17.7
120 Requires: libusb >= 1.0.16
121 Requires: usbredir >= 0.5.2
124 %description -n spice-glib
125 SPICE Client GLib library.
127 %description -n spice-glib -l pl.UTF-8
128 Biblioteka kliencka SPICE GLib.
130 %package -n spice-glib-devel
131 Summary: Header files for SPICE Client GLib library
132 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GLib
133 Group: Development/Libraries
134 Requires: celt051-devel >= 0.5.1.1
135 Requires: cyrus-sasl-devel >= 2.0
136 Requires: glib2-devel >= 1:2.28
137 %{?with_smartcard:Requires: libcacard-devel >= 0.1.2}
138 Requires: libjpeg-devel
139 Requires: openssl-devel
140 Requires: pixman-devel >= 0.17.7
141 Requires: pulseaudio-devel
142 Requires: spice-glib = %{version}-%{release}
143 Requires: spice-protocol >= 0.10.1
145 Requires: libusb-devel >= 1.0.16
146 Requires: usbredir-devel >= 0.5.2
149 %description -n spice-glib-devel
150 Header files for SPICE Client GLib library.
152 %description -n spice-glib-devel -l pl.UTF-8
153 Pliki nagłówkowe biblioteki klienckiej SPICE GLib.
155 %package -n spice-glib-static
156 Summary: SPICE Client GLib static library
157 Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GLib
158 Group: Development/Libraries
159 Requires: spice-glib-devel = %{version}-%{release}
161 %description -n spice-glib-static
162 SPICE Client GLib static library.
164 %description -n spice-glib-static -l pl.UTF-8
165 Statyczna biblioteka kliencka SPICE GLib.
167 %package -n spice-glib-usb
168 Summary: USB redirection ACL helper for SPICE Client GLib library
169 Summary(pl.UTF-8): Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej SPICE GLib
170 Group: Applications/System
171 Requires: spice-glib = %{version}-%{release}
172 Requires: polkit >= 0.96
174 %description -n spice-glib-usb
175 USB redirection ACL helper for SPICE Client GLib library.
177 %description -n spice-glib-usb -l pl.UTF-8
178 Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej
181 %package -n spice-gtk2
182 Summary: SPICE Client GTK 2.0 library
183 Summary(pl.UTF-8): Biblioteka kliencka SPICE GTK 2.0
185 Requires: gtk+2 >= 2:2.18.0
186 Requires: spice-glib = %{version}-%{release}
188 %description -n spice-gtk2
189 SPICE Client GTK 2.0 library.
191 %description -n spice-gtk2 -l pl.UTF-8
192 Biblioteka kliencka SPICE GTK 2.0.
194 %package -n spice-gtk2-devel
195 Summary: Header files for SPICE Client GTK 2.0 library
196 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GTK 2.0
197 Group: X11/Development/Libraries
198 Requires: gtk+2-devel >= 2:2.18.0
199 Requires: spice-glib-devel = %{version}-%{release}
201 %description -n spice-gtk2-devel
202 Header files for SPICE Client GTK 2.0 library.
204 %description -n spice-gtk2-devel -l pl.UTF-8
205 Pliki nagłówkowe biblioteki klienckiej SPICE GTK 2.0.
207 %package -n spice-gtk2-static
208 Summary: SPICE Client GTK 2.0 static library
209 Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GTK 2.0
210 Group: X11/Development/Libraries
211 Requires: spice-gtk2-devel = %{version}-%{release}
213 %description -n spice-gtk2-static
214 SPICE Client GTK 2.0 static library.
216 %description -n spice-gtk2-static -l pl.UTF-8
217 Statyczna biblioteka kliencka SPICE GTK 2.0.
219 %package -n python-spice-gtk
220 Summary: Python interface to SPICE client GTK library
221 Summary(pl.UTF-8): Pythonowy interfejs do biblioteki klienckiej SPICE GTK
222 Group: Libraries/Python
223 Requires: spice-gtk2 = %{version}-%{release}
225 %description -n python-spice-gtk
226 Python interface to SPICE client GTK library.
228 %description -n python-spice-gtk -l pl.UTF-8
229 Pythonowy interfejs do biblioteki klienckiej SPICE GTK.
231 %package -n vala-spice-protocol
232 Summary: Vala API for SPICE client library
233 Summary(pl.UTF-8): Interfejs języka Vala do biblioteki klienckiej SPICE
234 Group: Development/Libraries
235 Requires: spice-protocol >= 0.10.1
236 Requires: vala >= 2:0.14
238 %description -n vala-spice-protocol
239 Vala API for SPICE client library.
241 %description -n vala-spice-protocol -l pl.UTF-8
242 Interfejs języka Vala do biblioteki klienckiej SPICE.
249 mkdir %{?with_gtk2:gtk2} %{?with_gtk3:gtk3}
263 --disable-silent-rules \
264 %{!?with_smartcard:--disable-smartcard} \
265 %{?with_static_libs:--enable-static} \
266 %{!?with_usbredir:--disable-usbredir} \
268 --with-html-dir=%{_gtkdocdir}
278 --disable-silent-rules \
279 %{!?with_smartcard:--disable-smartcard} \
280 %{?with_static_libs:--enable-static} \
281 %{!?with_usbredir:--disable-usbredir} \
283 --with-html-dir=%{_gtkdocdir}
288 rm -rf $RPM_BUILD_ROOT
290 # gtk2 first, so executables will use gtk3 libs
292 %{__make} -C gtk2 install -j1 \
293 DESTDIR=$RPM_BUILD_ROOT
297 %{__make} -C gtk3 install -j1 \
298 DESTDIR=$RPM_BUILD_ROOT
301 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/SpiceClientGtk.la
302 %if %{with static_libs}
303 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/SpiceClientGtk.a
305 # obsoleted by pkg-config
306 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
311 rm -rf $RPM_BUILD_ROOT
313 %post -p /sbin/ldconfig
314 %postun -p /sbin/ldconfig
316 %post -n spice-glib -p /sbin/ldconfig
317 %postun -n spice-glib -p /sbin/ldconfig
319 %post -n spice-gtk2 -p /sbin/ldconfig
320 %postun -n spice-gtk2 -p /sbin/ldconfig
323 %files -f %{name}.lang
324 %defattr(644,root,root,755)
325 %doc AUTHORS NEWS README THANKS TODO
326 %attr(755,root,root) %{_bindir}/spicy
327 %attr(755,root,root) %{_bindir}/spicy-screenshot
328 %attr(755,root,root) %{_bindir}/spicy-stats
329 %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so.*.*.*
330 %attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-3.0.so.4
331 %{_libdir}/girepository-1.0/SpiceClientGtk-3.0.typelib
332 %{_mandir}/man1/spice-client.1*
335 %defattr(644,root,root,755)
336 %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so
337 %{_includedir}/spice-client-gtk-3.0
338 %{_pkgconfigdir}/spice-client-gtk-3.0.pc
339 %{_datadir}/gir-1.0/SpiceClientGtk-3.0.gir
341 %if %{with static_libs}
343 %defattr(644,root,root,755)
344 %{_libdir}/libspice-client-gtk-3.0.a
348 %defattr(644,root,root,755)
349 %{_gtkdocdir}/spice-gtk
353 %defattr(644,root,root,755)
354 %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so.*.*.*
355 %attr(755,root,root) %ghost %{_libdir}/libspice-client-glib-2.0.so.8
356 %attr(755,root,root) %{_libdir}/libspice-controller.so.*.*.*
357 %attr(755,root,root) %ghost %{_libdir}/libspice-controller.so.0
358 %{_libdir}/girepository-1.0/SpiceClientGLib-2.0.typelib
360 %files -n spice-glib-devel
361 %defattr(644,root,root,755)
362 %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so
363 %attr(755,root,root) %{_libdir}/libspice-controller.so
364 %{_includedir}/spice-client-glib-2.0
365 %{_includedir}/spice-controller
366 %{_pkgconfigdir}/spice-client-glib-2.0.pc
367 %{_pkgconfigdir}/spice-controller.pc
368 %{_datadir}/gir-1.0/SpiceClientGLib-2.0.gir
370 %if %{with static_libs}
371 %files -n spice-glib-static
372 %defattr(644,root,root,755)
373 %{_libdir}/libspice-client-glib-2.0.a
374 %{_libdir}/libspice-controller.a
378 %files -n spice-glib-usb
379 %defattr(644,root,root,755)
380 %attr(755,root,root) %{_bindir}/spice-client-glib-usb-acl-helper
381 %{_datadir}/polkit-1/actions/org.spice-space.lowlevelusbaccess.policy
386 %defattr(644,root,root,755)
387 %attr(755,root,root) %{_libdir}/libspice-client-gtk-2.0.so.*.*.*
388 %attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-2.0.so.4
389 %{_libdir}/girepository-1.0/SpiceClientGtk-2.0.typelib
391 %files -n spice-gtk2-devel
392 %defattr(644,root,root,755)
393 %attr(755,root,root) %{_libdir}/libspice-client-gtk-2.0.so
394 %{_includedir}/spice-client-gtk-2.0
395 %{_pkgconfigdir}/spice-client-gtk-2.0.pc
396 %{_datadir}/gir-1.0/SpiceClientGtk-2.0.gir
398 %if %{with static_libs}
399 %files -n spice-gtk2-static
400 %defattr(644,root,root,755)
401 %{_libdir}/libspice-client-gtk-2.0.a
404 %files -n python-spice-gtk
405 %defattr(644,root,root,755)
406 %attr(755,root,root) %{py_sitedir}/SpiceClientGtk.so
409 %files -n vala-spice-protocol
410 %defattr(644,root,root,755)
411 %{_datadir}/vala/vapi/spice-protocol.vapi