]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without smartcard # Smartcard support | |
4 | %bcond_without usbredir # USB redirection | |
5 | %bcond_without static_libs # static libraries | |
6 | ||
7 | Summary: A GTK+ client and libraries for SPICE remote desktop servers | |
8 | Summary(pl.UTF-8): Klient i biblioteki GTK+ dla serwerów zdalnych pulpitów SPICE | |
9 | Name: spice-gtk | |
10 | Version: 0.34 | |
11 | Release: 1 | |
12 | License: LGPL v2.1+ | |
13 | Group: X11/Applications | |
14 | Source0: http://www.spice-space.org/download/gtk/%{name}-%{version}.tar.bz2 | |
15 | # Source0-md5: ec01b0b50337aa23f0566423b2f83109 | |
16 | Patch0: %{name}-am.patch | |
17 | URL: http://spice-space.org/ | |
18 | BuildRequires: autoconf >= 2.63 | |
19 | BuildRequires: automake >= 1:1.11 | |
20 | BuildRequires: cairo-devel >= 1.2.0 | |
21 | BuildRequires: celt051-devel >= 0.5.1.1 | |
22 | BuildRequires: cyrus-sasl-devel >= 2.0 | |
23 | BuildRequires: gcc >= 5:3.0 | |
24 | BuildRequires: gettext-tools >= 0.17 | |
25 | BuildRequires: glib2-devel >= 1:2.44 | |
26 | BuildRequires: gobject-introspection-devel >= 0.9.4 | |
27 | BuildRequires: gstreamer-devel >= 1.0 | |
28 | BuildRequires: gstreamer-plugins-base-devel >= 1.0 | |
29 | BuildRequires: gtk+3-devel >= 3.0 | |
30 | BuildRequires: gtk-doc >= 1.14 | |
31 | %{?with_smartcard:BuildRequires: libcacard-devel >= 0.1.2} | |
32 | BuildRequires: libepoxy-devel | |
33 | BuildRequires: libjpeg-devel | |
34 | BuildRequires: libsoup-devel >= 2.50 | |
35 | BuildRequires: libstdc++-devel | |
36 | BuildRequires: libtool >= 2:2.0 | |
37 | BuildRequires: lz4-devel | |
38 | BuildRequires: openssl-devel | |
39 | BuildRequires: opus-devel >= 0.9.14 | |
40 | BuildRequires: perl-Text-CSV | |
41 | BuildRequires: perl-base >= 1:5.8.1 | |
42 | BuildRequires: phodav-devel >= 2.0 | |
43 | BuildRequires: pixman-devel >= 0.17.7 | |
44 | BuildRequires: pkgconfig | |
45 | BuildRequires: pulseaudio-devel | |
46 | BuildRequires: sed >= 4.0 | |
47 | BuildRequires: spice-protocol >= 0.12.11 | |
48 | BuildRequires: xorg-lib-libX11-devel | |
49 | BuildRequires: xorg-lib-libXrandr-devel | |
50 | BuildRequires: zlib-devel | |
51 | %if %{with usbredir} | |
52 | BuildRequires: acl-devel | |
53 | BuildRequires: libusb-devel >= 1.0.16 | |
54 | BuildRequires: polkit-devel >= 0.96 | |
55 | BuildRequires: usbredir-devel >= 0.5.2 | |
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: gtk+3-devel >= 3.0 | |
73 | Requires: spice-glib-devel = %{version}-%{release} | |
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 | %if "%{_rpmversion}" >= "5" | |
98 | BuildArch: noarch | |
99 | %endif | |
100 | ||
101 | %description apidocs | |
102 | API documentation for SPICE GTK libraries. | |
103 | ||
104 | %description apidocs -l pl.UTF-8 | |
105 | Dokumentacja API bibliotek SPICE GTK. | |
106 | ||
107 | %package -n spice-glib | |
108 | Summary: SPICE Client GLib library | |
109 | Summary(pl.UTF-8): Biblioteka kliencka SPICE GLib | |
110 | Group: Libraries | |
111 | Requires: celt051 >= 0.5.1.1 | |
112 | Requires: glib2 >= 1:2.44 | |
113 | %{?with_smartcard:Requires: libcacard >= 0.1.2} | |
114 | Requires: libsoup >= 2.50 | |
115 | Requires: opus >= 0.9.14 | |
116 | Requires: pixman >= 0.17.7 | |
117 | %if %{with usbredir} | |
118 | Requires: libusb >= 1.0.16 | |
119 | Requires: usbredir >= 0.5.2 | |
120 | %endif | |
121 | ||
122 | %description -n spice-glib | |
123 | SPICE Client GLib library. | |
124 | ||
125 | %description -n spice-glib -l pl.UTF-8 | |
126 | Biblioteka kliencka SPICE GLib. | |
127 | ||
128 | %package -n spice-glib-devel | |
129 | Summary: Header files for SPICE Client GLib library | |
130 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GLib | |
131 | Group: Development/Libraries | |
132 | Requires: celt051-devel >= 0.5.1.1 | |
133 | Requires: cyrus-sasl-devel >= 2.0 | |
134 | Requires: glib2-devel >= 1:2.44 | |
135 | %{?with_smartcard:Requires: libcacard-devel >= 0.1.2} | |
136 | Requires: libjpeg-devel | |
137 | Requires: openssl-devel | |
138 | Requires: pixman-devel >= 0.17.7 | |
139 | Requires: pulseaudio-devel | |
140 | Requires: spice-glib = %{version}-%{release} | |
141 | Requires: spice-protocol >= 0.12.11 | |
142 | %if %{with usbredir} | |
143 | Requires: libusb-devel >= 1.0.16 | |
144 | Requires: usbredir-devel >= 0.5.2 | |
145 | %endif | |
146 | ||
147 | %description -n spice-glib-devel | |
148 | Header files for SPICE Client GLib library. | |
149 | ||
150 | %description -n spice-glib-devel -l pl.UTF-8 | |
151 | Pliki nagłówkowe biblioteki klienckiej SPICE GLib. | |
152 | ||
153 | %package -n spice-glib-static | |
154 | Summary: SPICE Client GLib static library | |
155 | Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GLib | |
156 | Group: Development/Libraries | |
157 | Requires: spice-glib-devel = %{version}-%{release} | |
158 | ||
159 | %description -n spice-glib-static | |
160 | SPICE Client GLib static library. | |
161 | ||
162 | %description -n spice-glib-static -l pl.UTF-8 | |
163 | Statyczna biblioteka kliencka SPICE GLib. | |
164 | ||
165 | %package -n spice-glib-usb | |
166 | Summary: USB redirection ACL helper for SPICE Client GLib library | |
167 | Summary(pl.UTF-8): Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej SPICE GLib | |
168 | Group: Applications/System | |
169 | Requires: polkit >= 0.96 | |
170 | Requires: spice-glib = %{version}-%{release} | |
171 | ||
172 | %description -n spice-glib-usb | |
173 | USB redirection ACL helper for SPICE Client GLib library. | |
174 | ||
175 | %description -n spice-glib-usb -l pl.UTF-8 | |
176 | Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej | |
177 | SPICE GLib. | |
178 | ||
179 | %package -n vala-spice-protocol | |
180 | Summary: Vala API for SPICE client library | |
181 | Summary(pl.UTF-8): Interfejs języka Vala do biblioteki klienckiej SPICE | |
182 | Group: Development/Libraries | |
183 | Requires: spice-protocol >= 0.12.11 | |
184 | Requires: vala >= 2:0.14 | |
185 | %if "%{_rpmversion}" >= "5" | |
186 | BuildArch: noarch | |
187 | %endif | |
188 | ||
189 | %description -n vala-spice-protocol | |
190 | Vala API for SPICE client library. | |
191 | ||
192 | %description -n vala-spice-protocol -l pl.UTF-8 | |
193 | Interfejs języka Vala do biblioteki klienckiej SPICE. | |
194 | ||
195 | %prep | |
196 | %setup -q | |
197 | %patch0 -p1 | |
198 | ||
199 | %build | |
200 | %{__gettextize} | |
201 | %{__libtoolize} | |
202 | %{__aclocal} -I m4 | |
203 | %{__autoconf} | |
204 | %{__autoheader} | |
205 | %{__automake} | |
206 | cd spice-common | |
207 | %{__aclocal} -I m4 | |
208 | %{__autoconf} | |
209 | %{__autoheader} | |
210 | %{__automake} | |
211 | cd .. | |
212 | ||
213 | %configure \ | |
214 | --enable-gtk-doc \ | |
215 | --enable-lz4 \ | |
216 | --disable-silent-rules \ | |
217 | %{!?with_smartcard:--disable-smartcard} \ | |
218 | %{?with_static_libs:--enable-static} \ | |
219 | %{!?with_usbredir:--disable-usbredir} \ | |
220 | --with-gtk=3.0 \ | |
221 | --with-html-dir=%{_gtkdocdir} \ | |
222 | --with-pnp-ids-path=/lib/hwdata/pnp.ids \ | |
223 | --with-usb-ids-path=/lib/hwdata/usb.ids | |
224 | %{__make} | |
225 | ||
226 | %install | |
227 | rm -rf $RPM_BUILD_ROOT | |
228 | ||
229 | %{__make} install -j1 \ | |
230 | DESTDIR=$RPM_BUILD_ROOT | |
231 | ||
232 | # obsoleted by pkg-config | |
233 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
234 | ||
235 | %find_lang %{name} | |
236 | ||
237 | %clean | |
238 | rm -rf $RPM_BUILD_ROOT | |
239 | ||
240 | %post -p /sbin/ldconfig | |
241 | %postun -p /sbin/ldconfig | |
242 | ||
243 | %post -n spice-glib -p /sbin/ldconfig | |
244 | %postun -n spice-glib -p /sbin/ldconfig | |
245 | ||
246 | %files -f %{name}.lang | |
247 | %defattr(644,root,root,755) | |
248 | %doc AUTHORS NEWS README THANKS TODO | |
249 | %attr(755,root,root) %{_bindir}/spicy | |
250 | %attr(755,root,root) %{_bindir}/spicy-screenshot | |
251 | %attr(755,root,root) %{_bindir}/spicy-stats | |
252 | %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so.*.*.* | |
253 | %attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-3.0.so.5 | |
254 | %{_libdir}/girepository-1.0/SpiceClientGtk-3.0.typelib | |
255 | %{_mandir}/man1/spice-client.1* | |
256 | ||
257 | %files devel | |
258 | %defattr(644,root,root,755) | |
259 | %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so | |
260 | %{_includedir}/spice-client-gtk-3.0 | |
261 | %{_pkgconfigdir}/spice-client-gtk-3.0.pc | |
262 | %{_datadir}/gir-1.0/SpiceClientGtk-3.0.gir | |
263 | ||
264 | %if %{with static_libs} | |
265 | %files static | |
266 | %defattr(644,root,root,755) | |
267 | %{_libdir}/libspice-client-gtk-3.0.a | |
268 | %endif | |
269 | ||
270 | %files apidocs | |
271 | %defattr(644,root,root,755) | |
272 | %{_gtkdocdir}/spice-gtk | |
273 | ||
274 | %files -n spice-glib | |
275 | %defattr(644,root,root,755) | |
276 | %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so.*.*.* | |
277 | %attr(755,root,root) %ghost %{_libdir}/libspice-client-glib-2.0.so.8 | |
278 | %attr(755,root,root) %{_libdir}/libspice-controller.so.*.*.* | |
279 | %attr(755,root,root) %ghost %{_libdir}/libspice-controller.so.0 | |
280 | %{_libdir}/girepository-1.0/SpiceClientGLib-2.0.typelib | |
281 | ||
282 | %files -n spice-glib-devel | |
283 | %defattr(644,root,root,755) | |
284 | %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so | |
285 | %attr(755,root,root) %{_libdir}/libspice-controller.so | |
286 | %{_includedir}/spice-client-glib-2.0 | |
287 | %{_includedir}/spice-controller | |
288 | %{_pkgconfigdir}/spice-client-glib-2.0.pc | |
289 | %{_pkgconfigdir}/spice-controller.pc | |
290 | %{_datadir}/gir-1.0/SpiceClientGLib-2.0.gir | |
291 | ||
292 | %if %{with static_libs} | |
293 | %files -n spice-glib-static | |
294 | %defattr(644,root,root,755) | |
295 | %{_libdir}/libspice-client-glib-2.0.a | |
296 | %{_libdir}/libspice-controller.a | |
297 | %endif | |
298 | ||
299 | %if %{with usbredir} | |
300 | %files -n spice-glib-usb | |
301 | %defattr(644,root,root,755) | |
302 | %attr(755,root,root) %{_bindir}/spice-client-glib-usb-acl-helper | |
303 | %{_datadir}/polkit-1/actions/org.spice-space.lowlevelusbaccess.policy | |
304 | %endif | |
305 | ||
306 | %files -n vala-spice-protocol | |
307 | %defattr(644,root,root,755) | |
308 | %{_datadir}/vala/vapi/spice-protocol.vapi |