]> git.pld-linux.org Git - packages/spice-gtk.git/blob - spice-gtk.spec
- updated to 0.7.159 (now with usbredir support; added bcond to disable)
[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.7.159
12 Release:        1
13 License:        LGPL v2.1+
14 Group:          X11/Applications
15 Source0:        http://spice-space.org/download/gtk/%{name}-%{version}.tar.bz2
16 # Source0-md5:  5b0e3c9ebbc07790eed2aaff06adff4b
17 Patch0:         %{name}-sh.patch
18 Patch1:         %{name}-builddir.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:  gettext-devel >= 0.17
26 BuildRequires:  gobject-introspection-devel >= 0.9.4
27 BuildRequires:  glib2-devel >= 1:2.22
28 BuildRequires:  gtk-doc >= 1.14
29 %{?with_gtk3:BuildRequires:     gtk+3-devel >= 3.0}
30 BuildRequires:  intltool >= 0.40.0
31 %{?with_smartcard:BuildRequires:        libcacard-devel >= 0.1.2}
32 BuildRequires:  libjpeg-devel
33 BuildRequires:  libstdc++-devel
34 BuildRequires:  libtool >= 2:2.0
35 BuildRequires:  openssl-devel
36 BuildRequires:  perl-Text-CSV
37 BuildRequires:  perl-base >= 1:5.8.1
38 BuildRequires:  pixman-devel >= 0.17.7
39 BuildRequires:  pkgconfig
40 BuildRequires:  pulseaudio-devel
41 BuildRequires:  spice-protocol >= 0.9.1
42 BuildRequires:  xorg-lib-libX11-devel
43 BuildRequires:  xorg-lib-libXrandr-devel
44 BuildRequires:  zlib-devel
45 %if %{with gtk2}
46 BuildRequires:  gtk+2-devel >= 2:2.18.0
47 BuildRequires:  python-devel >= 2.0
48 BuildRequires:  python-pygtk-devel >= 2:2.0.0
49 %endif
50 %if %{with usbredir}
51 BuildRequires:  acl-devel
52 BuildRequires:  libusb-devel >= 1.0.9
53 BuildRequires:  polkit-devel
54 BuildRequires:  udev-glib-devel
55 BuildRequires:  usbredir-devel >= 0.3.1
56 %endif
57 %{?with_smartcard:Requires:     libcacard >= 0.1.2}
58 Requires:       spice-glib = %{version}-%{release}
59 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
60
61 %description
62 A GTK+ client and libraries for SPICE remote desktop servers.
63
64 %description -l pl.UTF-8
65 Klient i biblioteki GTK+ dla serwerów zdalnych pulpitów SPICE.
66
67 %package devel
68 Summary:        Header files for SPICE GTK 3.0 client library
69 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0
70 Group:          X11/Development/Libraries
71 Requires:       %{name} = %{version}-%{release}
72 Requires:       spice-glib-devel = %{version}-%{release}
73 Requires:       gtk+3-devel >= 3.0
74
75 %description devel
76 Header files for SPICE GTK 3.0 client library.
77
78 %description devel -l pl.UTF-8
79 Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0.
80
81 %package static
82 Summary:        Static SPICE GTK 3.0 client library
83 Summary(pl.UTF-8):      Statyczna biblioteka kliencka SPICE GTK 3.0
84 Group:          X11/Development/Libraries
85 Requires:       %{name}-devel = %{version}-%{release}
86
87 %description static
88 Static SPICE GTK 3.0 client library.
89
90 %description static -l pl.UTF-8
91 Statyczna biblioteka kliencka SPICE GTK 3.0.
92
93 %package apidocs
94 Summary:        SPICE GTK API documentation
95 Summary(pl.UTF-8):      Dokumentacja API bibliotek SPICE GTK
96 Group:          Documentation
97
98 %description apidocs
99 API documentation for SPICE GTK libraries.
100
101 %description apidocs -l pl.UTF-8
102 Dokumentacja API bibliotek SPICE GTK.
103
104 %package -n spice-glib
105 Summary:        SPICE Client GLib library
106 Summary(pl.UTF-8):      Biblioteka kliencka SPICE GLib
107 Group:          Libraries
108 Requires:       celt051 >= 0.5.1.1
109 Requires:       glib2 >= 1:2.22
110 %{?with_smartcard:Requires:     libcacard >= 0.1.2}
111 Requires:       pixman >= 0.17.7
112 %if %{with usbredir}
113 Requires:       libusb >= 1.0.9
114 Requires:       usbredir >= 0.3.1
115 %endif
116
117 %description -n spice-glib
118 SPICE Client GLib library.
119
120 %description -n spice-glib -l pl.UTF-8
121 Biblioteka kliencka SPICE GLib.
122
123 %package -n spice-glib-devel
124 Summary:        Header files for SPICE Client GLib library
125 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki klienckiej SPICE GLib
126 Group:          Development/Libraries
127 Requires:       celt051-devel >= 0.5.1.1
128 Requires:       cyrus-sasl-devel >= 2.0
129 Requires:       glib2-devel >= 1:2.22
130 %{?with_smartcard:Requires:     libcacard-devel >= 0.1.2}
131 Requires:       libjpeg-devel
132 Requires:       openssl-devel
133 Requires:       pixman-devel >= 0.17.7
134 Requires:       pulseaudio-devel
135 Requires:       spice-glib = %{version}-%{release}
136 Requires:       spice-protocol >= 0.9.1
137 %if %{with usbredir}
138 Requires:       libusb-devel >= 1.0.9
139 Requires:       udev-glib-devel
140 Requires:       usbredir-devel >= 0.3.1
141 %endif
142
143 %description -n spice-glib-devel
144 Header files for SPICE Client GLib library.
145
146 %description -n spice-glib-devel -l pl.UTF-8
147 Pliki nagłówkowe biblioteki klienckiej SPICE GLib.
148
149 %package -n spice-glib-static
150 Summary:        SPICE Client GLib static library
151 Summary(pl.UTF-8):      Statyczna biblioteka kliencka SPICE GLib
152 Group:          Development/Libraries
153 Requires:       spice-glib-devel = %{version}-%{release}
154
155 %description -n spice-glib-static
156 SPICE Client GLib static library.
157
158 %description -n spice-glib-static -l pl.UTF-8
159 Statyczna biblioteka kliencka SPICE GLib.
160
161 %package -n spice-glib-usb
162 Summary:        USB redirection ACL helper for SPICE Client GLib library
163 Summary(pl.UTF-8):      Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej SPICE GLib
164 Group:          Applications/System
165 Requires:       spice-glib = %{version}-%{release}
166 Requires:       polkit
167
168 %description -n spice-glib-usb
169 USB redirection ACL helper for SPICE Client GLib library.
170
171 %description -n spice-glib-usb -l pl.UTF-8
172 Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej
173 SPICE GLib.
174
175 %package -n spice-gtk2
176 Summary:        SPICE Client GTK 2.0 library
177 Summary(pl.UTF-8):      Biblioteka kliencka SPICE GTK 2.0
178 Group:          X11/Libraries
179 Requires:       gtk+2 >= 2:2.18.0
180 Requires:       spice-glib = %{version}-%{release}
181
182 %description -n spice-gtk2
183 SPICE Client GTK 2.0 library.
184
185 %description -n spice-gtk2 -l pl.UTF-8
186 Biblioteka kliencka SPICE GTK 2.0.
187
188 %package -n spice-gtk2-devel
189 Summary:        Header files for SPICE Client GTK 2.0 library
190 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki klienckiej SPICE GTK 2.0
191 Group:          X11/Development/Libraries
192 Requires:       gtk+2-devel >= 2:2.18.0
193 Requires:       spice-glib-devel = %{version}-%{release}
194
195 %description -n spice-gtk2-devel
196 Header files for SPICE Client GTK 2.0 library.
197
198 %description -n spice-gtk2-devel -l pl.UTF-8
199 Pliki nagłówkowe biblioteki klienckiej SPICE GTK 2.0.
200
201 %package -n spice-gtk2-static
202 Summary:        SPICE Client GTK 2.0 static library
203 Summary(pl.UTF-8):      Statyczna biblioteka kliencka SPICE GTK 2.0
204 Group:          X11/Development/Libraries
205 Requires:       spice-gtk2-devel = %{version}-%{release}
206
207 %description -n spice-gtk2-static
208 SPICE Client GTK 2.0 static library.
209
210 %description -n spice-gtk2-static -l pl.UTF-8
211 Statyczna biblioteka kliencka SPICE GTK 2.0.
212
213 %package -n python-spice-gtk
214 Summary:        Python interface to SPICE client GTK library
215 Summary(pl.UTF-8):      Pythonowy interfejs do biblioteki klienckiej SPICE GTK
216 Group:          Libraries/Python
217 Requires:       spice-gtk2 = %{version}-%{release}
218
219 %description -n python-spice-gtk
220 Python interface to SPICE client GTK library.
221
222 %description -n python-spice-gtk -l pl.UTF-8
223 Pythonowy interfejs do biblioteki klienckiej SPICE GTK.
224
225 %package -n vala-spice-protocol
226 Summary:        Vala API for SPICE client library
227 Summary(pl.UTF-8):      Interfejs języka Vala do biblioteki klienckiej SPICE
228 Group:          Development/Libraries
229 Requires:       spice-protocol >= 0.9.1
230 Requires:       vala >= 0.14
231
232 %description -n vala-spice-protocol
233 Vala API for SPICE client library.
234
235 %description -n vala-spice-protocol -l pl.UTF-8
236 Interfejs języka Vala do biblioteki klienckiej SPICE.
237
238 %prep
239 %setup -q
240 %patch0 -p1
241 %patch1 -p1
242
243 mkdir %{?with_gtk2:gtk2} %{?with_gtk3:gtk3}
244
245 %build
246 %{__gettextize}
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}/snappy
315 %attr(755,root,root) %{_bindir}/spicy
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.1
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.1
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.1
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.181492 seconds and 4 git commands to generate.