]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without smartcard # Smartcard support | |
4 | %bcond_without usbredir # USB redirection | |
5 | ||
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 | |
9 | Version: 0.39 | |
10 | Release: 2 | |
11 | License: LGPL v2.1+ | |
12 | Group: X11/Applications | |
13 | Source0: https://www.spice-space.org/download/gtk/%{name}-%{version}.tar.xz | |
14 | # Source0-md5: 5bdc76d5105d2b4b4472063fe04ef033 | |
15 | URL: https://spice-space.org/ | |
16 | BuildRequires: cairo-devel >= 1.2.0 | |
17 | BuildRequires: cyrus-sasl-devel >= 2.0 | |
18 | BuildRequires: gcc >= 5:3.0 | |
19 | BuildRequires: gettext-tools >= 0.19.8 | |
20 | BuildRequires: glib2-devel >= 1:2.52 | |
21 | BuildRequires: gobject-introspection-devel >= 0.9.4 | |
22 | BuildRequires: gstreamer-devel >= 1.10 | |
23 | BuildRequires: gstreamer-plugins-base-devel >= 1.10 | |
24 | BuildRequires: gtk+3-devel >= 3.22 | |
25 | BuildRequires: gtk-doc >= 1.14 | |
26 | BuildRequires: json-glib-devel | |
27 | %{?with_smartcard:BuildRequires: libcacard-devel >= 2.5.1} | |
28 | BuildRequires: libepoxy-devel | |
29 | BuildRequires: libjpeg-devel | |
30 | BuildRequires: libsoup-devel >= 2.50 | |
31 | BuildRequires: libstdc++-devel | |
32 | BuildRequires: libva-x11-devel | |
33 | BuildRequires: lz4-devel | |
34 | BuildRequires: meson >= 0.53 | |
35 | BuildRequires: ninja >= 1.5 | |
36 | BuildRequires: openssl-devel >= 1.0.0 | |
37 | BuildRequires: opus-devel >= 0.9.14 | |
38 | BuildRequires: phodav-devel >= 2.0 | |
39 | BuildRequires: pixman-devel >= 0.17.7 | |
40 | BuildRequires: pkgconfig | |
41 | BuildRequires: rpmbuild(macros) >= 1.736 | |
42 | BuildRequires: sed >= 4.0 | |
43 | BuildRequires: spice-protocol >= 0.14.3 | |
44 | BuildRequires: tar >= 1:1.22 | |
45 | BuildRequires: vala >= 0.14 | |
46 | BuildRequires: wayland-devel >= 1.17.0 | |
47 | BuildRequires: wayland-protocols >= 1.17 | |
48 | BuildRequires: xorg-lib-libX11-devel | |
49 | BuildRequires: xorg-lib-libXrandr-devel | |
50 | BuildRequires: xz | |
51 | BuildRequires: zlib-devel | |
52 | %if %{with usbredir} | |
53 | BuildRequires: acl-devel | |
54 | BuildRequires: libusb-devel >= 1.0.21 | |
55 | BuildRequires: polkit-devel >= 0.101 | |
56 | BuildRequires: usbredir-devel >= 0.7.1 | |
57 | %endif | |
58 | Requires: gtk+3 >= 3.22 | |
59 | Requires: spice-glib = %{version}-%{release} | |
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 | |
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 | |
72 | Requires: %{name} = %{version}-%{release} | |
73 | Requires: gtk+3-devel >= 3.22 | |
74 | Requires: libepoxy-devel | |
75 | Requires: libva-x11-devel | |
76 | Requires: spice-glib-devel = %{version}-%{release} | |
77 | Requires: xorg-lib-libX11-devel | |
78 | ||
79 | %description devel | |
80 | Header files for SPICE GTK 3.0 client library. | |
81 | ||
82 | %description devel -l pl.UTF-8 | |
83 | Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0. | |
84 | ||
85 | %package static | |
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 | |
89 | Requires: %{name}-devel = %{version}-%{release} | |
90 | ||
91 | %description static | |
92 | Static SPICE GTK 3.0 client library. | |
93 | ||
94 | %description static -l pl.UTF-8 | |
95 | Statyczna biblioteka kliencka SPICE GTK 3.0. | |
96 | ||
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} | |
104 | BuildArch: noarch | |
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 | ||
112 | %package apidocs | |
113 | Summary: SPICE GTK API documentation | |
114 | Summary(pl.UTF-8): Dokumentacja API bibliotek SPICE GTK | |
115 | Group: Documentation | |
116 | BuildArch: noarch | |
117 | ||
118 | %description apidocs | |
119 | API documentation for SPICE GTK libraries. | |
120 | ||
121 | %description apidocs -l pl.UTF-8 | |
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 | |
128 | Requires: cairo >= 1.2.0 | |
129 | Requires: glib2 >= 1:2.52 | |
130 | %{?with_smartcard:Requires: libcacard >= 2.5.1} | |
131 | Requires: libsoup >= 2.50 | |
132 | Requires: gstreamer >= 1.10 | |
133 | Requires: gstreamer-plugins-base >= 1.10 | |
134 | Requires: openssl >= 1.0.0 | |
135 | Requires: opus >= 0.9.14 | |
136 | Requires: pixman >= 0.17.7 | |
137 | %if %{with usbredir} | |
138 | Requires: libusb >= 1.0.21 | |
139 | Requires: usbredir >= 0.7.1 | |
140 | %endif | |
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 | |
152 | Requires: cairo-devel >= 1.2.0 | |
153 | Requires: cyrus-sasl-devel >= 2.0 | |
154 | Requires: glib2-devel >= 1:2.52 | |
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} | |
160 | Requires: libcap-ng-devel | |
161 | Requires: libjpeg-devel | |
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 | |
167 | Requires: pixman-devel >= 0.17.7 | |
168 | Requires: spice-glib = %{version}-%{release} | |
169 | Requires: spice-protocol >= 0.14.3 | |
170 | Requires: zlib-devel | |
171 | %if %{with usbredir} | |
172 | Requires: libusb-devel >= 1.0.21 | |
173 | Requires: usbredir-devel >= 0.7.1 | |
174 | %endif | |
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 | ||
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 | |
202 | BuildArch: noarch | |
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 | ||
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 | |
214 | Requires: polkit >= 0.101 | |
215 | Requires: spice-glib = %{version}-%{release} | |
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 | ||
224 | %prep | |
225 | %setup -q | |
226 | ||
227 | %build | |
228 | %meson build \ | |
229 | -Dgtk_doc=enabled \ | |
230 | -Dlz4=enabled \ | |
231 | -Dpolkit=%{?with_usbredir:enabled}%{!?with_smartcard:usbredir} \ | |
232 | -Dsmartcard=%{?with_smartcard:enabled}%{!?with_smartcard:disabled} \ | |
233 | -Dusbredir=%{?with_usbredir:enabled}%{!?with_smartcard:usbredir} \ | |
234 | -Dusb-ids-path=/lib/hwdata/usb.ids \ | |
235 | -Dvapi=enabled | |
236 | ||
237 | %ninja_build -C build | |
238 | ||
239 | %install | |
240 | rm -rf $RPM_BUILD_ROOT | |
241 | ||
242 | %ninja_install -C build | |
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 | ||
252 | %post -n spice-glib -p /sbin/ldconfig | |
253 | %postun -n spice-glib -p /sbin/ldconfig | |
254 | ||
255 | %files -f %{name}.lang | |
256 | %defattr(644,root,root,755) | |
257 | %doc AUTHORS CHANGELOG.md README.md | |
258 | %attr(755,root,root) %{_bindir}/spicy | |
259 | %attr(755,root,root) %{_bindir}/spicy-screenshot | |
260 | %attr(755,root,root) %{_bindir}/spicy-stats | |
261 | %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so.*.*.* | |
262 | %attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-3.0.so.5 | |
263 | %{_libdir}/girepository-1.0/SpiceClientGtk-3.0.typelib | |
264 | %{_mandir}/man1/spice-client.1* | |
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 | ||
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 | ||
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) | |
288 | %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so.*.*.* | |
289 | %attr(755,root,root) %ghost %{_libdir}/libspice-client-glib-2.0.so.8 | |
290 | %{_libdir}/girepository-1.0/SpiceClientGLib-2.0.typelib | |
291 | ||
292 | %files -n spice-glib-devel | |
293 | %defattr(644,root,root,755) | |
294 | %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so | |
295 | %{_includedir}/spice-client-glib-2.0 | |
296 | %{_pkgconfigdir}/spice-client-glib-2.0.pc | |
297 | %{_datadir}/gir-1.0/SpiceClientGLib-2.0.gir | |
298 | ||
299 | %files -n spice-glib-static | |
300 | %defattr(644,root,root,755) | |
301 | %{_libdir}/libspice-client-glib-2.0.a | |
302 | ||
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 | ||
308 | %if %{with usbredir} | |
309 | %files -n spice-glib-usb | |
310 | %defattr(644,root,root,755) | |
311 | %attr(755,root,root) %{_libexecdir}/spice-client-glib-usb-acl-helper | |
312 | %{_datadir}/polkit-1/actions/org.spice-space.lowlevelusbaccess.policy | |
313 | %endif |