1 Summary: A GTK+ client and libraries for SPICE remote desktop servers
2 Summary(pl.UTF-8): Klient i biblioteki GTK+ dla serwerów zdalnych pulpitów SPICE
7 Group: X11/Applications
8 Source0: http://spice-space.org/download/gtk/%{name}-%{version}.tar.bz2
9 # Source0-md5: a47ca51ef4bb27cab35ddbfb9e6c0fff
10 Patch0: %{name}-sh.patch
11 URL: http://spice-space.org/
12 BuildRequires: autoconf >= 2.57
13 BuildRequires: automake
14 BuildRequires: cairo-devel >= 1.2.0
15 BuildRequires: celt051-devel >= 0.5.1.1
16 BuildRequires: cyrus-sasl-devel >= 2.0
17 BuildRequires: gettext-devel >= 0.17
18 BuildRequires: gobject-introspection-devel >= 0.9.4
19 BuildRequires: glib2-devel >= 1:2.22
20 BuildRequires: gtk-doc >= 1.14
21 BuildRequires: gtk+2-devel >= 2:2.18.0
22 BuildRequires: gtk+3-devel >= 3.0
23 BuildRequires: intltool >= 0.40.0
24 BuildRequires: libcacard-devel >= 0.1.2
25 BuildRequires: libjpeg-devel
26 BuildRequires: libstdc++-devel
27 BuildRequires: libtool >= 2:2.0
28 BuildRequires: openssl-devel
29 BuildRequires: perl-Text-CSV
30 BuildRequires: perl-base >= 1:5.8.1
31 BuildRequires: pixman-devel >= 0.17.7
32 BuildRequires: pkgconfig
33 BuildRequires: pulseaudio-devel
34 BuildRequires: python-devel >= 2.0
35 BuildRequires: python-pygtk-devel >= 2:2.0.0
36 BuildRequires: spice-protocol >= 0.8.1
37 BuildRequires: xorg-lib-libXrandr-devel
38 BuildRequires: zlib-devel
39 Requires: libcacard >= 0.1.2
40 Requires: spice-glib = %{version}-%{release}
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 A GTK+ client and libraries for SPICE remote desktop servers.
46 %description -l pl.UTF-8
47 Klient i biblioteki GTK+ dla serwerów zdalnych pulpitów SPICE.
50 Summary: Header files for SPICE GTK 3.0 client library
51 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0
52 Group: X11/Development/Libraries
53 Requires: spice-glib-devel = %{version}-%{release}
54 Requires: gtk+3-devel >= 3.0
57 Header files for SPICE GTK 3.0 client library.
59 %description devel -l pl.UTF-8
60 Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0.
63 Summary: Static SPICE GTK 3.0 client library
64 Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GTK 3.0
65 Group: X11/Development/Libraries
66 Requires: %{name}-devel = %{version}-%{release}
69 Static SPICE GTK 3.0 client library.
71 %description static -l pl.UTF-8
72 Statyczna biblioteka kliencka SPICE GTK 3.0.
75 Summary: SPICE GTK API documentation
76 Summary(pl.UTF-8): Dokumentacja API bibliotek SPICE GTK
80 API documentation for SPICE GTK libraries.
82 %description apidocs -l pl.UTF-8
83 Dokumentacja API bibliotek SPICE GTK.
85 %package -n spice-glib
86 Summary: SPICE Client GLib library
87 Summary(pl.UTF-8): Biblioteka kliencka SPICE GLib
89 Requires: celt051 >= 0.5.1.1
90 Requires: glib2 >= 1:2.22
91 Requires: pixman >= 0.17.7
93 %description -n spice-glib
94 SPICE Client GLib library.
96 %description -n spice-glib -l pl.UTF-8
97 Biblioteka kliencka SPICE GLib.
99 %package -n spice-glib-devel
100 Summary: Header files for SPICE Client GLib library
101 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GLib
102 Group: Development/Libraries
103 Requires: celt051-devel >= 0.5.1.1
104 Requires: glib2-devel >= 1:2.22
105 Requires: openssl-devel
106 Requires: pixman-devel >= 0.17.7
107 Requires: spice-glib = %{version}-%{release}
108 Requires: spice-protocol >= 0.8.1
110 %description -n spice-glib-devel
111 Header files for SPICE Client GLib library.
113 %description -n spice-glib-devel -l pl.UTF-8
114 Pliki nagłówkowe biblioteki klienckiej SPICE GLib.
116 %package -n spice-glib-static
117 Summary: SPICE Client GLib static library
118 Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GLib
119 Group: Development/Libraries
120 Requires: spice-glib-devel = %{version}-%{release}
122 %description -n spice-glib-static
123 SPICE Client GLib static library.
125 %description -n spice-glib-static -l pl.UTF-8
126 Statyczna biblioteka kliencka SPICE GLib.
128 %package -n spice-gtk2
129 Summary: SPICE Client GTK 2.0 library
130 Summary(pl.UTF-8): Biblioteka kliencka SPICE GTK 2.0
132 Requires: gtk+2 >= 2:2.18.0
133 Requires: spice-glib = %{version}-%{release}
135 %description -n spice-gtk2
136 SPICE Client GTK 2.0 library.
138 %description -n spice-gtk2 -l pl.UTF-8
139 Biblioteka kliencka SPICE GTK 2.0.
141 %package -n spice-gtk2-devel
142 Summary: Header files for SPICE Client GTK 2.0 library
143 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GTK 2.0
144 Group: X11/Development/Libraries
145 Requires: gtk+2-devel >= 2:2.18.0
146 Requires: spice-glib-devel = %{version}-%{release}
148 %description -n spice-gtk2-devel
149 Header files for SPICE Client GTK 2.0 library.
151 %description -n spice-gtk2-devel -l pl.UTF-8
152 Pliki nagłówkowe biblioteki klienckiej SPICE GTK 2.0.
154 %package -n spice-gtk2-static
155 Summary: SPICE Client GTK 2.0 static library
156 Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GTK 2.0
157 Group: X11/Development/Libraries
158 Requires: spice-gtk2-devel = %{version}-%{release}
160 %description -n spice-gtk2-static
161 SPICE Client GTK 2.0 static library.
163 %description -n spice-gtk2-static -l pl.UTF-8
164 Statyczna biblioteka kliencka SPICE GTK 2.0.
166 %package -n python-spice-gtk
167 Summary: Python interface to SPICE client GTK library
168 Summary(pl.UTF-8): Pythonowy interfejs do biblioteki klienckiej SPICE GTK
169 Group: Libraries/Python
170 Requires: spice-gtk2 = %{version}-%{release}
172 %description -n python-spice-gtk
173 Python interface to SPICE client GTK library.
175 %description -n python-spice-gtk -l pl.UTF-8
176 Pythonowy interfejs do biblioteki klienckiej SPICE GTK.
178 %package -n vala-spice-protocol
179 Summary: Vala API for SPICE client library
180 Summary(pl.UTF-8): Interfejs języka Vala do biblioteki klienckiej SPICE
181 Group: Development/Libraries
182 Requires: spice-protocol >= 0.8.1
183 Requires: vala >= 0.11.7
185 %description -n vala-spice-protocol
186 Vala API for SPICE client library.
188 %description -n vala-spice-protocol -l pl.UTF-8
189 Interfejs języka Vala do biblioteki klienckiej SPICE.
208 --disable-silent-rules \
210 --with-html-dir=%{_gtkdocdir}
215 --disable-silent-rules \
217 --with-html-dir=%{_gtkdocdir}
221 rm -rf $RPM_BUILD_ROOT
223 # gtk2 first, so executables will use gtk3 libs
224 %{__make} -C gtk2 install \
225 DESTDIR=$RPM_BUILD_ROOT
227 %{__make} -C gtk3 install \
228 DESTDIR=$RPM_BUILD_ROOT
230 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/SpiceClientGtk.{la,a}
231 # obsoleted by pkg-config
232 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
237 rm -rf $RPM_BUILD_ROOT
239 %post -p /sbin/ldconfig
240 %postun -p /sbin/ldconfig
242 %post -n spice-glib -p /sbin/ldconfig
243 %postun -n spice-glib -p /sbin/ldconfig
245 %post -n spice-gtk2 -p /sbin/ldconfig
246 %postun -n spice-gtk2 -p /sbin/ldconfig
248 %files -f %{name}.lang
249 %defattr(644,root,root,755)
250 %doc AUTHORS NEWS README THANKS TODO
251 %attr(755,root,root) %{_bindir}/snappy
252 %attr(755,root,root) %{_bindir}/spicy
253 %attr(755,root,root) %{_bindir}/spicy-stats
254 %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so.*.*.*
255 %attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-3.0.so.1
256 %{_libdir}/girepository-1.0/SpiceClientGtk-3.0.typelib
259 %defattr(644,root,root,755)
260 %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so
261 %{_includedir}/spice-client-gtk-3.0
262 %{_pkgconfigdir}/spice-client-gtk-3.0.pc
263 %{_datadir}/gir-1.0/SpiceClientGtk-3.0.gir
266 %defattr(644,root,root,755)
267 %{_libdir}/libspice-client-gtk-3.0.a
270 %defattr(644,root,root,755)
271 %{_gtkdocdir}/spice-gtk
274 %defattr(644,root,root,755)
275 %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so.*.*.*
276 %attr(755,root,root) %ghost %{_libdir}/libspice-client-glib-2.0.so.4
277 %attr(755,root,root) %{_libdir}/libspice-controller.so.*.*.*
278 %attr(755,root,root) %ghost %{_libdir}/libspice-controller.so.0
279 %{_libdir}/girepository-1.0/SpiceClientGLib-2.0.typelib
281 %files -n spice-glib-devel
282 %defattr(644,root,root,755)
283 %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so
284 %attr(755,root,root) %{_libdir}/libspice-controller.so
285 %{_includedir}/spice-client-glib-2.0
286 %{_includedir}/spice-controller
287 %{_pkgconfigdir}/spice-client-glib-2.0.pc
288 %{_pkgconfigdir}/spice-controller.pc
289 %{_datadir}/gir-1.0/SpiceClientGLib-2.0.gir
291 %files -n spice-glib-static
292 %defattr(644,root,root,755)
293 %{_libdir}/libspice-client-glib-2.0.a
294 %{_libdir}/libspice-controller.a
297 %defattr(644,root,root,755)
298 %attr(755,root,root) %{_libdir}/libspice-client-gtk-2.0.so.*.*.*
299 %attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-2.0.so.1
300 %{_libdir}/girepository-1.0/SpiceClientGtk-2.0.typelib
302 %files -n spice-gtk2-devel
303 %defattr(644,root,root,755)
304 %attr(755,root,root) %{_libdir}/libspice-client-gtk-2.0.so
305 %{_includedir}/spice-client-gtk-2.0
306 %{_pkgconfigdir}/spice-client-gtk-2.0.pc
307 %{_datadir}/gir-1.0/SpiceClientGtk-2.0.gir
309 %files -n spice-gtk2-static
310 %defattr(644,root,root,755)
311 %{_libdir}/libspice-client-gtk-2.0.a
313 %files -n python-spice-gtk
314 %defattr(644,root,root,755)
315 %attr(755,root,root) %{py_sitedir}/SpiceClientGtk.so
317 %files -n vala-spice-protocol
318 %defattr(644,root,root,755)
319 %{_datadir}/vala/vapi/spice-protocol.vapi