]> git.pld-linux.org Git - packages/spice-gtk.git/blame - spice-gtk.spec
- updated to 0.31
[packages/spice-gtk.git] / spice-gtk.spec
CommitLineData
62e09e7e
JB
1#
2# Conditional build:
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
6cda7c5a 7%bcond_without static_libs # static libraries
7bfc8f3c 8
887be46e
JB
9Summary: A GTK+ client and libraries for SPICE remote desktop servers
10Summary(pl.UTF-8): Klient i biblioteki GTK+ dla serwerów zdalnych pulpitów SPICE
11Name: spice-gtk
ece362d5
JB
12Version: 0.31
13Release: 1
887be46e
JB
14License: LGPL v2.1+
15Group: X11/Applications
7471ac15 16Source0: http://www.spice-space.org/download/gtk/%{name}-%{version}.tar.bz2
ece362d5 17# Source0-md5: 1ef438eabc19b0f339d746a93cab4f56
0d3aaeec
JB
18Patch0: %{name}-builddir.patch
19Patch1: %{name}-am.patch
887be46e 20URL: http://spice-space.org/
fc53070c
JB
21BuildRequires: autoconf >= 2.63
22BuildRequires: automake >= 1:1.11
887be46e
JB
23BuildRequires: cairo-devel >= 1.2.0
24BuildRequires: celt051-devel >= 0.5.1.1
25BuildRequires: cyrus-sasl-devel >= 2.0
2715df15 26BuildRequires: gcc >= 5:3.0
dbdf4160 27BuildRequires: gettext-tools >= 0.17
e6cbe985 28BuildRequires: glib2-devel >= 1:2.44
7bfc8f3c 29BuildRequires: gobject-introspection-devel >= 0.9.4
ece362d5
JB
30BuildRequires: gstreamer-devel >= 1.0
31BuildRequires: gstreamer-plugins-base-devel >= 1.0
35affeb9 32%{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.18.0}
62e09e7e 33%{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0}
7bfc8f3c 34BuildRequires: gtk-doc >= 1.14
887be46e 35BuildRequires: intltool >= 0.40.0
62e09e7e 36%{?with_smartcard:BuildRequires: libcacard-devel >= 0.1.2}
ece362d5 37BuildRequires: libepoxy-devel
887be46e 38BuildRequires: libjpeg-devel
f6dbd78a 39BuildRequires: libsoup-devel >= 2.50
887be46e
JB
40BuildRequires: libstdc++-devel
41BuildRequires: libtool >= 2:2.0
6cda7c5a 42BuildRequires: lz4-devel
887be46e 43BuildRequires: openssl-devel
8cdeb0fc 44BuildRequires: opus-devel >= 0.9.14
887be46e
JB
45BuildRequires: perl-Text-CSV
46BuildRequires: perl-base >= 1:5.8.1
e6cbe985 47BuildRequires: phodav-devel >= 2.0
887be46e
JB
48BuildRequires: pixman-devel >= 0.17.7
49BuildRequires: pkgconfig
50BuildRequires: pulseaudio-devel
ece362d5
JB
51BuildRequires: python >= 2
52BuildRequires: python-pyparsing
53BuildRequires: python-six
35affeb9 54BuildRequires: sed >= 4.0
ece362d5 55BuildRequires: spice-protocol >= 0.12.11
62e09e7e 56BuildRequires: xorg-lib-libX11-devel
887be46e
JB
57BuildRequires: xorg-lib-libXrandr-devel
58BuildRequires: zlib-devel
62e09e7e
JB
59%if %{with gtk2}
60BuildRequires: gtk+2-devel >= 2:2.18.0
61BuildRequires: python-devel >= 2.0
62BuildRequires: python-pygtk-devel >= 2:2.0.0
63%endif
64%if %{with usbredir}
65BuildRequires: acl-devel
178a4f62 66BuildRequires: libusb-devel >= 1.0.16
61cee34f 67BuildRequires: polkit-devel >= 0.96
f09efb9b 68BuildRequires: usbredir-devel >= 0.5.2
62e09e7e
JB
69%endif
70%{?with_smartcard:Requires: libcacard >= 0.1.2}
12078fdb 71Requires: spice-glib = %{version}-%{release}
887be46e
JB
72BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
73
74%description
75A GTK+ client and libraries for SPICE remote desktop servers.
76
77%description -l pl.UTF-8
78Klient i biblioteki GTK+ dla serwerów zdalnych pulpitów SPICE.
79
80%package devel
12078fdb
JB
81Summary: Header files for SPICE GTK 3.0 client library
82Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0
83Group: X11/Development/Libraries
f4803be1 84Requires: %{name} = %{version}-%{release}
12078fdb 85Requires: gtk+3-devel >= 3.0
7bfc8f3c 86Requires: spice-glib-devel = %{version}-%{release}
887be46e
JB
87
88%description devel
12078fdb 89Header files for SPICE GTK 3.0 client library.
887be46e
JB
90
91%description devel -l pl.UTF-8
12078fdb 92Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0.
887be46e
JB
93
94%package static
12078fdb
JB
95Summary: Static SPICE GTK 3.0 client library
96Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GTK 3.0
97Group: X11/Development/Libraries
887be46e
JB
98Requires: %{name}-devel = %{version}-%{release}
99
100%description static
12078fdb 101Static SPICE GTK 3.0 client library.
887be46e
JB
102
103%description static -l pl.UTF-8
12078fdb 104Statyczna biblioteka kliencka SPICE GTK 3.0.
887be46e
JB
105
106%package apidocs
107Summary: SPICE GTK API documentation
12078fdb 108Summary(pl.UTF-8): Dokumentacja API bibliotek SPICE GTK
887be46e
JB
109Group: Documentation
110
111%description apidocs
12078fdb 112API documentation for SPICE GTK libraries.
887be46e
JB
113
114%description apidocs -l pl.UTF-8
12078fdb
JB
115Dokumentacja API bibliotek SPICE GTK.
116
117%package -n spice-glib
118Summary: SPICE Client GLib library
119Summary(pl.UTF-8): Biblioteka kliencka SPICE GLib
120Group: Libraries
121Requires: celt051 >= 0.5.1.1
f6dbd78a 122Requires: glib2 >= 1:2.44
62e09e7e 123%{?with_smartcard:Requires: libcacard >= 0.1.2}
f6dbd78a 124Requires: libsoup >= 2.50
8cdeb0fc 125Requires: opus >= 0.9.14
12078fdb 126Requires: pixman >= 0.17.7
62e09e7e 127%if %{with usbredir}
178a4f62 128Requires: libusb >= 1.0.16
f09efb9b 129Requires: usbredir >= 0.5.2
62e09e7e 130%endif
12078fdb
JB
131
132%description -n spice-glib
133SPICE Client GLib library.
134
135%description -n spice-glib -l pl.UTF-8
136Biblioteka kliencka SPICE GLib.
137
138%package -n spice-glib-devel
139Summary: Header files for SPICE Client GLib library
140Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GLib
141Group: Development/Libraries
142Requires: celt051-devel >= 0.5.1.1
62e09e7e 143Requires: cyrus-sasl-devel >= 2.0
f6dbd78a 144Requires: glib2-devel >= 1:2.44
62e09e7e
JB
145%{?with_smartcard:Requires: libcacard-devel >= 0.1.2}
146Requires: libjpeg-devel
12078fdb
JB
147Requires: openssl-devel
148Requires: pixman-devel >= 0.17.7
62e09e7e 149Requires: pulseaudio-devel
12078fdb 150Requires: spice-glib = %{version}-%{release}
ece362d5 151Requires: spice-protocol >= 0.12.11
62e09e7e 152%if %{with usbredir}
178a4f62 153Requires: libusb-devel >= 1.0.16
f09efb9b 154Requires: usbredir-devel >= 0.5.2
62e09e7e 155%endif
12078fdb
JB
156
157%description -n spice-glib-devel
158Header files for SPICE Client GLib library.
159
160%description -n spice-glib-devel -l pl.UTF-8
161Pliki nagłówkowe biblioteki klienckiej SPICE GLib.
162
163%package -n spice-glib-static
164Summary: SPICE Client GLib static library
165Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GLib
166Group: Development/Libraries
167Requires: spice-glib-devel = %{version}-%{release}
168
169%description -n spice-glib-static
170SPICE Client GLib static library.
171
172%description -n spice-glib-static -l pl.UTF-8
173Statyczna biblioteka kliencka SPICE GLib.
174
62e09e7e
JB
175%package -n spice-glib-usb
176Summary: USB redirection ACL helper for SPICE Client GLib library
177Summary(pl.UTF-8): Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej SPICE GLib
178Group: Applications/System
61cee34f 179Requires: polkit >= 0.96
7bfc8f3c 180Requires: spice-glib = %{version}-%{release}
62e09e7e
JB
181
182%description -n spice-glib-usb
183USB redirection ACL helper for SPICE Client GLib library.
184
185%description -n spice-glib-usb -l pl.UTF-8
186Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej
187SPICE GLib.
188
12078fdb
JB
189%package -n spice-gtk2
190Summary: SPICE Client GTK 2.0 library
191Summary(pl.UTF-8): Biblioteka kliencka SPICE GTK 2.0
192Group: X11/Libraries
193Requires: gtk+2 >= 2:2.18.0
194Requires: spice-glib = %{version}-%{release}
195
196%description -n spice-gtk2
197SPICE Client GTK 2.0 library.
198
199%description -n spice-gtk2 -l pl.UTF-8
200Biblioteka kliencka SPICE GTK 2.0.
201
202%package -n spice-gtk2-devel
203Summary: Header files for SPICE Client GTK 2.0 library
204Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GTK 2.0
205Group: X11/Development/Libraries
206Requires: gtk+2-devel >= 2:2.18.0
207Requires: spice-glib-devel = %{version}-%{release}
208
209%description -n spice-gtk2-devel
210Header files for SPICE Client GTK 2.0 library.
211
212%description -n spice-gtk2-devel -l pl.UTF-8
213Pliki nagłówkowe biblioteki klienckiej SPICE GTK 2.0.
214
215%package -n spice-gtk2-static
216Summary: SPICE Client GTK 2.0 static library
217Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GTK 2.0
218Group: X11/Development/Libraries
219Requires: spice-gtk2-devel = %{version}-%{release}
220
221%description -n spice-gtk2-static
222SPICE Client GTK 2.0 static library.
223
224%description -n spice-gtk2-static -l pl.UTF-8
225Statyczna biblioteka kliencka SPICE GTK 2.0.
887be46e
JB
226
227%package -n python-spice-gtk
228Summary: Python interface to SPICE client GTK library
229Summary(pl.UTF-8): Pythonowy interfejs do biblioteki klienckiej SPICE GTK
230Group: Libraries/Python
12078fdb 231Requires: spice-gtk2 = %{version}-%{release}
887be46e
JB
232
233%description -n python-spice-gtk
234Python interface to SPICE client GTK library.
235
236%description -n python-spice-gtk -l pl.UTF-8
237Pythonowy interfejs do biblioteki klienckiej SPICE GTK.
238
12078fdb
JB
239%package -n vala-spice-protocol
240Summary: Vala API for SPICE client library
241Summary(pl.UTF-8): Interfejs języka Vala do biblioteki klienckiej SPICE
887be46e 242Group: Development/Libraries
ece362d5 243Requires: spice-protocol >= 0.12.11
178a4f62 244Requires: vala >= 2:0.14
7bfc8f3c
ER
245%if "%{_rpmversion}" >= "5"
246BuildArch: noarch
247%endif
887be46e 248
12078fdb
JB
249%description -n vala-spice-protocol
250Vala API for SPICE client library.
887be46e 251
12078fdb
JB
252%description -n vala-spice-protocol -l pl.UTF-8
253Interfejs języka Vala do biblioteki klienckiej SPICE.
887be46e
JB
254
255%prep
256%setup -q
257%patch0 -p1
62e09e7e 258%patch1 -p1
12078fdb 259
62e09e7e 260mkdir %{?with_gtk2:gtk2} %{?with_gtk3:gtk3}
887be46e
JB
261
262%build
887be46e
JB
263%{__intltoolize}
264%{__libtoolize}
265%{__aclocal} -I m4
266%{__autoconf}
267%{__autoheader}
268%{__automake}
fc53070c
JB
269cd spice-common
270%{__aclocal} -I m4
271%{__autoconf}
272%{__autoheader}
273%{__automake}
274cd ..
12078fdb 275
62e09e7e 276%if %{with gtk2}
12078fdb
JB
277cd gtk2
278../%configure \
6cda7c5a 279 --enable-lz4 \
887be46e 280 --disable-silent-rules \
62e09e7e 281 %{!?with_smartcard:--disable-smartcard} \
6cda7c5a 282 %{?with_static_libs:--enable-static} \
62e09e7e 283 %{!?with_usbredir:--disable-usbredir} \
12078fdb 284 --with-gtk=2.0 \
fc53070c
JB
285 --with-html-dir=%{_gtkdocdir} \
286 --with-pnp-ids-path=/lib/hwdata/pnp.ids \
287 --with-usb-ids-path=/lib/hwdata/usb.ids
54d84664 288%{__make}
62e09e7e
JB
289cd ..
290%endif
12078fdb 291
62e09e7e
JB
292%if %{with gtk3}
293cd gtk3
12078fdb 294../%configure \
6cda7c5a
JB
295 --enable-gtk-doc \
296 --enable-lz4 \
12078fdb 297 --disable-silent-rules \
62e09e7e 298 %{!?with_smartcard:--disable-smartcard} \
6cda7c5a 299 %{?with_static_libs:--enable-static} \
62e09e7e 300 %{!?with_usbredir:--disable-usbredir} \
12078fdb 301 --with-gtk=3.0 \
fc53070c
JB
302 --with-html-dir=%{_gtkdocdir} \
303 --with-pnp-ids-path=/lib/hwdata/pnp.ids \
304 --with-usb-ids-path=/lib/hwdata/usb.ids
54d84664 305%{__make}
62e09e7e 306%endif
887be46e
JB
307
308%install
309rm -rf $RPM_BUILD_ROOT
310
12078fdb 311# gtk2 first, so executables will use gtk3 libs
62e09e7e 312%if %{with gtk2}
54d84664 313%{__make} -C gtk2 install -j1 \
12078fdb 314 DESTDIR=$RPM_BUILD_ROOT
62e09e7e 315%endif
12078fdb 316
62e09e7e 317%if %{with gtk3}
54d84664 318%{__make} -C gtk3 install -j1 \
887be46e 319 DESTDIR=$RPM_BUILD_ROOT
62e09e7e 320%endif
887be46e 321
6cda7c5a
JB
322%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/SpiceClientGtk.la
323%if %{with static_libs}
324%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/SpiceClientGtk.a
325%endif
887be46e
JB
326# obsoleted by pkg-config
327%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
328
329%find_lang %{name}
330
331%clean
332rm -rf $RPM_BUILD_ROOT
333
334%post -p /sbin/ldconfig
335%postun -p /sbin/ldconfig
336
12078fdb
JB
337%post -n spice-glib -p /sbin/ldconfig
338%postun -n spice-glib -p /sbin/ldconfig
339
340%post -n spice-gtk2 -p /sbin/ldconfig
341%postun -n spice-gtk2 -p /sbin/ldconfig
342
62e09e7e 343%if %{with gtk3}
887be46e
JB
344%files -f %{name}.lang
345%defattr(644,root,root,755)
346%doc AUTHORS NEWS README THANKS TODO
887be46e 347%attr(755,root,root) %{_bindir}/spicy
82d73980 348%attr(755,root,root) %{_bindir}/spicy-screenshot
12078fdb
JB
349%attr(755,root,root) %{_bindir}/spicy-stats
350%attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so.*.*.*
35affeb9 351%attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-3.0.so.4
12078fdb 352%{_libdir}/girepository-1.0/SpiceClientGtk-3.0.typelib
6cda7c5a 353%{_mandir}/man1/spice-client.1*
12078fdb
JB
354
355%files devel
356%defattr(644,root,root,755)
357%attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so
358%{_includedir}/spice-client-gtk-3.0
359%{_pkgconfigdir}/spice-client-gtk-3.0.pc
360%{_datadir}/gir-1.0/SpiceClientGtk-3.0.gir
361
6cda7c5a 362%if %{with static_libs}
12078fdb
JB
363%files static
364%defattr(644,root,root,755)
365%{_libdir}/libspice-client-gtk-3.0.a
6cda7c5a 366%endif
12078fdb
JB
367
368%files apidocs
369%defattr(644,root,root,755)
370%{_gtkdocdir}/spice-gtk
62e09e7e 371%endif
12078fdb
JB
372
373%files -n spice-glib
374%defattr(644,root,root,755)
887be46e 375%attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so.*.*.*
35affeb9 376%attr(755,root,root) %ghost %{_libdir}/libspice-client-glib-2.0.so.8
887be46e
JB
377%attr(755,root,root) %{_libdir}/libspice-controller.so.*.*.*
378%attr(755,root,root) %ghost %{_libdir}/libspice-controller.so.0
379%{_libdir}/girepository-1.0/SpiceClientGLib-2.0.typelib
887be46e 380
12078fdb 381%files -n spice-glib-devel
887be46e
JB
382%defattr(644,root,root,755)
383%attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so
887be46e
JB
384%attr(755,root,root) %{_libdir}/libspice-controller.so
385%{_includedir}/spice-client-glib-2.0
887be46e
JB
386%{_includedir}/spice-controller
387%{_pkgconfigdir}/spice-client-glib-2.0.pc
887be46e
JB
388%{_pkgconfigdir}/spice-controller.pc
389%{_datadir}/gir-1.0/SpiceClientGLib-2.0.gir
887be46e 390
6cda7c5a 391%if %{with static_libs}
12078fdb 392%files -n spice-glib-static
887be46e
JB
393%defattr(644,root,root,755)
394%{_libdir}/libspice-client-glib-2.0.a
887be46e 395%{_libdir}/libspice-controller.a
6cda7c5a 396%endif
887be46e 397
62e09e7e
JB
398%if %{with usbredir}
399%files -n spice-glib-usb
400%defattr(644,root,root,755)
401%attr(755,root,root) %{_bindir}/spice-client-glib-usb-acl-helper
402%{_datadir}/polkit-1/actions/org.spice-space.lowlevelusbaccess.policy
403%endif
404
405%if %{with gtk2}
12078fdb 406%files -n spice-gtk2
887be46e 407%defattr(644,root,root,755)
12078fdb 408%attr(755,root,root) %{_libdir}/libspice-client-gtk-2.0.so.*.*.*
35affeb9 409%attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-2.0.so.4
12078fdb
JB
410%{_libdir}/girepository-1.0/SpiceClientGtk-2.0.typelib
411
412%files -n spice-gtk2-devel
413%defattr(644,root,root,755)
414%attr(755,root,root) %{_libdir}/libspice-client-gtk-2.0.so
415%{_includedir}/spice-client-gtk-2.0
416%{_pkgconfigdir}/spice-client-gtk-2.0.pc
417%{_datadir}/gir-1.0/SpiceClientGtk-2.0.gir
418
6cda7c5a 419%if %{with static_libs}
12078fdb
JB
420%files -n spice-gtk2-static
421%defattr(644,root,root,755)
422%{_libdir}/libspice-client-gtk-2.0.a
6cda7c5a 423%endif
887be46e
JB
424
425%files -n python-spice-gtk
426%defattr(644,root,root,755)
427%attr(755,root,root) %{py_sitedir}/SpiceClientGtk.so
62e09e7e 428%endif
887be46e 429
12078fdb 430%files -n vala-spice-protocol
887be46e
JB
431%defattr(644,root,root,755)
432%{_datadir}/vala/vapi/spice-protocol.vapi
This page took 0.161959 seconds and 4 git commands to generate.