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