]> git.pld-linux.org Git - packages/spice-gtk.git/blame - spice-gtk.spec
noarch apidocs
[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 12Version: 0.31
d5623c14 13Release: 2
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 109Group: Documentation
d5623c14
ER
110%if "%{_rpmversion}" >= "5"
111BuildArch: noarch
112%endif
887be46e
JB
113
114%description apidocs
12078fdb 115API documentation for SPICE GTK libraries.
887be46e
JB
116
117%description apidocs -l pl.UTF-8
12078fdb
JB
118Dokumentacja API bibliotek SPICE GTK.
119
120%package -n spice-glib
121Summary: SPICE Client GLib library
122Summary(pl.UTF-8): Biblioteka kliencka SPICE GLib
123Group: Libraries
124Requires: celt051 >= 0.5.1.1
f6dbd78a 125Requires: glib2 >= 1:2.44
62e09e7e 126%{?with_smartcard:Requires: libcacard >= 0.1.2}
f6dbd78a 127Requires: libsoup >= 2.50
8cdeb0fc 128Requires: opus >= 0.9.14
12078fdb 129Requires: pixman >= 0.17.7
62e09e7e 130%if %{with usbredir}
178a4f62 131Requires: libusb >= 1.0.16
f09efb9b 132Requires: usbredir >= 0.5.2
62e09e7e 133%endif
12078fdb
JB
134
135%description -n spice-glib
136SPICE Client GLib library.
137
138%description -n spice-glib -l pl.UTF-8
139Biblioteka kliencka SPICE GLib.
140
141%package -n spice-glib-devel
142Summary: Header files for SPICE Client GLib library
143Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GLib
144Group: Development/Libraries
145Requires: celt051-devel >= 0.5.1.1
62e09e7e 146Requires: cyrus-sasl-devel >= 2.0
f6dbd78a 147Requires: glib2-devel >= 1:2.44
62e09e7e
JB
148%{?with_smartcard:Requires: libcacard-devel >= 0.1.2}
149Requires: libjpeg-devel
12078fdb
JB
150Requires: openssl-devel
151Requires: pixman-devel >= 0.17.7
62e09e7e 152Requires: pulseaudio-devel
12078fdb 153Requires: spice-glib = %{version}-%{release}
ece362d5 154Requires: spice-protocol >= 0.12.11
62e09e7e 155%if %{with usbredir}
178a4f62 156Requires: libusb-devel >= 1.0.16
f09efb9b 157Requires: usbredir-devel >= 0.5.2
62e09e7e 158%endif
12078fdb
JB
159
160%description -n spice-glib-devel
161Header files for SPICE Client GLib library.
162
163%description -n spice-glib-devel -l pl.UTF-8
164Pliki nagłówkowe biblioteki klienckiej SPICE GLib.
165
166%package -n spice-glib-static
167Summary: SPICE Client GLib static library
168Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GLib
169Group: Development/Libraries
170Requires: spice-glib-devel = %{version}-%{release}
171
172%description -n spice-glib-static
173SPICE Client GLib static library.
174
175%description -n spice-glib-static -l pl.UTF-8
176Statyczna biblioteka kliencka SPICE GLib.
177
62e09e7e
JB
178%package -n spice-glib-usb
179Summary: USB redirection ACL helper for SPICE Client GLib library
180Summary(pl.UTF-8): Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej SPICE GLib
181Group: Applications/System
61cee34f 182Requires: polkit >= 0.96
7bfc8f3c 183Requires: spice-glib = %{version}-%{release}
62e09e7e
JB
184
185%description -n spice-glib-usb
186USB redirection ACL helper for SPICE Client GLib library.
187
188%description -n spice-glib-usb -l pl.UTF-8
189Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej
190SPICE GLib.
191
12078fdb
JB
192%package -n spice-gtk2
193Summary: SPICE Client GTK 2.0 library
194Summary(pl.UTF-8): Biblioteka kliencka SPICE GTK 2.0
195Group: X11/Libraries
196Requires: gtk+2 >= 2:2.18.0
197Requires: spice-glib = %{version}-%{release}
198
199%description -n spice-gtk2
200SPICE Client GTK 2.0 library.
201
202%description -n spice-gtk2 -l pl.UTF-8
203Biblioteka kliencka SPICE GTK 2.0.
204
205%package -n spice-gtk2-devel
206Summary: Header files for SPICE Client GTK 2.0 library
207Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GTK 2.0
208Group: X11/Development/Libraries
209Requires: gtk+2-devel >= 2:2.18.0
210Requires: spice-glib-devel = %{version}-%{release}
211
212%description -n spice-gtk2-devel
213Header files for SPICE Client GTK 2.0 library.
214
215%description -n spice-gtk2-devel -l pl.UTF-8
216Pliki nagłówkowe biblioteki klienckiej SPICE GTK 2.0.
217
218%package -n spice-gtk2-static
219Summary: SPICE Client GTK 2.0 static library
220Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GTK 2.0
221Group: X11/Development/Libraries
222Requires: spice-gtk2-devel = %{version}-%{release}
223
224%description -n spice-gtk2-static
225SPICE Client GTK 2.0 static library.
226
227%description -n spice-gtk2-static -l pl.UTF-8
228Statyczna biblioteka kliencka SPICE GTK 2.0.
887be46e
JB
229
230%package -n python-spice-gtk
231Summary: Python interface to SPICE client GTK library
232Summary(pl.UTF-8): Pythonowy interfejs do biblioteki klienckiej SPICE GTK
233Group: Libraries/Python
12078fdb 234Requires: spice-gtk2 = %{version}-%{release}
887be46e
JB
235
236%description -n python-spice-gtk
237Python interface to SPICE client GTK library.
238
239%description -n python-spice-gtk -l pl.UTF-8
240Pythonowy interfejs do biblioteki klienckiej SPICE GTK.
241
12078fdb
JB
242%package -n vala-spice-protocol
243Summary: Vala API for SPICE client library
244Summary(pl.UTF-8): Interfejs języka Vala do biblioteki klienckiej SPICE
887be46e 245Group: Development/Libraries
ece362d5 246Requires: spice-protocol >= 0.12.11
178a4f62 247Requires: vala >= 2:0.14
7bfc8f3c
ER
248%if "%{_rpmversion}" >= "5"
249BuildArch: noarch
250%endif
887be46e 251
12078fdb
JB
252%description -n vala-spice-protocol
253Vala API for SPICE client library.
887be46e 254
12078fdb
JB
255%description -n vala-spice-protocol -l pl.UTF-8
256Interfejs języka Vala do biblioteki klienckiej SPICE.
887be46e
JB
257
258%prep
259%setup -q
260%patch0 -p1
62e09e7e 261%patch1 -p1
12078fdb 262
62e09e7e 263mkdir %{?with_gtk2:gtk2} %{?with_gtk3:gtk3}
887be46e
JB
264
265%build
887be46e
JB
266%{__intltoolize}
267%{__libtoolize}
268%{__aclocal} -I m4
269%{__autoconf}
270%{__autoheader}
271%{__automake}
fc53070c
JB
272cd spice-common
273%{__aclocal} -I m4
274%{__autoconf}
275%{__autoheader}
276%{__automake}
277cd ..
12078fdb 278
62e09e7e 279%if %{with gtk2}
12078fdb
JB
280cd gtk2
281../%configure \
6cda7c5a 282 --enable-lz4 \
887be46e 283 --disable-silent-rules \
62e09e7e 284 %{!?with_smartcard:--disable-smartcard} \
6cda7c5a 285 %{?with_static_libs:--enable-static} \
62e09e7e 286 %{!?with_usbredir:--disable-usbredir} \
12078fdb 287 --with-gtk=2.0 \
fc53070c
JB
288 --with-html-dir=%{_gtkdocdir} \
289 --with-pnp-ids-path=/lib/hwdata/pnp.ids \
290 --with-usb-ids-path=/lib/hwdata/usb.ids
54d84664 291%{__make}
62e09e7e
JB
292cd ..
293%endif
12078fdb 294
62e09e7e
JB
295%if %{with gtk3}
296cd gtk3
12078fdb 297../%configure \
6cda7c5a
JB
298 --enable-gtk-doc \
299 --enable-lz4 \
12078fdb 300 --disable-silent-rules \
62e09e7e 301 %{!?with_smartcard:--disable-smartcard} \
6cda7c5a 302 %{?with_static_libs:--enable-static} \
62e09e7e 303 %{!?with_usbredir:--disable-usbredir} \
12078fdb 304 --with-gtk=3.0 \
fc53070c
JB
305 --with-html-dir=%{_gtkdocdir} \
306 --with-pnp-ids-path=/lib/hwdata/pnp.ids \
307 --with-usb-ids-path=/lib/hwdata/usb.ids
54d84664 308%{__make}
62e09e7e 309%endif
887be46e
JB
310
311%install
312rm -rf $RPM_BUILD_ROOT
313
12078fdb 314# gtk2 first, so executables will use gtk3 libs
62e09e7e 315%if %{with gtk2}
54d84664 316%{__make} -C gtk2 install -j1 \
12078fdb 317 DESTDIR=$RPM_BUILD_ROOT
62e09e7e 318%endif
12078fdb 319
62e09e7e 320%if %{with gtk3}
54d84664 321%{__make} -C gtk3 install -j1 \
887be46e 322 DESTDIR=$RPM_BUILD_ROOT
62e09e7e 323%endif
887be46e 324
6cda7c5a
JB
325%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/SpiceClientGtk.la
326%if %{with static_libs}
327%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/SpiceClientGtk.a
328%endif
887be46e
JB
329# obsoleted by pkg-config
330%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
331
332%find_lang %{name}
333
334%clean
335rm -rf $RPM_BUILD_ROOT
336
337%post -p /sbin/ldconfig
338%postun -p /sbin/ldconfig
339
12078fdb
JB
340%post -n spice-glib -p /sbin/ldconfig
341%postun -n spice-glib -p /sbin/ldconfig
342
343%post -n spice-gtk2 -p /sbin/ldconfig
344%postun -n spice-gtk2 -p /sbin/ldconfig
345
62e09e7e 346%if %{with gtk3}
887be46e
JB
347%files -f %{name}.lang
348%defattr(644,root,root,755)
349%doc AUTHORS NEWS README THANKS TODO
887be46e 350%attr(755,root,root) %{_bindir}/spicy
82d73980 351%attr(755,root,root) %{_bindir}/spicy-screenshot
12078fdb
JB
352%attr(755,root,root) %{_bindir}/spicy-stats
353%attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so.*.*.*
35affeb9 354%attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-3.0.so.4
12078fdb 355%{_libdir}/girepository-1.0/SpiceClientGtk-3.0.typelib
6cda7c5a 356%{_mandir}/man1/spice-client.1*
12078fdb
JB
357
358%files devel
359%defattr(644,root,root,755)
360%attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so
361%{_includedir}/spice-client-gtk-3.0
362%{_pkgconfigdir}/spice-client-gtk-3.0.pc
363%{_datadir}/gir-1.0/SpiceClientGtk-3.0.gir
364
6cda7c5a 365%if %{with static_libs}
12078fdb
JB
366%files static
367%defattr(644,root,root,755)
368%{_libdir}/libspice-client-gtk-3.0.a
6cda7c5a 369%endif
12078fdb
JB
370
371%files apidocs
372%defattr(644,root,root,755)
373%{_gtkdocdir}/spice-gtk
62e09e7e 374%endif
12078fdb
JB
375
376%files -n spice-glib
377%defattr(644,root,root,755)
887be46e 378%attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so.*.*.*
35affeb9 379%attr(755,root,root) %ghost %{_libdir}/libspice-client-glib-2.0.so.8
887be46e
JB
380%attr(755,root,root) %{_libdir}/libspice-controller.so.*.*.*
381%attr(755,root,root) %ghost %{_libdir}/libspice-controller.so.0
382%{_libdir}/girepository-1.0/SpiceClientGLib-2.0.typelib
887be46e 383
12078fdb 384%files -n spice-glib-devel
887be46e
JB
385%defattr(644,root,root,755)
386%attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so
887be46e
JB
387%attr(755,root,root) %{_libdir}/libspice-controller.so
388%{_includedir}/spice-client-glib-2.0
887be46e
JB
389%{_includedir}/spice-controller
390%{_pkgconfigdir}/spice-client-glib-2.0.pc
887be46e
JB
391%{_pkgconfigdir}/spice-controller.pc
392%{_datadir}/gir-1.0/SpiceClientGLib-2.0.gir
887be46e 393
6cda7c5a 394%if %{with static_libs}
12078fdb 395%files -n spice-glib-static
887be46e
JB
396%defattr(644,root,root,755)
397%{_libdir}/libspice-client-glib-2.0.a
887be46e 398%{_libdir}/libspice-controller.a
6cda7c5a 399%endif
887be46e 400
62e09e7e
JB
401%if %{with usbredir}
402%files -n spice-glib-usb
403%defattr(644,root,root,755)
404%attr(755,root,root) %{_bindir}/spice-client-glib-usb-acl-helper
405%{_datadir}/polkit-1/actions/org.spice-space.lowlevelusbaccess.policy
406%endif
407
408%if %{with gtk2}
12078fdb 409%files -n spice-gtk2
887be46e 410%defattr(644,root,root,755)
12078fdb 411%attr(755,root,root) %{_libdir}/libspice-client-gtk-2.0.so.*.*.*
35affeb9 412%attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-2.0.so.4
12078fdb
JB
413%{_libdir}/girepository-1.0/SpiceClientGtk-2.0.typelib
414
415%files -n spice-gtk2-devel
416%defattr(644,root,root,755)
417%attr(755,root,root) %{_libdir}/libspice-client-gtk-2.0.so
418%{_includedir}/spice-client-gtk-2.0
419%{_pkgconfigdir}/spice-client-gtk-2.0.pc
420%{_datadir}/gir-1.0/SpiceClientGtk-2.0.gir
421
6cda7c5a 422%if %{with static_libs}
12078fdb
JB
423%files -n spice-gtk2-static
424%defattr(644,root,root,755)
425%{_libdir}/libspice-client-gtk-2.0.a
6cda7c5a 426%endif
887be46e
JB
427
428%files -n python-spice-gtk
429%defattr(644,root,root,755)
430%attr(755,root,root) %{py_sitedir}/SpiceClientGtk.so
62e09e7e 431%endif
887be46e 432
12078fdb 433%files -n vala-spice-protocol
887be46e
JB
434%defattr(644,root,root,755)
435%{_datadir}/vala/vapi/spice-protocol.vapi
This page took 2.771957 seconds and 4 git commands to generate.