]>
Commit | Line | Data |
---|---|---|
62e09e7e JB |
1 | # |
2 | # Conditional build: | |
62e09e7e JB |
3 | %bcond_without smartcard # Smartcard support |
4 | %bcond_without usbredir # USB redirection | |
7bfc8f3c | 5 | |
887be46e JB |
6 | Summary: A GTK+ client and libraries for SPICE remote desktop servers |
7 | Summary(pl.UTF-8): Klient i biblioteki GTK+ dla serwerów zdalnych pulpitów SPICE | |
8 | Name: spice-gtk | |
dd352cc0 JP |
9 | Version: 0.39 |
10 | Release: 1 | |
887be46e JB |
11 | License: LGPL v2.1+ |
12 | Group: X11/Applications | |
e82a4e4a | 13 | Source0: https://www.spice-space.org/download/gtk/%{name}-%{version}.tar.xz |
dd352cc0 | 14 | # Source0-md5: 5bdc76d5105d2b4b4472063fe04ef033 |
e82a4e4a | 15 | URL: https://spice-space.org/ |
887be46e | 16 | BuildRequires: cairo-devel >= 1.2.0 |
887be46e | 17 | BuildRequires: cyrus-sasl-devel >= 2.0 |
2715df15 | 18 | BuildRequires: gcc >= 5:3.0 |
1b9f8e49 | 19 | BuildRequires: gettext-tools >= 0.19.8 |
dd352cc0 | 20 | BuildRequires: glib2-devel >= 1:2.52 |
7bfc8f3c | 21 | BuildRequires: gobject-introspection-devel >= 0.9.4 |
e82a4e4a JB |
22 | BuildRequires: gstreamer-devel >= 1.10 |
23 | BuildRequires: gstreamer-plugins-base-devel >= 1.10 | |
2c447c96 | 24 | BuildRequires: gtk+3-devel >= 3.22 |
7bfc8f3c | 25 | BuildRequires: gtk-doc >= 1.14 |
e82a4e4a JB |
26 | BuildRequires: json-glib-devel |
27 | %{?with_smartcard:BuildRequires: libcacard-devel >= 2.5.1} | |
ece362d5 | 28 | BuildRequires: libepoxy-devel |
887be46e | 29 | BuildRequires: libjpeg-devel |
f6dbd78a | 30 | BuildRequires: libsoup-devel >= 2.50 |
887be46e | 31 | BuildRequires: libstdc++-devel |
e82a4e4a | 32 | BuildRequires: libva-x11-devel |
6cda7c5a | 33 | BuildRequires: lz4-devel |
dd352cc0 | 34 | BuildRequires: meson >= 0.53 |
e82a4e4a JB |
35 | BuildRequires: ninja >= 1.5 |
36 | BuildRequires: openssl-devel >= 1.0.0 | |
8cdeb0fc | 37 | BuildRequires: opus-devel >= 0.9.14 |
e6cbe985 | 38 | BuildRequires: phodav-devel >= 2.0 |
887be46e JB |
39 | BuildRequires: pixman-devel >= 0.17.7 |
40 | BuildRequires: pkgconfig | |
1e2262c1 | 41 | BuildRequires: rpmbuild(macros) >= 1.736 |
35affeb9 | 42 | BuildRequires: sed >= 4.0 |
dd352cc0 | 43 | BuildRequires: spice-protocol >= 0.14.3 |
1e2262c1 | 44 | BuildRequires: tar >= 1:1.22 |
1b9f8e49 | 45 | BuildRequires: vala >= 0.14 |
dd352cc0 JP |
46 | BuildRequires: wayland-devel >= 1.17.0 |
47 | BuildRequires: wayland-protocols >= 1.17 | |
62e09e7e | 48 | BuildRequires: xorg-lib-libX11-devel |
887be46e | 49 | BuildRequires: xorg-lib-libXrandr-devel |
1e2262c1 | 50 | BuildRequires: xz |
887be46e | 51 | BuildRequires: zlib-devel |
62e09e7e JB |
52 | %if %{with usbredir} |
53 | BuildRequires: acl-devel | |
1e2262c1 | 54 | BuildRequires: libusb-devel >= 1.0.21 |
dd352cc0 | 55 | BuildRequires: polkit-devel >= 0.101 |
e82a4e4a | 56 | BuildRequires: usbredir-devel >= 0.7.1 |
62e09e7e | 57 | %endif |
2c447c96 | 58 | Requires: gtk+3 >= 3.22 |
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} |
2c447c96 | 73 | Requires: gtk+3-devel >= 3.22 |
e82a4e4a JB |
74 | Requires: libepoxy-devel |
75 | Requires: libva-x11-devel | |
7bfc8f3c | 76 | Requires: spice-glib-devel = %{version}-%{release} |
e82a4e4a | 77 | Requires: xorg-lib-libX11-devel |
887be46e JB |
78 | |
79 | %description devel | |
12078fdb | 80 | Header files for SPICE GTK 3.0 client library. |
887be46e JB |
81 | |
82 | %description devel -l pl.UTF-8 | |
12078fdb | 83 | Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0. |
887be46e JB |
84 | |
85 | %package static | |
12078fdb JB |
86 | Summary: Static SPICE GTK 3.0 client library |
87 | Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GTK 3.0 | |
88 | Group: X11/Development/Libraries | |
887be46e JB |
89 | Requires: %{name}-devel = %{version}-%{release} |
90 | ||
91 | %description static | |
12078fdb | 92 | Static SPICE GTK 3.0 client library. |
887be46e JB |
93 | |
94 | %description static -l pl.UTF-8 | |
12078fdb | 95 | Statyczna biblioteka kliencka SPICE GTK 3.0. |
887be46e | 96 | |
e82a4e4a JB |
97 | %package -n vala-spice-gtk |
98 | Summary: Vala API for SPICE GTK client library | |
99 | Summary(pl.UTF-8): Interfejs języka Vala do biblioteki klienckiej SPICE GTK | |
100 | Group: Development/Libraries | |
101 | Requires: %{name}-devel = %{version}-%{release} | |
102 | Requires: vala >= 2:0.14 | |
103 | Requires: vala-spice-glib = %{version}-%{release} | |
e82a4e4a | 104 | BuildArch: noarch |
e82a4e4a JB |
105 | |
106 | %description -n vala-spice-gtk | |
107 | Vala API for SPICE GTK client library. | |
108 | ||
109 | %description -n vala-spice-gtk -l pl.UTF-8 | |
110 | Interfejs języka Vala do biblioteki klienckiej SPICE GTK. | |
111 | ||
887be46e JB |
112 | %package apidocs |
113 | Summary: SPICE GTK API documentation | |
12078fdb | 114 | Summary(pl.UTF-8): Dokumentacja API bibliotek SPICE GTK |
887be46e | 115 | Group: Documentation |
d5623c14 | 116 | BuildArch: noarch |
887be46e JB |
117 | |
118 | %description apidocs | |
12078fdb | 119 | API documentation for SPICE GTK libraries. |
887be46e JB |
120 | |
121 | %description apidocs -l pl.UTF-8 | |
12078fdb JB |
122 | Dokumentacja API bibliotek SPICE GTK. |
123 | ||
124 | %package -n spice-glib | |
125 | Summary: SPICE Client GLib library | |
126 | Summary(pl.UTF-8): Biblioteka kliencka SPICE GLib | |
127 | Group: Libraries | |
e82a4e4a | 128 | Requires: cairo >= 1.2.0 |
dd352cc0 | 129 | Requires: glib2 >= 1:2.52 |
e82a4e4a | 130 | %{?with_smartcard:Requires: libcacard >= 2.5.1} |
f6dbd78a | 131 | Requires: libsoup >= 2.50 |
e82a4e4a JB |
132 | Requires: gstreamer >= 1.10 |
133 | Requires: gstreamer-plugins-base >= 1.10 | |
134 | Requires: openssl >= 1.0.0 | |
8cdeb0fc | 135 | Requires: opus >= 0.9.14 |
12078fdb | 136 | Requires: pixman >= 0.17.7 |
62e09e7e | 137 | %if %{with usbredir} |
1e2262c1 | 138 | Requires: libusb >= 1.0.21 |
e82a4e4a | 139 | Requires: usbredir >= 0.7.1 |
62e09e7e | 140 | %endif |
12078fdb JB |
141 | |
142 | %description -n spice-glib | |
143 | SPICE Client GLib library. | |
144 | ||
145 | %description -n spice-glib -l pl.UTF-8 | |
146 | Biblioteka kliencka SPICE GLib. | |
147 | ||
148 | %package -n spice-glib-devel | |
149 | Summary: Header files for SPICE Client GLib library | |
150 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GLib | |
151 | Group: Development/Libraries | |
e82a4e4a | 152 | Requires: cairo-devel >= 1.2.0 |
62e09e7e | 153 | Requires: cyrus-sasl-devel >= 2.0 |
dd352cc0 | 154 | Requires: glib2-devel >= 1:2.52 |
e82a4e4a JB |
155 | Requires: gobject-introspection-devel >= 0.9.4 |
156 | Requires: gstreamer-devel >= 1.10 | |
157 | Requires: gstreamer-plugins-base-devel >= 1.10 | |
158 | Requires: json-glib-devel | |
159 | %{?with_smartcard:Requires: libcacard-devel >= 2.5.1} | |
dd352cc0 | 160 | Requires: libcap-ng-devel |
62e09e7e | 161 | Requires: libjpeg-devel |
e82a4e4a JB |
162 | Requires: libsoup-devel >= 2.50 |
163 | Requires: lz4-devel | |
164 | Requires: openssl-devel >= 1.0.0 | |
165 | Requires: opus-devel >= 0.9.14 | |
166 | Requires: phodav-devel >= 2.0 | |
12078fdb JB |
167 | Requires: pixman-devel >= 0.17.7 |
168 | Requires: spice-glib = %{version}-%{release} | |
dd352cc0 | 169 | Requires: spice-protocol >= 0.14.3 |
e82a4e4a | 170 | Requires: zlib-devel |
62e09e7e | 171 | %if %{with usbredir} |
1e2262c1 | 172 | Requires: libusb-devel >= 1.0.21 |
e82a4e4a | 173 | Requires: usbredir-devel >= 0.7.1 |
62e09e7e | 174 | %endif |
12078fdb JB |
175 | |
176 | %description -n spice-glib-devel | |
177 | Header files for SPICE Client GLib library. | |
178 | ||
179 | %description -n spice-glib-devel -l pl.UTF-8 | |
180 | Pliki nagłówkowe biblioteki klienckiej SPICE GLib. | |
181 | ||
182 | %package -n spice-glib-static | |
183 | Summary: SPICE Client GLib static library | |
184 | Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GLib | |
185 | Group: Development/Libraries | |
186 | Requires: spice-glib-devel = %{version}-%{release} | |
187 | ||
188 | %description -n spice-glib-static | |
189 | SPICE Client GLib static library. | |
190 | ||
191 | %description -n spice-glib-static -l pl.UTF-8 | |
192 | Statyczna biblioteka kliencka SPICE GLib. | |
193 | ||
e82a4e4a JB |
194 | %package -n vala-spice-glib |
195 | Summary: Vala API for SPICE GLib client library | |
196 | Summary(pl.UTF-8): Interfejs języka Vala do biblioteki klienckiej SPICE GLib | |
197 | Group: Development/Libraries | |
198 | Requires: spice-glib-devel = %{version}-%{release} | |
199 | Requires: vala >= 2:0.14 | |
200 | # versions 0.35 through 0.38-1 were actually spice-client-glib + spice-client-gtk vapis | |
201 | Obsoletes: vala-spice-protocol < 0.38-2 | |
e82a4e4a | 202 | BuildArch: noarch |
e82a4e4a JB |
203 | |
204 | %description -n vala-spice-glib | |
205 | Vala API for SPICE GLib client library. | |
206 | ||
207 | %description -n vala-spice-glib -l pl.UTF-8 | |
208 | Interfejs języka Vala do biblioteki klienckiej SPICE GLib. | |
209 | ||
62e09e7e JB |
210 | %package -n spice-glib-usb |
211 | Summary: USB redirection ACL helper for SPICE Client GLib library | |
212 | Summary(pl.UTF-8): Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej SPICE GLib | |
213 | Group: Applications/System | |
dd352cc0 | 214 | Requires: polkit >= 0.101 |
7bfc8f3c | 215 | Requires: spice-glib = %{version}-%{release} |
62e09e7e JB |
216 | |
217 | %description -n spice-glib-usb | |
218 | USB redirection ACL helper for SPICE Client GLib library. | |
219 | ||
220 | %description -n spice-glib-usb -l pl.UTF-8 | |
221 | Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej | |
222 | SPICE GLib. | |
223 | ||
887be46e JB |
224 | %prep |
225 | %setup -q | |
887be46e JB |
226 | |
227 | %build | |
1e2262c1 | 228 | %meson build \ |
1e2262c1 JP |
229 | -Dgtk_doc=enabled \ |
230 | -Dlz4=enabled \ | |
e82a4e4a | 231 | -Dpolkit=%{?with_usbredir:enabled}%{!?with_smartcard:usbredir} \ |
1e2262c1 JP |
232 | -Dsmartcard=%{?with_smartcard:enabled}%{!?with_smartcard:disabled} \ |
233 | -Dusbredir=%{?with_usbredir:enabled}%{!?with_smartcard:usbredir} \ | |
e82a4e4a JB |
234 | -Dusb-ids-path=/lib/hwdata/usb.ids \ |
235 | -Dvapi=enabled | |
236 | ||
1e2262c1 | 237 | %ninja_build -C build |
887be46e JB |
238 | |
239 | %install | |
240 | rm -rf $RPM_BUILD_ROOT | |
241 | ||
1e2262c1 | 242 | %ninja_install -C build |
887be46e JB |
243 | |
244 | %find_lang %{name} | |
245 | ||
246 | %clean | |
247 | rm -rf $RPM_BUILD_ROOT | |
248 | ||
249 | %post -p /sbin/ldconfig | |
250 | %postun -p /sbin/ldconfig | |
251 | ||
12078fdb JB |
252 | %post -n spice-glib -p /sbin/ldconfig |
253 | %postun -n spice-glib -p /sbin/ldconfig | |
254 | ||
887be46e JB |
255 | %files -f %{name}.lang |
256 | %defattr(644,root,root,755) | |
4de64538 | 257 | %doc AUTHORS CHANGELOG.md README.md |
887be46e | 258 | %attr(755,root,root) %{_bindir}/spicy |
82d73980 | 259 | %attr(755,root,root) %{_bindir}/spicy-screenshot |
12078fdb JB |
260 | %attr(755,root,root) %{_bindir}/spicy-stats |
261 | %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so.*.*.* | |
ac983768 | 262 | %attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-3.0.so.5 |
12078fdb | 263 | %{_libdir}/girepository-1.0/SpiceClientGtk-3.0.typelib |
6cda7c5a | 264 | %{_mandir}/man1/spice-client.1* |
12078fdb JB |
265 | |
266 | %files devel | |
267 | %defattr(644,root,root,755) | |
268 | %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so | |
269 | %{_includedir}/spice-client-gtk-3.0 | |
270 | %{_pkgconfigdir}/spice-client-gtk-3.0.pc | |
271 | %{_datadir}/gir-1.0/SpiceClientGtk-3.0.gir | |
272 | ||
273 | %files static | |
274 | %defattr(644,root,root,755) | |
275 | %{_libdir}/libspice-client-gtk-3.0.a | |
276 | ||
e82a4e4a JB |
277 | %files -n vala-spice-gtk |
278 | %defattr(644,root,root,755) | |
279 | %{_datadir}/vala/vapi/spice-client-gtk-3.0.deps | |
280 | %{_datadir}/vala/vapi/spice-client-gtk-3.0.vapi | |
281 | ||
12078fdb JB |
282 | %files apidocs |
283 | %defattr(644,root,root,755) | |
284 | %{_gtkdocdir}/spice-gtk | |
285 | ||
286 | %files -n spice-glib | |
287 | %defattr(644,root,root,755) | |
887be46e | 288 | %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so.*.*.* |
35affeb9 | 289 | %attr(755,root,root) %ghost %{_libdir}/libspice-client-glib-2.0.so.8 |
887be46e | 290 | %{_libdir}/girepository-1.0/SpiceClientGLib-2.0.typelib |
887be46e | 291 | |
12078fdb | 292 | %files -n spice-glib-devel |
887be46e JB |
293 | %defattr(644,root,root,755) |
294 | %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so | |
887be46e | 295 | %{_includedir}/spice-client-glib-2.0 |
887be46e | 296 | %{_pkgconfigdir}/spice-client-glib-2.0.pc |
887be46e | 297 | %{_datadir}/gir-1.0/SpiceClientGLib-2.0.gir |
887be46e | 298 | |
12078fdb | 299 | %files -n spice-glib-static |
887be46e JB |
300 | %defattr(644,root,root,755) |
301 | %{_libdir}/libspice-client-glib-2.0.a | |
887be46e | 302 | |
e82a4e4a JB |
303 | %files -n vala-spice-glib |
304 | %defattr(644,root,root,755) | |
305 | %{_datadir}/vala/vapi/spice-client-glib-2.0.deps | |
306 | %{_datadir}/vala/vapi/spice-client-glib-2.0.vapi | |
307 | ||
62e09e7e JB |
308 | %if %{with usbredir} |
309 | %files -n spice-glib-usb | |
310 | %defattr(644,root,root,755) | |
dd352cc0 | 311 | %attr(755,root,root) %{_libexecdir}/spice-client-glib-usb-acl-helper |
62e09e7e JB |
312 | %{_datadir}/polkit-1/actions/org.spice-space.lowlevelusbaccess.policy |
313 | %endif |