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: 97ed79c9df1ad0997e605c22a7ce47c7
17 Patch0: %{name}-sh.patch
18 Patch1: %{name}-builddir.patch
19 URL: http://spice-space.org/
20 BuildRequires: autoconf >= 2.57
21 BuildRequires: automake >= 1.6
22 BuildRequires: cairo-devel >= 1.2.0
23 BuildRequires: celt051-devel >= 0.5.1.1
24 BuildRequires: cyrus-sasl-devel >= 2.0
25 BuildRequires: gcc >= 5:3.0
26 BuildRequires: gettext-devel >= 0.17
27 BuildRequires: gobject-introspection-devel >= 0.9.4
28 BuildRequires: glib2-devel >= 1:2.22
29 BuildRequires: gtk-doc >= 1.14
30 %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.18.0}
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: sed >= 4.0
44 BuildRequires: spice-protocol >= 0.10.1
45 BuildRequires: xorg-lib-libX11-devel
46 BuildRequires: xorg-lib-libXrandr-devel
47 BuildRequires: zlib-devel
49 BuildRequires: gtk+2-devel >= 2:2.18.0
50 BuildRequires: python-devel >= 2.0
51 BuildRequires: python-pygtk-devel >= 2:2.0.0
54 BuildRequires: acl-devel
55 BuildRequires: libusb-devel >= 1.0.9
56 BuildRequires: polkit-devel >= 0.96
57 BuildRequires: udev-glib-devel
58 BuildRequires: usbredir-devel >= 0.4.2
60 %{?with_smartcard:Requires: libcacard >= 0.1.2}
61 Requires: spice-glib = %{version}-%{release}
62 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
65 A GTK+ client and libraries for SPICE remote desktop servers.
67 %description -l pl.UTF-8
68 Klient i biblioteki GTK+ dla serwerów zdalnych pulpitów SPICE.
71 Summary: Header files for SPICE GTK 3.0 client library
72 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0
73 Group: X11/Development/Libraries
74 Requires: %{name} = %{version}-%{release}
75 Requires: spice-glib-devel = %{version}-%{release}
76 Requires: gtk+3-devel >= 3.0
79 Header files for SPICE GTK 3.0 client library.
81 %description devel -l pl.UTF-8
82 Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0.
85 Summary: Static SPICE GTK 3.0 client library
86 Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GTK 3.0
87 Group: X11/Development/Libraries
88 Requires: %{name}-devel = %{version}-%{release}
91 Static SPICE GTK 3.0 client library.
93 %description static -l pl.UTF-8
94 Statyczna biblioteka kliencka SPICE GTK 3.0.
97 Summary: SPICE GTK API documentation
98 Summary(pl.UTF-8): Dokumentacja API bibliotek SPICE GTK
102 API documentation for SPICE GTK libraries.
104 %description apidocs -l pl.UTF-8
105 Dokumentacja API bibliotek SPICE GTK.
107 %package -n spice-glib
108 Summary: SPICE Client GLib library
109 Summary(pl.UTF-8): Biblioteka kliencka SPICE GLib
111 Requires: celt051 >= 0.5.1.1
112 Requires: glib2 >= 1:2.22
113 %{?with_smartcard:Requires: libcacard >= 0.1.2}
114 Requires: pixman >= 0.17.7
116 Requires: libusb >= 1.0.9
117 Requires: usbredir >= 0.4.2
120 %description -n spice-glib
121 SPICE Client GLib library.
123 %description -n spice-glib -l pl.UTF-8
124 Biblioteka kliencka SPICE GLib.
126 %package -n spice-glib-devel
127 Summary: Header files for SPICE Client GLib library
128 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GLib
129 Group: Development/Libraries
130 Requires: celt051-devel >= 0.5.1.1
131 Requires: cyrus-sasl-devel >= 2.0
132 Requires: glib2-devel >= 1:2.22
133 %{?with_smartcard:Requires: libcacard-devel >= 0.1.2}
134 Requires: libjpeg-devel
135 Requires: openssl-devel
136 Requires: pixman-devel >= 0.17.7
137 Requires: pulseaudio-devel
138 Requires: spice-glib = %{version}-%{release}
139 Requires: spice-protocol >= 0.10.1
141 Requires: libusb-devel >= 1.0.9
142 Requires: udev-glib-devel
143 Requires: usbredir-devel >= 0.4.2
146 %description -n spice-glib-devel
147 Header files for SPICE Client GLib library.
149 %description -n spice-glib-devel -l pl.UTF-8
150 Pliki nagłówkowe biblioteki klienckiej SPICE GLib.
152 %package -n spice-glib-static
153 Summary: SPICE Client GLib static library
154 Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GLib
155 Group: Development/Libraries
156 Requires: spice-glib-devel = %{version}-%{release}
158 %description -n spice-glib-static
159 SPICE Client GLib static library.
161 %description -n spice-glib-static -l pl.UTF-8
162 Statyczna biblioteka kliencka SPICE GLib.
164 %package -n spice-glib-usb
165 Summary: USB redirection ACL helper for SPICE Client GLib library
166 Summary(pl.UTF-8): Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej SPICE GLib
167 Group: Applications/System
168 Requires: spice-glib = %{version}-%{release}
169 Requires: polkit >= 0.96
171 %description -n spice-glib-usb
172 USB redirection ACL helper for SPICE Client GLib library.
174 %description -n spice-glib-usb -l pl.UTF-8
175 Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej
178 %package -n spice-gtk2
179 Summary: SPICE Client GTK 2.0 library
180 Summary(pl.UTF-8): Biblioteka kliencka SPICE GTK 2.0
182 Requires: gtk+2 >= 2:2.18.0
183 Requires: spice-glib = %{version}-%{release}
185 %description -n spice-gtk2
186 SPICE Client GTK 2.0 library.
188 %description -n spice-gtk2 -l pl.UTF-8
189 Biblioteka kliencka SPICE GTK 2.0.
191 %package -n spice-gtk2-devel
192 Summary: Header files for SPICE Client GTK 2.0 library
193 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GTK 2.0
194 Group: X11/Development/Libraries
195 Requires: gtk+2-devel >= 2:2.18.0
196 Requires: spice-glib-devel = %{version}-%{release}
198 %description -n spice-gtk2-devel
199 Header files for SPICE Client GTK 2.0 library.
201 %description -n spice-gtk2-devel -l pl.UTF-8
202 Pliki nagłówkowe biblioteki klienckiej SPICE GTK 2.0.
204 %package -n spice-gtk2-static
205 Summary: SPICE Client GTK 2.0 static library
206 Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GTK 2.0
207 Group: X11/Development/Libraries
208 Requires: spice-gtk2-devel = %{version}-%{release}
210 %description -n spice-gtk2-static
211 SPICE Client GTK 2.0 static library.
213 %description -n spice-gtk2-static -l pl.UTF-8
214 Statyczna biblioteka kliencka SPICE GTK 2.0.
216 %package -n python-spice-gtk
217 Summary: Python interface to SPICE client GTK library
218 Summary(pl.UTF-8): Pythonowy interfejs do biblioteki klienckiej SPICE GTK
219 Group: Libraries/Python
220 Requires: spice-gtk2 = %{version}-%{release}
222 %description -n python-spice-gtk
223 Python interface to SPICE client GTK library.
225 %description -n python-spice-gtk -l pl.UTF-8
226 Pythonowy interfejs do biblioteki klienckiej SPICE GTK.
228 %package -n vala-spice-protocol
229 Summary: Vala API for SPICE client library
230 Summary(pl.UTF-8): Interfejs języka Vala do biblioteki klienckiej SPICE
231 Group: Development/Libraries
232 Requires: spice-protocol >= 0.10.1
233 Requires: vala >= 0.14
235 %description -n vala-spice-protocol
236 Vala API for SPICE client library.
238 %description -n vala-spice-protocol -l pl.UTF-8
239 Interfejs języka Vala do biblioteki klienckiej SPICE.
246 # kill am portability warning (there is -Werror)
247 sed -i -e '/AC_PROG_LIBTOOL/aAM_PROG_AR' configure.ac
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}/snappy
320 %attr(755,root,root) %{_bindir}/spicy
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