]> git.pld-linux.org Git - packages/spice-gtk.git/blob - spice-gtk.spec
- updated to 0.8
[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.8
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:  761b6c3d74d962d437bdd72f54292498
17 Patch0:         %{name}-sh.patch
18 Patch1:         %{name}-builddir.patch
19 Patch2:         %{name}-usbredir.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:  gettext-devel >= 0.17
27 BuildRequires:  gobject-introspection-devel >= 0.9.4
28 BuildRequires:  glib2-devel >= 1:2.22
29 BuildRequires:  gtk-doc >= 1.14
30 %{?with_gtk3:BuildRequires:     gtk+3-devel >= 3.0}
31 BuildRequires:  intltool >= 0.40.0
32 %{?with_smartcard:BuildRequires:        libcacard-devel >= 0.1.2}
33 BuildRequires:  libjpeg-devel
34 BuildRequires:  libstdc++-devel
35 BuildRequires:  libtool >= 2:2.0
36 BuildRequires:  openssl-devel
37 BuildRequires:  perl-Text-CSV
38 BuildRequires:  perl-base >= 1:5.8.1
39 BuildRequires:  pixman-devel >= 0.17.7
40 BuildRequires:  pkgconfig
41 BuildRequires:  pulseaudio-devel
42 BuildRequires:  spice-protocol >= 0.10.1
43 BuildRequires:  xorg-lib-libX11-devel
44 BuildRequires:  xorg-lib-libXrandr-devel
45 BuildRequires:  zlib-devel
46 %if %{with gtk2}
47 BuildRequires:  gtk+2-devel >= 2:2.18.0
48 BuildRequires:  python-devel >= 2.0
49 BuildRequires:  python-pygtk-devel >= 2:2.0.0
50 %endif
51 %if %{with usbredir}
52 BuildRequires:  acl-devel
53 BuildRequires:  libusb-devel >= 1.0.9
54 BuildRequires:  polkit-devel >= 0.96
55 BuildRequires:  udev-glib-devel
56 BuildRequires:  usbredir-devel >= 0.3.3
57 %endif
58 %{?with_smartcard:Requires:     libcacard >= 0.1.2}
59 Requires:       spice-glib = %{version}-%{release}
60 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61
62 %description
63 A GTK+ client and libraries for SPICE remote desktop servers.
64
65 %description -l pl.UTF-8
66 Klient i biblioteki GTK+ dla serwerów zdalnych pulpitów SPICE.
67
68 %package devel
69 Summary:        Header files for SPICE GTK 3.0 client library
70 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0
71 Group:          X11/Development/Libraries
72 Requires:       %{name} = %{version}-%{release}
73 Requires:       spice-glib-devel = %{version}-%{release}
74 Requires:       gtk+3-devel >= 3.0
75
76 %description devel
77 Header files for SPICE GTK 3.0 client library.
78
79 %description devel -l pl.UTF-8
80 Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0.
81
82 %package static
83 Summary:        Static SPICE GTK 3.0 client library
84 Summary(pl.UTF-8):      Statyczna biblioteka kliencka SPICE GTK 3.0
85 Group:          X11/Development/Libraries
86 Requires:       %{name}-devel = %{version}-%{release}
87
88 %description static
89 Static SPICE GTK 3.0 client library.
90
91 %description static -l pl.UTF-8
92 Statyczna biblioteka kliencka SPICE GTK 3.0.
93
94 %package apidocs
95 Summary:        SPICE GTK API documentation
96 Summary(pl.UTF-8):      Dokumentacja API bibliotek SPICE GTK
97 Group:          Documentation
98
99 %description apidocs
100 API documentation for SPICE GTK libraries.
101
102 %description apidocs -l pl.UTF-8
103 Dokumentacja API bibliotek SPICE GTK.
104
105 %package -n spice-glib
106 Summary:        SPICE Client GLib library
107 Summary(pl.UTF-8):      Biblioteka kliencka SPICE GLib
108 Group:          Libraries
109 Requires:       celt051 >= 0.5.1.1
110 Requires:       glib2 >= 1:2.22
111 %{?with_smartcard:Requires:     libcacard >= 0.1.2}
112 Requires:       pixman >= 0.17.7
113 %if %{with usbredir}
114 Requires:       libusb >= 1.0.9
115 Requires:       usbredir >= 0.3.3
116 %endif
117
118 %description -n spice-glib
119 SPICE Client GLib library.
120
121 %description -n spice-glib -l pl.UTF-8
122 Biblioteka kliencka SPICE GLib.
123
124 %package -n spice-glib-devel
125 Summary:        Header files for SPICE Client GLib library
126 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki klienckiej SPICE GLib
127 Group:          Development/Libraries
128 Requires:       celt051-devel >= 0.5.1.1
129 Requires:       cyrus-sasl-devel >= 2.0
130 Requires:       glib2-devel >= 1:2.22
131 %{?with_smartcard:Requires:     libcacard-devel >= 0.1.2}
132 Requires:       libjpeg-devel
133 Requires:       openssl-devel
134 Requires:       pixman-devel >= 0.17.7
135 Requires:       pulseaudio-devel
136 Requires:       spice-glib = %{version}-%{release}
137 Requires:       spice-protocol >= 0.10.1
138 %if %{with usbredir}
139 Requires:       libusb-devel >= 1.0.9
140 Requires:       udev-glib-devel
141 Requires:       usbredir-devel >= 0.3.3
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 >= 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 %patch2 -p1
244
245 mkdir %{?with_gtk2:gtk2} %{?with_gtk3:gtk3}
246
247 %build
248 %{__gettextize}
249 %{__intltoolize}
250 %{__libtoolize}
251 %{__aclocal} -I m4
252 %{__autoconf}
253 %{__autoheader}
254 %{__automake}
255
256 %if %{with gtk2}
257 cd gtk2
258 ../%configure \
259         --disable-silent-rules \
260         %{!?with_smartcard:--disable-smartcard} \
261         %{!?with_usbredir:--disable-usbredir} \
262         --with-gtk=2.0 \
263         --with-html-dir=%{_gtkdocdir}
264 %{__make}
265 cd ..
266 %endif
267
268 %if %{with gtk3}
269 cd gtk3
270 ../%configure \
271         --disable-silent-rules \
272         %{!?with_smartcard:--disable-smartcard} \
273         %{!?with_usbredir:--disable-usbredir} \
274         --enable-gtk-doc \
275         --with-gtk=3.0 \
276         --with-html-dir=%{_gtkdocdir}
277 %{__make}
278 %endif
279
280 %install
281 rm -rf $RPM_BUILD_ROOT
282
283 # gtk2 first, so executables will use gtk3 libs
284 %if %{with gtk2}
285 %{__make} -C gtk2 install -j1 \
286         DESTDIR=$RPM_BUILD_ROOT
287 %endif
288
289 %if %{with gtk3}
290 %{__make} -C gtk3 install -j1 \
291         DESTDIR=$RPM_BUILD_ROOT
292 %endif
293
294 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/SpiceClientGtk.{la,a}
295 # obsoleted by pkg-config
296 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
297
298 %find_lang %{name}
299
300 %clean
301 rm -rf $RPM_BUILD_ROOT
302
303 %post   -p /sbin/ldconfig
304 %postun -p /sbin/ldconfig
305
306 %post   -n spice-glib -p /sbin/ldconfig
307 %postun -n spice-glib -p /sbin/ldconfig
308
309 %post   -n spice-gtk2 -p /sbin/ldconfig
310 %postun -n spice-gtk2 -p /sbin/ldconfig
311
312 %if %{with gtk3}
313 %files -f %{name}.lang
314 %defattr(644,root,root,755)
315 %doc AUTHORS NEWS README THANKS TODO
316 %attr(755,root,root) %{_bindir}/snappy
317 %attr(755,root,root) %{_bindir}/spicy
318 %attr(755,root,root) %{_bindir}/spicy-stats
319 %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so.*.*.*
320 %attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-3.0.so.1
321 %{_libdir}/girepository-1.0/SpiceClientGtk-3.0.typelib
322
323 %files devel
324 %defattr(644,root,root,755)
325 %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so
326 %{_includedir}/spice-client-gtk-3.0
327 %{_pkgconfigdir}/spice-client-gtk-3.0.pc
328 %{_datadir}/gir-1.0/SpiceClientGtk-3.0.gir
329
330 %files static
331 %defattr(644,root,root,755)
332 %{_libdir}/libspice-client-gtk-3.0.a
333
334 %files apidocs
335 %defattr(644,root,root,755)
336 %{_gtkdocdir}/spice-gtk
337 %endif
338
339 %files -n spice-glib
340 %defattr(644,root,root,755)
341 %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so.*.*.*
342 %attr(755,root,root) %ghost %{_libdir}/libspice-client-glib-2.0.so.1
343 %attr(755,root,root) %{_libdir}/libspice-controller.so.*.*.*
344 %attr(755,root,root) %ghost %{_libdir}/libspice-controller.so.0
345 %{_libdir}/girepository-1.0/SpiceClientGLib-2.0.typelib
346
347 %files -n spice-glib-devel
348 %defattr(644,root,root,755)
349 %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so
350 %attr(755,root,root) %{_libdir}/libspice-controller.so
351 %{_includedir}/spice-client-glib-2.0
352 %{_includedir}/spice-controller
353 %{_pkgconfigdir}/spice-client-glib-2.0.pc
354 %{_pkgconfigdir}/spice-controller.pc
355 %{_datadir}/gir-1.0/SpiceClientGLib-2.0.gir
356
357 %files -n spice-glib-static
358 %defattr(644,root,root,755)
359 %{_libdir}/libspice-client-glib-2.0.a
360 %{_libdir}/libspice-controller.a
361
362 %if %{with usbredir}
363 %files -n spice-glib-usb
364 %defattr(644,root,root,755)
365 %attr(755,root,root) %{_bindir}/spice-client-glib-usb-acl-helper
366 %{_datadir}/polkit-1/actions/org.spice-space.lowlevelusbaccess.policy
367 %endif
368
369 %if %{with gtk2}
370 %files -n spice-gtk2
371 %defattr(644,root,root,755)
372 %attr(755,root,root) %{_libdir}/libspice-client-gtk-2.0.so.*.*.*
373 %attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-2.0.so.1
374 %{_libdir}/girepository-1.0/SpiceClientGtk-2.0.typelib
375
376 %files -n spice-gtk2-devel
377 %defattr(644,root,root,755)
378 %attr(755,root,root) %{_libdir}/libspice-client-gtk-2.0.so
379 %{_includedir}/spice-client-gtk-2.0
380 %{_pkgconfigdir}/spice-client-gtk-2.0.pc
381 %{_datadir}/gir-1.0/SpiceClientGtk-2.0.gir
382
383 %files -n spice-gtk2-static
384 %defattr(644,root,root,755)
385 %{_libdir}/libspice-client-gtk-2.0.a
386
387 %files -n python-spice-gtk
388 %defattr(644,root,root,755)
389 %attr(755,root,root) %{py_sitedir}/SpiceClientGtk.so
390 %endif
391
392 %files -n vala-spice-protocol
393 %defattr(644,root,root,755)
394 %{_datadir}/vala/vapi/spice-protocol.vapi
This page took 0.078596 seconds and 4 git commands to generate.