]>
Commit | Line | Data |
---|---|---|
62e09e7e JB |
1 | # |
2 | # Conditional build: | |
62e09e7e JB |
3 | %bcond_without smartcard # Smartcard support |
4 | %bcond_without usbredir # USB redirection | |
6cda7c5a | 5 | %bcond_without static_libs # static libraries |
7bfc8f3c | 6 | |
887be46e JB |
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 | |
508a1f0e JP |
10 | Version: 0.36 |
11 | Release: 1 | |
887be46e JB |
12 | License: LGPL v2.1+ |
13 | Group: X11/Applications | |
7471ac15 | 14 | Source0: http://www.spice-space.org/download/gtk/%{name}-%{version}.tar.bz2 |
508a1f0e | 15 | # Source0-md5: 2b5561bcd386ff403eed59cc34cbaa1b |
ac983768 | 16 | Patch0: %{name}-am.patch |
887be46e | 17 | URL: http://spice-space.org/ |
fc53070c JB |
18 | BuildRequires: autoconf >= 2.63 |
19 | BuildRequires: automake >= 1:1.11 | |
887be46e JB |
20 | BuildRequires: cairo-devel >= 1.2.0 |
21 | BuildRequires: celt051-devel >= 0.5.1.1 | |
22 | BuildRequires: cyrus-sasl-devel >= 2.0 | |
2715df15 | 23 | BuildRequires: gcc >= 5:3.0 |
1b9f8e49 JP |
24 | BuildRequires: gettext-tools >= 0.19.8 |
25 | BuildRequires: glib2-devel >= 1:2.46 | |
7bfc8f3c | 26 | BuildRequires: gobject-introspection-devel >= 0.9.4 |
ece362d5 JB |
27 | BuildRequires: gstreamer-devel >= 1.0 |
28 | BuildRequires: gstreamer-plugins-base-devel >= 1.0 | |
2c447c96 | 29 | BuildRequires: gtk+3-devel >= 3.22 |
7bfc8f3c | 30 | BuildRequires: gtk-doc >= 1.14 |
62e09e7e | 31 | %{?with_smartcard:BuildRequires: libcacard-devel >= 0.1.2} |
ece362d5 | 32 | BuildRequires: libepoxy-devel |
887be46e | 33 | BuildRequires: libjpeg-devel |
f6dbd78a | 34 | BuildRequires: libsoup-devel >= 2.50 |
887be46e JB |
35 | BuildRequires: libstdc++-devel |
36 | BuildRequires: libtool >= 2:2.0 | |
6cda7c5a | 37 | BuildRequires: lz4-devel |
887be46e | 38 | BuildRequires: openssl-devel |
8cdeb0fc | 39 | BuildRequires: opus-devel >= 0.9.14 |
887be46e JB |
40 | BuildRequires: perl-Text-CSV |
41 | BuildRequires: perl-base >= 1:5.8.1 | |
e6cbe985 | 42 | BuildRequires: phodav-devel >= 2.0 |
887be46e JB |
43 | BuildRequires: pixman-devel >= 0.17.7 |
44 | BuildRequires: pkgconfig | |
45 | BuildRequires: pulseaudio-devel | |
35affeb9 | 46 | BuildRequires: sed >= 4.0 |
508a1f0e | 47 | BuildRequires: spice-protocol >= 0.12.15 |
1b9f8e49 | 48 | BuildRequires: vala >= 0.14 |
62e09e7e | 49 | BuildRequires: xorg-lib-libX11-devel |
887be46e JB |
50 | BuildRequires: xorg-lib-libXrandr-devel |
51 | BuildRequires: zlib-devel | |
62e09e7e JB |
52 | %if %{with usbredir} |
53 | BuildRequires: acl-devel | |
178a4f62 | 54 | BuildRequires: libusb-devel >= 1.0.16 |
61cee34f | 55 | BuildRequires: polkit-devel >= 0.96 |
f09efb9b | 56 | BuildRequires: usbredir-devel >= 0.5.2 |
62e09e7e | 57 | %endif |
2c447c96 | 58 | Requires: gtk+3 >= 3.22 |
62e09e7e | 59 | %{?with_smartcard:Requires: libcacard >= 0.1.2} |
12078fdb | 60 | Requires: spice-glib = %{version}-%{release} |
887be46e JB |
61 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
62 | ||
63 | %description | |
64 | A GTK+ client and libraries for SPICE remote desktop servers. | |
65 | ||
66 | %description -l pl.UTF-8 | |
67 | Klient i biblioteki GTK+ dla serwerów zdalnych pulpitów SPICE. | |
68 | ||
69 | %package devel | |
12078fdb JB |
70 | Summary: Header files for SPICE GTK 3.0 client library |
71 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0 | |
72 | Group: X11/Development/Libraries | |
f4803be1 | 73 | Requires: %{name} = %{version}-%{release} |
2c447c96 | 74 | Requires: gtk+3-devel >= 3.22 |
7bfc8f3c | 75 | Requires: spice-glib-devel = %{version}-%{release} |
887be46e JB |
76 | |
77 | %description devel | |
12078fdb | 78 | Header files for SPICE GTK 3.0 client library. |
887be46e JB |
79 | |
80 | %description devel -l pl.UTF-8 | |
12078fdb | 81 | Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0. |
887be46e JB |
82 | |
83 | %package static | |
12078fdb JB |
84 | Summary: Static SPICE GTK 3.0 client library |
85 | Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GTK 3.0 | |
86 | Group: X11/Development/Libraries | |
887be46e JB |
87 | Requires: %{name}-devel = %{version}-%{release} |
88 | ||
89 | %description static | |
12078fdb | 90 | Static SPICE GTK 3.0 client library. |
887be46e JB |
91 | |
92 | %description static -l pl.UTF-8 | |
12078fdb | 93 | Statyczna biblioteka kliencka SPICE GTK 3.0. |
887be46e JB |
94 | |
95 | %package apidocs | |
96 | Summary: SPICE GTK API documentation | |
12078fdb | 97 | Summary(pl.UTF-8): Dokumentacja API bibliotek SPICE GTK |
887be46e | 98 | Group: Documentation |
d5623c14 ER |
99 | %if "%{_rpmversion}" >= "5" |
100 | BuildArch: noarch | |
101 | %endif | |
887be46e JB |
102 | |
103 | %description apidocs | |
12078fdb | 104 | API documentation for SPICE GTK libraries. |
887be46e JB |
105 | |
106 | %description apidocs -l pl.UTF-8 | |
12078fdb JB |
107 | Dokumentacja API bibliotek SPICE GTK. |
108 | ||
109 | %package -n spice-glib | |
110 | Summary: SPICE Client GLib library | |
111 | Summary(pl.UTF-8): Biblioteka kliencka SPICE GLib | |
112 | Group: Libraries | |
113 | Requires: celt051 >= 0.5.1.1 | |
2c447c96 | 114 | Requires: glib2 >= 1:2.46 |
62e09e7e | 115 | %{?with_smartcard:Requires: libcacard >= 0.1.2} |
f6dbd78a | 116 | Requires: libsoup >= 2.50 |
8cdeb0fc | 117 | Requires: opus >= 0.9.14 |
12078fdb | 118 | Requires: pixman >= 0.17.7 |
62e09e7e | 119 | %if %{with usbredir} |
178a4f62 | 120 | Requires: libusb >= 1.0.16 |
f09efb9b | 121 | Requires: usbredir >= 0.5.2 |
62e09e7e | 122 | %endif |
12078fdb JB |
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 | |
62e09e7e | 135 | Requires: cyrus-sasl-devel >= 2.0 |
2c447c96 | 136 | Requires: glib2-devel >= 1:2.46 |
62e09e7e JB |
137 | %{?with_smartcard:Requires: libcacard-devel >= 0.1.2} |
138 | Requires: libjpeg-devel | |
12078fdb JB |
139 | Requires: openssl-devel |
140 | Requires: pixman-devel >= 0.17.7 | |
62e09e7e | 141 | Requires: pulseaudio-devel |
12078fdb | 142 | Requires: spice-glib = %{version}-%{release} |
ece362d5 | 143 | Requires: spice-protocol >= 0.12.11 |
62e09e7e | 144 | %if %{with usbredir} |
178a4f62 | 145 | Requires: libusb-devel >= 1.0.16 |
f09efb9b | 146 | Requires: usbredir-devel >= 0.5.2 |
62e09e7e | 147 | %endif |
12078fdb JB |
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 | ||
62e09e7e JB |
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 | |
61cee34f | 171 | Requires: polkit >= 0.96 |
7bfc8f3c | 172 | Requires: spice-glib = %{version}-%{release} |
62e09e7e JB |
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 | ||
12078fdb JB |
181 | %package -n vala-spice-protocol |
182 | Summary: Vala API for SPICE client library | |
183 | Summary(pl.UTF-8): Interfejs języka Vala do biblioteki klienckiej SPICE | |
887be46e | 184 | Group: Development/Libraries |
ece362d5 | 185 | Requires: spice-protocol >= 0.12.11 |
178a4f62 | 186 | Requires: vala >= 2:0.14 |
7bfc8f3c ER |
187 | %if "%{_rpmversion}" >= "5" |
188 | BuildArch: noarch | |
189 | %endif | |
887be46e | 190 | |
12078fdb JB |
191 | %description -n vala-spice-protocol |
192 | Vala API for SPICE client library. | |
887be46e | 193 | |
12078fdb JB |
194 | %description -n vala-spice-protocol -l pl.UTF-8 |
195 | Interfejs języka Vala do biblioteki klienckiej SPICE. | |
887be46e JB |
196 | |
197 | %prep | |
198 | %setup -q | |
199 | %patch0 -p1 | |
887be46e JB |
200 | |
201 | %build | |
1334aea5 | 202 | %{__gettextize} |
887be46e JB |
203 | %{__libtoolize} |
204 | %{__aclocal} -I m4 | |
205 | %{__autoconf} | |
206 | %{__autoheader} | |
207 | %{__automake} | |
508a1f0e | 208 | cd subprojects/spice-common |
fc53070c JB |
209 | %{__aclocal} -I m4 |
210 | %{__autoconf} | |
211 | %{__autoheader} | |
212 | %{__automake} | |
508a1f0e | 213 | cd ../.. |
12078fdb | 214 | |
ac983768 | 215 | %configure \ |
1b9f8e49 | 216 | --enable-celt051 \ |
6cda7c5a JB |
217 | --enable-gtk-doc \ |
218 | --enable-lz4 \ | |
1b9f8e49 | 219 | --enable-vala \ |
12078fdb | 220 | --disable-silent-rules \ |
62e09e7e | 221 | %{!?with_smartcard:--disable-smartcard} \ |
6cda7c5a | 222 | %{?with_static_libs:--enable-static} \ |
62e09e7e | 223 | %{!?with_usbredir:--disable-usbredir} \ |
12078fdb | 224 | --with-gtk=3.0 \ |
fc53070c JB |
225 | --with-html-dir=%{_gtkdocdir} \ |
226 | --with-pnp-ids-path=/lib/hwdata/pnp.ids \ | |
227 | --with-usb-ids-path=/lib/hwdata/usb.ids | |
54d84664 | 228 | %{__make} |
887be46e JB |
229 | |
230 | %install | |
231 | rm -rf $RPM_BUILD_ROOT | |
232 | ||
ac983768 | 233 | %{__make} install -j1 \ |
12078fdb JB |
234 | DESTDIR=$RPM_BUILD_ROOT |
235 | ||
887be46e JB |
236 | # obsoleted by pkg-config |
237 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
238 | ||
239 | %find_lang %{name} | |
240 | ||
241 | %clean | |
242 | rm -rf $RPM_BUILD_ROOT | |
243 | ||
244 | %post -p /sbin/ldconfig | |
245 | %postun -p /sbin/ldconfig | |
246 | ||
12078fdb JB |
247 | %post -n spice-glib -p /sbin/ldconfig |
248 | %postun -n spice-glib -p /sbin/ldconfig | |
249 | ||
887be46e JB |
250 | %files -f %{name}.lang |
251 | %defattr(644,root,root,755) | |
508a1f0e | 252 | %doc AUTHORS NEWS README THANKS |
887be46e | 253 | %attr(755,root,root) %{_bindir}/spicy |
82d73980 | 254 | %attr(755,root,root) %{_bindir}/spicy-screenshot |
12078fdb JB |
255 | %attr(755,root,root) %{_bindir}/spicy-stats |
256 | %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so.*.*.* | |
ac983768 | 257 | %attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-3.0.so.5 |
12078fdb | 258 | %{_libdir}/girepository-1.0/SpiceClientGtk-3.0.typelib |
6cda7c5a | 259 | %{_mandir}/man1/spice-client.1* |
12078fdb JB |
260 | |
261 | %files devel | |
262 | %defattr(644,root,root,755) | |
263 | %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so | |
264 | %{_includedir}/spice-client-gtk-3.0 | |
265 | %{_pkgconfigdir}/spice-client-gtk-3.0.pc | |
266 | %{_datadir}/gir-1.0/SpiceClientGtk-3.0.gir | |
267 | ||
6cda7c5a | 268 | %if %{with static_libs} |
12078fdb JB |
269 | %files static |
270 | %defattr(644,root,root,755) | |
271 | %{_libdir}/libspice-client-gtk-3.0.a | |
6cda7c5a | 272 | %endif |
12078fdb JB |
273 | |
274 | %files apidocs | |
275 | %defattr(644,root,root,755) | |
276 | %{_gtkdocdir}/spice-gtk | |
277 | ||
278 | %files -n spice-glib | |
279 | %defattr(644,root,root,755) | |
887be46e | 280 | %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so.*.*.* |
35affeb9 | 281 | %attr(755,root,root) %ghost %{_libdir}/libspice-client-glib-2.0.so.8 |
887be46e | 282 | %{_libdir}/girepository-1.0/SpiceClientGLib-2.0.typelib |
887be46e | 283 | |
12078fdb | 284 | %files -n spice-glib-devel |
887be46e JB |
285 | %defattr(644,root,root,755) |
286 | %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so | |
887be46e | 287 | %{_includedir}/spice-client-glib-2.0 |
887be46e | 288 | %{_pkgconfigdir}/spice-client-glib-2.0.pc |
887be46e | 289 | %{_datadir}/gir-1.0/SpiceClientGLib-2.0.gir |
887be46e | 290 | |
6cda7c5a | 291 | %if %{with static_libs} |
12078fdb | 292 | %files -n spice-glib-static |
887be46e JB |
293 | %defattr(644,root,root,755) |
294 | %{_libdir}/libspice-client-glib-2.0.a | |
6cda7c5a | 295 | %endif |
887be46e | 296 | |
62e09e7e JB |
297 | %if %{with usbredir} |
298 | %files -n spice-glib-usb | |
299 | %defattr(644,root,root,755) | |
8f5ced4e | 300 | %attr(4755,root,root) %{_bindir}/spice-client-glib-usb-acl-helper |
62e09e7e JB |
301 | %{_datadir}/polkit-1/actions/org.spice-space.lowlevelusbaccess.policy |
302 | %endif | |
303 | ||
12078fdb | 304 | %files -n vala-spice-protocol |
887be46e | 305 | %defattr(644,root,root,755) |
1b9f8e49 JP |
306 | %{_datadir}/vala/vapi/spice-client-glib-2.0.deps |
307 | %{_datadir}/vala/vapi/spice-client-glib-2.0.vapi | |
308 | %{_datadir}/vala/vapi/spice-client-gtk-3.0.deps | |
309 | %{_datadir}/vala/vapi/spice-client-gtk-3.0.vapi |