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