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