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