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