]> git.pld-linux.org Git - packages/spice-gtk.git/blob - spice-gtk.spec
f987af0b14f740eed212f1e8cf3362922e9ee02a
[packages/spice-gtk.git] / spice-gtk.spec
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:        1
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 %if "%{_rpmversion}" >= "4.6"
105 BuildArch:      noarch
106 %endif
107
108 %description -n vala-spice-gtk
109 Vala API for SPICE GTK client library.
110
111 %description -n vala-spice-gtk -l pl.UTF-8
112 Interfejs języka Vala do biblioteki klienckiej SPICE GTK.
113
114 %package apidocs
115 Summary:        SPICE GTK API documentation
116 Summary(pl.UTF-8):      Dokumentacja API bibliotek SPICE GTK
117 Group:          Documentation
118 %if "%{_rpmversion}" >= "4.6"
119 BuildArch:      noarch
120 %endif
121
122 %description apidocs
123 API documentation for SPICE GTK libraries.
124
125 %description apidocs -l pl.UTF-8
126 Dokumentacja API bibliotek SPICE GTK.
127
128 %package -n spice-glib
129 Summary:        SPICE Client GLib library
130 Summary(pl.UTF-8):      Biblioteka kliencka SPICE GLib
131 Group:          Libraries
132 Requires:       cairo >= 1.2.0
133 Requires:       glib2 >= 1:2.52
134 %{?with_smartcard:Requires:     libcacard >= 2.5.1}
135 Requires:       libsoup >= 2.50
136 Requires:       gstreamer >= 1.10
137 Requires:       gstreamer-plugins-base >= 1.10
138 Requires:       openssl >= 1.0.0
139 Requires:       opus >= 0.9.14
140 Requires:       pixman >= 0.17.7
141 %if %{with usbredir}
142 Requires:       libusb >= 1.0.21
143 Requires:       usbredir >= 0.7.1
144 %endif
145
146 %description -n spice-glib
147 SPICE Client GLib library.
148
149 %description -n spice-glib -l pl.UTF-8
150 Biblioteka kliencka SPICE GLib.
151
152 %package -n spice-glib-devel
153 Summary:        Header files for SPICE Client GLib library
154 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki klienckiej SPICE GLib
155 Group:          Development/Libraries
156 Requires:       cairo-devel >= 1.2.0
157 Requires:       cyrus-sasl-devel >= 2.0
158 Requires:       glib2-devel >= 1:2.52
159 Requires:       gobject-introspection-devel >= 0.9.4
160 Requires:       gstreamer-devel >= 1.10
161 Requires:       gstreamer-plugins-base-devel >= 1.10
162 Requires:       json-glib-devel
163 %{?with_smartcard:Requires:     libcacard-devel >= 2.5.1}
164 Requires:       libcap-ng-devel
165 Requires:       libjpeg-devel
166 Requires:       libsoup-devel >= 2.50
167 Requires:       lz4-devel
168 Requires:       openssl-devel >= 1.0.0
169 Requires:       opus-devel >= 0.9.14
170 Requires:       phodav-devel >= 2.0
171 Requires:       pixman-devel >= 0.17.7
172 Requires:       spice-glib = %{version}-%{release}
173 Requires:       spice-protocol >= 0.14.3
174 Requires:       zlib-devel
175 %if %{with usbredir}
176 Requires:       libusb-devel >= 1.0.21
177 Requires:       usbredir-devel >= 0.7.1
178 %endif
179
180 %description -n spice-glib-devel
181 Header files for SPICE Client GLib library.
182
183 %description -n spice-glib-devel -l pl.UTF-8
184 Pliki nagłówkowe biblioteki klienckiej SPICE GLib.
185
186 %package -n spice-glib-static
187 Summary:        SPICE Client GLib static library
188 Summary(pl.UTF-8):      Statyczna biblioteka kliencka SPICE GLib
189 Group:          Development/Libraries
190 Requires:       spice-glib-devel = %{version}-%{release}
191
192 %description -n spice-glib-static
193 SPICE Client GLib static library.
194
195 %description -n spice-glib-static -l pl.UTF-8
196 Statyczna biblioteka kliencka SPICE GLib.
197
198 %package -n vala-spice-glib
199 Summary:        Vala API for SPICE GLib client library
200 Summary(pl.UTF-8):      Interfejs języka Vala do biblioteki klienckiej SPICE GLib
201 Group:          Development/Libraries
202 Requires:       spice-glib-devel = %{version}-%{release}
203 Requires:       vala >= 2:0.14
204 # versions 0.35 through 0.38-1 were actually spice-client-glib + spice-client-gtk vapis
205 Obsoletes:      vala-spice-protocol < 0.38-2
206 %if "%{_rpmversion}" >= "4.6"
207 BuildArch:      noarch
208 %endif
209
210 %description -n vala-spice-glib
211 Vala API for SPICE GLib client library.
212
213 %description -n vala-spice-glib -l pl.UTF-8
214 Interfejs języka Vala do biblioteki klienckiej SPICE GLib.
215
216 %package -n spice-glib-usb
217 Summary:        USB redirection ACL helper for SPICE Client GLib library
218 Summary(pl.UTF-8):      Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej SPICE GLib
219 Group:          Applications/System
220 Requires:       polkit >= 0.101
221 Requires:       spice-glib = %{version}-%{release}
222
223 %description -n spice-glib-usb
224 USB redirection ACL helper for SPICE Client GLib library.
225
226 %description -n spice-glib-usb -l pl.UTF-8
227 Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej
228 SPICE GLib.
229
230 %prep
231 %setup -q
232
233 %build
234 %meson build \
235         -Dgtk_doc=enabled \
236         -Dlz4=enabled \
237         -Dpolkit=%{?with_usbredir:enabled}%{!?with_smartcard:usbredir} \
238         -Dsmartcard=%{?with_smartcard:enabled}%{!?with_smartcard:disabled} \
239         -Dusbredir=%{?with_usbredir:enabled}%{!?with_smartcard:usbredir} \
240         -Dusb-ids-path=/lib/hwdata/usb.ids \
241         -Dvapi=enabled
242
243 %ninja_build -C build
244
245 %install
246 rm -rf $RPM_BUILD_ROOT
247
248 %ninja_install -C build
249
250 %find_lang %{name}
251
252 %clean
253 rm -rf $RPM_BUILD_ROOT
254
255 %post   -p /sbin/ldconfig
256 %postun -p /sbin/ldconfig
257
258 %post   -n spice-glib -p /sbin/ldconfig
259 %postun -n spice-glib -p /sbin/ldconfig
260
261 %files -f %{name}.lang
262 %defattr(644,root,root,755)
263 %doc AUTHORS CHANGELOG.md README.md
264 %attr(755,root,root) %{_bindir}/spicy
265 %attr(755,root,root) %{_bindir}/spicy-screenshot
266 %attr(755,root,root) %{_bindir}/spicy-stats
267 %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so.*.*.*
268 %attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-3.0.so.5
269 %{_libdir}/girepository-1.0/SpiceClientGtk-3.0.typelib
270 %{_mandir}/man1/spice-client.1*
271
272 %files devel
273 %defattr(644,root,root,755)
274 %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so
275 %{_includedir}/spice-client-gtk-3.0
276 %{_pkgconfigdir}/spice-client-gtk-3.0.pc
277 %{_datadir}/gir-1.0/SpiceClientGtk-3.0.gir
278
279 %files static
280 %defattr(644,root,root,755)
281 %{_libdir}/libspice-client-gtk-3.0.a
282
283 %files -n vala-spice-gtk
284 %defattr(644,root,root,755)
285 %{_datadir}/vala/vapi/spice-client-gtk-3.0.deps
286 %{_datadir}/vala/vapi/spice-client-gtk-3.0.vapi
287
288 %files apidocs
289 %defattr(644,root,root,755)
290 %{_gtkdocdir}/spice-gtk
291
292 %files -n spice-glib
293 %defattr(644,root,root,755)
294 %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so.*.*.*
295 %attr(755,root,root) %ghost %{_libdir}/libspice-client-glib-2.0.so.8
296 %{_libdir}/girepository-1.0/SpiceClientGLib-2.0.typelib
297
298 %files -n spice-glib-devel
299 %defattr(644,root,root,755)
300 %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so
301 %{_includedir}/spice-client-glib-2.0
302 %{_pkgconfigdir}/spice-client-glib-2.0.pc
303 %{_datadir}/gir-1.0/SpiceClientGLib-2.0.gir
304
305 %files -n spice-glib-static
306 %defattr(644,root,root,755)
307 %{_libdir}/libspice-client-glib-2.0.a
308
309 %files -n vala-spice-glib
310 %defattr(644,root,root,755)
311 %{_datadir}/vala/vapi/spice-client-glib-2.0.deps
312 %{_datadir}/vala/vapi/spice-client-glib-2.0.vapi
313
314 %if %{with usbredir}
315 %files -n spice-glib-usb
316 %defattr(644,root,root,755)
317 %attr(755,root,root) %{_libexecdir}/spice-client-glib-usb-acl-helper
318 %{_datadir}/polkit-1/actions/org.spice-space.lowlevelusbaccess.policy
319 %endif
This page took 0.069301 seconds and 3 git commands to generate.