]>
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 | |
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 |
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 JB |
57 | %endif |
58 | %{?with_smartcard:Requires: libcacard >= 0.1.2} | |
12078fdb | 59 | Requires: spice-glib = %{version}-%{release} |
887be46e JB |
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 | |
12078fdb JB |
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 | |
f4803be1 | 72 | Requires: %{name} = %{version}-%{release} |
12078fdb | 73 | Requires: gtk+3-devel >= 3.0 |
7bfc8f3c | 74 | Requires: spice-glib-devel = %{version}-%{release} |
887be46e JB |
75 | |
76 | %description devel | |
12078fdb | 77 | Header files for SPICE GTK 3.0 client library. |
887be46e JB |
78 | |
79 | %description devel -l pl.UTF-8 | |
12078fdb | 80 | Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0. |
887be46e JB |
81 | |
82 | %package static | |
12078fdb JB |
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 | |
887be46e JB |
86 | Requires: %{name}-devel = %{version}-%{release} |
87 | ||
88 | %description static | |
12078fdb | 89 | Static SPICE GTK 3.0 client library. |
887be46e JB |
90 | |
91 | %description static -l pl.UTF-8 | |
12078fdb | 92 | Statyczna biblioteka kliencka SPICE GTK 3.0. |
887be46e JB |
93 | |
94 | %package apidocs | |
95 | Summary: SPICE GTK API documentation | |
12078fdb | 96 | Summary(pl.UTF-8): Dokumentacja API bibliotek SPICE GTK |
887be46e | 97 | Group: Documentation |
d5623c14 ER |
98 | %if "%{_rpmversion}" >= "5" |
99 | BuildArch: noarch | |
100 | %endif | |
887be46e JB |
101 | |
102 | %description apidocs | |
12078fdb | 103 | API documentation for SPICE GTK libraries. |
887be46e JB |
104 | |
105 | %description apidocs -l pl.UTF-8 | |
12078fdb JB |
106 | Dokumentacja API bibliotek SPICE GTK. |
107 | ||
108 | %package -n spice-glib | |
109 | Summary: SPICE Client GLib library | |
110 | Summary(pl.UTF-8): Biblioteka kliencka SPICE GLib | |
111 | Group: Libraries | |
112 | Requires: celt051 >= 0.5.1.1 | |
f6dbd78a | 113 | Requires: glib2 >= 1:2.44 |
62e09e7e | 114 | %{?with_smartcard:Requires: libcacard >= 0.1.2} |
f6dbd78a | 115 | Requires: libsoup >= 2.50 |
8cdeb0fc | 116 | Requires: opus >= 0.9.14 |
12078fdb | 117 | Requires: pixman >= 0.17.7 |
62e09e7e | 118 | %if %{with usbredir} |
178a4f62 | 119 | Requires: libusb >= 1.0.16 |
f09efb9b | 120 | Requires: usbredir >= 0.5.2 |
62e09e7e | 121 | %endif |
12078fdb JB |
122 | |
123 | %description -n spice-glib | |
124 | SPICE Client GLib library. | |
125 | ||
126 | %description -n spice-glib -l pl.UTF-8 | |
127 | Biblioteka kliencka SPICE GLib. | |
128 | ||
129 | %package -n spice-glib-devel | |
130 | Summary: Header files for SPICE Client GLib library | |
131 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GLib | |
132 | Group: Development/Libraries | |
133 | Requires: celt051-devel >= 0.5.1.1 | |
62e09e7e | 134 | Requires: cyrus-sasl-devel >= 2.0 |
f6dbd78a | 135 | Requires: glib2-devel >= 1:2.44 |
62e09e7e JB |
136 | %{?with_smartcard:Requires: libcacard-devel >= 0.1.2} |
137 | Requires: libjpeg-devel | |
12078fdb JB |
138 | Requires: openssl-devel |
139 | Requires: pixman-devel >= 0.17.7 | |
62e09e7e | 140 | Requires: pulseaudio-devel |
12078fdb | 141 | Requires: spice-glib = %{version}-%{release} |
ece362d5 | 142 | Requires: spice-protocol >= 0.12.11 |
62e09e7e | 143 | %if %{with usbredir} |
178a4f62 | 144 | Requires: libusb-devel >= 1.0.16 |
f09efb9b | 145 | Requires: usbredir-devel >= 0.5.2 |
62e09e7e | 146 | %endif |
12078fdb JB |
147 | |
148 | %description -n spice-glib-devel | |
149 | Header files for SPICE Client GLib library. | |
150 | ||
151 | %description -n spice-glib-devel -l pl.UTF-8 | |
152 | Pliki nagłówkowe biblioteki klienckiej SPICE GLib. | |
153 | ||
154 | %package -n spice-glib-static | |
155 | Summary: SPICE Client GLib static library | |
156 | Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GLib | |
157 | Group: Development/Libraries | |
158 | Requires: spice-glib-devel = %{version}-%{release} | |
159 | ||
160 | %description -n spice-glib-static | |
161 | SPICE Client GLib static library. | |
162 | ||
163 | %description -n spice-glib-static -l pl.UTF-8 | |
164 | Statyczna biblioteka kliencka SPICE GLib. | |
165 | ||
62e09e7e JB |
166 | %package -n spice-glib-usb |
167 | Summary: USB redirection ACL helper for SPICE Client GLib library | |
168 | Summary(pl.UTF-8): Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej SPICE GLib | |
169 | Group: Applications/System | |
61cee34f | 170 | Requires: polkit >= 0.96 |
7bfc8f3c | 171 | Requires: spice-glib = %{version}-%{release} |
62e09e7e JB |
172 | |
173 | %description -n spice-glib-usb | |
174 | USB redirection ACL helper for SPICE Client GLib library. | |
175 | ||
176 | %description -n spice-glib-usb -l pl.UTF-8 | |
177 | Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej | |
178 | SPICE GLib. | |
179 | ||
12078fdb JB |
180 | %package -n vala-spice-protocol |
181 | Summary: Vala API for SPICE client library | |
182 | Summary(pl.UTF-8): Interfejs języka Vala do biblioteki klienckiej SPICE | |
887be46e | 183 | Group: Development/Libraries |
ece362d5 | 184 | Requires: spice-protocol >= 0.12.11 |
178a4f62 | 185 | Requires: vala >= 2:0.14 |
7bfc8f3c ER |
186 | %if "%{_rpmversion}" >= "5" |
187 | BuildArch: noarch | |
188 | %endif | |
887be46e | 189 | |
12078fdb JB |
190 | %description -n vala-spice-protocol |
191 | Vala API for SPICE client library. | |
887be46e | 192 | |
12078fdb JB |
193 | %description -n vala-spice-protocol -l pl.UTF-8 |
194 | Interfejs języka Vala do biblioteki klienckiej SPICE. | |
887be46e JB |
195 | |
196 | %prep | |
197 | %setup -q | |
198 | %patch0 -p1 | |
887be46e JB |
199 | |
200 | %build | |
1334aea5 | 201 | %{__gettextize} |
887be46e JB |
202 | %{__libtoolize} |
203 | %{__aclocal} -I m4 | |
204 | %{__autoconf} | |
205 | %{__autoheader} | |
206 | %{__automake} | |
508a1f0e | 207 | cd subprojects/spice-common |
fc53070c JB |
208 | %{__aclocal} -I m4 |
209 | %{__autoconf} | |
210 | %{__autoheader} | |
211 | %{__automake} | |
508a1f0e | 212 | cd ../.. |
12078fdb | 213 | |
ac983768 | 214 | %configure \ |
1b9f8e49 | 215 | --enable-celt051 \ |
6cda7c5a JB |
216 | --enable-gtk-doc \ |
217 | --enable-lz4 \ | |
1b9f8e49 | 218 | --enable-vala \ |
12078fdb | 219 | --disable-silent-rules \ |
62e09e7e | 220 | %{!?with_smartcard:--disable-smartcard} \ |
6cda7c5a | 221 | %{?with_static_libs:--enable-static} \ |
62e09e7e | 222 | %{!?with_usbredir:--disable-usbredir} \ |
12078fdb | 223 | --with-gtk=3.0 \ |
fc53070c JB |
224 | --with-html-dir=%{_gtkdocdir} \ |
225 | --with-pnp-ids-path=/lib/hwdata/pnp.ids \ | |
226 | --with-usb-ids-path=/lib/hwdata/usb.ids | |
54d84664 | 227 | %{__make} |
887be46e JB |
228 | |
229 | %install | |
230 | rm -rf $RPM_BUILD_ROOT | |
231 | ||
ac983768 | 232 | %{__make} install -j1 \ |
12078fdb JB |
233 | DESTDIR=$RPM_BUILD_ROOT |
234 | ||
887be46e JB |
235 | # obsoleted by pkg-config |
236 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
237 | ||
238 | %find_lang %{name} | |
239 | ||
240 | %clean | |
241 | rm -rf $RPM_BUILD_ROOT | |
242 | ||
243 | %post -p /sbin/ldconfig | |
244 | %postun -p /sbin/ldconfig | |
245 | ||
12078fdb JB |
246 | %post -n spice-glib -p /sbin/ldconfig |
247 | %postun -n spice-glib -p /sbin/ldconfig | |
248 | ||
887be46e JB |
249 | %files -f %{name}.lang |
250 | %defattr(644,root,root,755) | |
508a1f0e | 251 | %doc AUTHORS NEWS README THANKS |
887be46e | 252 | %attr(755,root,root) %{_bindir}/spicy |
82d73980 | 253 | %attr(755,root,root) %{_bindir}/spicy-screenshot |
12078fdb JB |
254 | %attr(755,root,root) %{_bindir}/spicy-stats |
255 | %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so.*.*.* | |
ac983768 | 256 | %attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-3.0.so.5 |
12078fdb | 257 | %{_libdir}/girepository-1.0/SpiceClientGtk-3.0.typelib |
6cda7c5a | 258 | %{_mandir}/man1/spice-client.1* |
12078fdb JB |
259 | |
260 | %files devel | |
261 | %defattr(644,root,root,755) | |
262 | %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so | |
263 | %{_includedir}/spice-client-gtk-3.0 | |
264 | %{_pkgconfigdir}/spice-client-gtk-3.0.pc | |
265 | %{_datadir}/gir-1.0/SpiceClientGtk-3.0.gir | |
266 | ||
6cda7c5a | 267 | %if %{with static_libs} |
12078fdb JB |
268 | %files static |
269 | %defattr(644,root,root,755) | |
270 | %{_libdir}/libspice-client-gtk-3.0.a | |
6cda7c5a | 271 | %endif |
12078fdb JB |
272 | |
273 | %files apidocs | |
274 | %defattr(644,root,root,755) | |
275 | %{_gtkdocdir}/spice-gtk | |
276 | ||
277 | %files -n spice-glib | |
278 | %defattr(644,root,root,755) | |
887be46e | 279 | %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so.*.*.* |
35affeb9 | 280 | %attr(755,root,root) %ghost %{_libdir}/libspice-client-glib-2.0.so.8 |
887be46e | 281 | %{_libdir}/girepository-1.0/SpiceClientGLib-2.0.typelib |
887be46e | 282 | |
12078fdb | 283 | %files -n spice-glib-devel |
887be46e JB |
284 | %defattr(644,root,root,755) |
285 | %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so | |
887be46e | 286 | %{_includedir}/spice-client-glib-2.0 |
887be46e | 287 | %{_pkgconfigdir}/spice-client-glib-2.0.pc |
887be46e | 288 | %{_datadir}/gir-1.0/SpiceClientGLib-2.0.gir |
887be46e | 289 | |
6cda7c5a | 290 | %if %{with static_libs} |
12078fdb | 291 | %files -n spice-glib-static |
887be46e JB |
292 | %defattr(644,root,root,755) |
293 | %{_libdir}/libspice-client-glib-2.0.a | |
6cda7c5a | 294 | %endif |
887be46e | 295 | |
62e09e7e JB |
296 | %if %{with usbredir} |
297 | %files -n spice-glib-usb | |
298 | %defattr(644,root,root,755) | |
8f5ced4e | 299 | %attr(4755,root,root) %{_bindir}/spice-client-glib-usb-acl-helper |
62e09e7e JB |
300 | %{_datadir}/polkit-1/actions/org.spice-space.lowlevelusbaccess.policy |
301 | %endif | |
302 | ||
12078fdb | 303 | %files -n vala-spice-protocol |
887be46e | 304 | %defattr(644,root,root,755) |
1b9f8e49 JP |
305 | %{_datadir}/vala/vapi/spice-client-glib-2.0.deps |
306 | %{_datadir}/vala/vapi/spice-client-glib-2.0.vapi | |
307 | %{_datadir}/vala/vapi/spice-client-gtk-3.0.deps | |
308 | %{_datadir}/vala/vapi/spice-client-gtk-3.0.vapi |