]>
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 | |
1334aea5 JP |
10 | Version: 0.34 |
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 |
1334aea5 | 15 | # Source0-md5: ec01b0b50337aa23f0566423b2f83109 |
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 |
dbdf4160 | 24 | BuildRequires: gettext-tools >= 0.17 |
e6cbe985 | 25 | BuildRequires: glib2-devel >= 1:2.44 |
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 | |
ac983768 | 29 | BuildRequires: gtk+3-devel >= 3.0 |
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 |
ece362d5 | 47 | BuildRequires: spice-protocol >= 0.12.11 |
62e09e7e | 48 | BuildRequires: xorg-lib-libX11-devel |
887be46e JB |
49 | BuildRequires: xorg-lib-libXrandr-devel |
50 | BuildRequires: zlib-devel | |
62e09e7e JB |
51 | %if %{with usbredir} |
52 | BuildRequires: acl-devel | |
178a4f62 | 53 | BuildRequires: libusb-devel >= 1.0.16 |
61cee34f | 54 | BuildRequires: polkit-devel >= 0.96 |
f09efb9b | 55 | BuildRequires: usbredir-devel >= 0.5.2 |
62e09e7e JB |
56 | %endif |
57 | %{?with_smartcard:Requires: libcacard >= 0.1.2} | |
12078fdb | 58 | Requires: spice-glib = %{version}-%{release} |
887be46e JB |
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 | |
12078fdb JB |
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 | |
f4803be1 | 71 | Requires: %{name} = %{version}-%{release} |
12078fdb | 72 | Requires: gtk+3-devel >= 3.0 |
7bfc8f3c | 73 | Requires: spice-glib-devel = %{version}-%{release} |
887be46e JB |
74 | |
75 | %description devel | |
12078fdb | 76 | Header files for SPICE GTK 3.0 client library. |
887be46e JB |
77 | |
78 | %description devel -l pl.UTF-8 | |
12078fdb | 79 | Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0. |
887be46e JB |
80 | |
81 | %package static | |
12078fdb JB |
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 | |
887be46e JB |
85 | Requires: %{name}-devel = %{version}-%{release} |
86 | ||
87 | %description static | |
12078fdb | 88 | Static SPICE GTK 3.0 client library. |
887be46e JB |
89 | |
90 | %description static -l pl.UTF-8 | |
12078fdb | 91 | Statyczna biblioteka kliencka SPICE GTK 3.0. |
887be46e JB |
92 | |
93 | %package apidocs | |
94 | Summary: SPICE GTK API documentation | |
12078fdb | 95 | Summary(pl.UTF-8): Dokumentacja API bibliotek SPICE GTK |
887be46e | 96 | Group: Documentation |
d5623c14 ER |
97 | %if "%{_rpmversion}" >= "5" |
98 | BuildArch: noarch | |
99 | %endif | |
887be46e JB |
100 | |
101 | %description apidocs | |
12078fdb | 102 | API documentation for SPICE GTK libraries. |
887be46e JB |
103 | |
104 | %description apidocs -l pl.UTF-8 | |
12078fdb JB |
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 | |
f6dbd78a | 112 | Requires: glib2 >= 1:2.44 |
62e09e7e | 113 | %{?with_smartcard:Requires: libcacard >= 0.1.2} |
f6dbd78a | 114 | Requires: libsoup >= 2.50 |
8cdeb0fc | 115 | Requires: opus >= 0.9.14 |
12078fdb | 116 | Requires: pixman >= 0.17.7 |
62e09e7e | 117 | %if %{with usbredir} |
178a4f62 | 118 | Requires: libusb >= 1.0.16 |
f09efb9b | 119 | Requires: usbredir >= 0.5.2 |
62e09e7e | 120 | %endif |
12078fdb JB |
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 | |
62e09e7e | 133 | Requires: cyrus-sasl-devel >= 2.0 |
f6dbd78a | 134 | Requires: glib2-devel >= 1:2.44 |
62e09e7e JB |
135 | %{?with_smartcard:Requires: libcacard-devel >= 0.1.2} |
136 | Requires: libjpeg-devel | |
12078fdb JB |
137 | Requires: openssl-devel |
138 | Requires: pixman-devel >= 0.17.7 | |
62e09e7e | 139 | Requires: pulseaudio-devel |
12078fdb | 140 | Requires: spice-glib = %{version}-%{release} |
ece362d5 | 141 | Requires: spice-protocol >= 0.12.11 |
62e09e7e | 142 | %if %{with usbredir} |
178a4f62 | 143 | Requires: libusb-devel >= 1.0.16 |
f09efb9b | 144 | Requires: usbredir-devel >= 0.5.2 |
62e09e7e | 145 | %endif |
12078fdb JB |
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 | ||
62e09e7e JB |
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 | |
61cee34f | 169 | Requires: polkit >= 0.96 |
7bfc8f3c | 170 | Requires: spice-glib = %{version}-%{release} |
62e09e7e JB |
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 | ||
12078fdb JB |
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 | |
887be46e | 182 | Group: Development/Libraries |
ece362d5 | 183 | Requires: spice-protocol >= 0.12.11 |
178a4f62 | 184 | Requires: vala >= 2:0.14 |
7bfc8f3c ER |
185 | %if "%{_rpmversion}" >= "5" |
186 | BuildArch: noarch | |
187 | %endif | |
887be46e | 188 | |
12078fdb JB |
189 | %description -n vala-spice-protocol |
190 | Vala API for SPICE client library. | |
887be46e | 191 | |
12078fdb JB |
192 | %description -n vala-spice-protocol -l pl.UTF-8 |
193 | Interfejs języka Vala do biblioteki klienckiej SPICE. | |
887be46e JB |
194 | |
195 | %prep | |
196 | %setup -q | |
197 | %patch0 -p1 | |
887be46e JB |
198 | |
199 | %build | |
1334aea5 | 200 | %{__gettextize} |
887be46e JB |
201 | %{__libtoolize} |
202 | %{__aclocal} -I m4 | |
203 | %{__autoconf} | |
204 | %{__autoheader} | |
205 | %{__automake} | |
fc53070c JB |
206 | cd spice-common |
207 | %{__aclocal} -I m4 | |
208 | %{__autoconf} | |
209 | %{__autoheader} | |
210 | %{__automake} | |
211 | cd .. | |
12078fdb | 212 | |
ac983768 | 213 | %configure \ |
6cda7c5a JB |
214 | --enable-gtk-doc \ |
215 | --enable-lz4 \ | |
12078fdb | 216 | --disable-silent-rules \ |
62e09e7e | 217 | %{!?with_smartcard:--disable-smartcard} \ |
6cda7c5a | 218 | %{?with_static_libs:--enable-static} \ |
62e09e7e | 219 | %{!?with_usbredir:--disable-usbredir} \ |
12078fdb | 220 | --with-gtk=3.0 \ |
fc53070c JB |
221 | --with-html-dir=%{_gtkdocdir} \ |
222 | --with-pnp-ids-path=/lib/hwdata/pnp.ids \ | |
223 | --with-usb-ids-path=/lib/hwdata/usb.ids | |
54d84664 | 224 | %{__make} |
887be46e JB |
225 | |
226 | %install | |
227 | rm -rf $RPM_BUILD_ROOT | |
228 | ||
ac983768 | 229 | %{__make} install -j1 \ |
12078fdb JB |
230 | DESTDIR=$RPM_BUILD_ROOT |
231 | ||
887be46e JB |
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 | ||
12078fdb JB |
243 | %post -n spice-glib -p /sbin/ldconfig |
244 | %postun -n spice-glib -p /sbin/ldconfig | |
245 | ||
887be46e JB |
246 | %files -f %{name}.lang |
247 | %defattr(644,root,root,755) | |
248 | %doc AUTHORS NEWS README THANKS TODO | |
887be46e | 249 | %attr(755,root,root) %{_bindir}/spicy |
82d73980 | 250 | %attr(755,root,root) %{_bindir}/spicy-screenshot |
12078fdb JB |
251 | %attr(755,root,root) %{_bindir}/spicy-stats |
252 | %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so.*.*.* | |
ac983768 | 253 | %attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-3.0.so.5 |
12078fdb | 254 | %{_libdir}/girepository-1.0/SpiceClientGtk-3.0.typelib |
6cda7c5a | 255 | %{_mandir}/man1/spice-client.1* |
12078fdb JB |
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 | ||
6cda7c5a | 264 | %if %{with static_libs} |
12078fdb JB |
265 | %files static |
266 | %defattr(644,root,root,755) | |
267 | %{_libdir}/libspice-client-gtk-3.0.a | |
6cda7c5a | 268 | %endif |
12078fdb JB |
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) | |
887be46e | 276 | %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so.*.*.* |
35affeb9 | 277 | %attr(755,root,root) %ghost %{_libdir}/libspice-client-glib-2.0.so.8 |
887be46e JB |
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 | |
887be46e | 281 | |
12078fdb | 282 | %files -n spice-glib-devel |
887be46e JB |
283 | %defattr(644,root,root,755) |
284 | %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so | |
887be46e JB |
285 | %attr(755,root,root) %{_libdir}/libspice-controller.so |
286 | %{_includedir}/spice-client-glib-2.0 | |
887be46e JB |
287 | %{_includedir}/spice-controller |
288 | %{_pkgconfigdir}/spice-client-glib-2.0.pc | |
887be46e JB |
289 | %{_pkgconfigdir}/spice-controller.pc |
290 | %{_datadir}/gir-1.0/SpiceClientGLib-2.0.gir | |
887be46e | 291 | |
6cda7c5a | 292 | %if %{with static_libs} |
12078fdb | 293 | %files -n spice-glib-static |
887be46e JB |
294 | %defattr(644,root,root,755) |
295 | %{_libdir}/libspice-client-glib-2.0.a | |
887be46e | 296 | %{_libdir}/libspice-controller.a |
6cda7c5a | 297 | %endif |
887be46e | 298 | |
62e09e7e JB |
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 | ||
12078fdb | 306 | %files -n vala-spice-protocol |
887be46e JB |
307 | %defattr(644,root,root,755) |
308 | %{_datadir}/vala/vapi/spice-protocol.vapi |