]> git.pld-linux.org Git - packages/spice-gtk.git/blob - spice-gtk.spec
e65bfcde4b37e9734bad9f91e8359101dee61eb9
[packages/spice-gtk.git] / spice-gtk.spec
1 #
2 # Conditional build:
3 %bcond_without  celt            # CELT codec support
4 %bcond_without  smartcard       # Smartcard support
5 %bcond_without  usbredir        # USB redirection
6
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
10 Version:        0.38
11 Release:        2
12 License:        LGPL v2.1+
13 Group:          X11/Applications
14 Source0:        https://www.spice-space.org/download/gtk/%{name}-%{version}.tar.xz
15 # Source0-md5:  41c5dc01d92886e5e11c70da2724d46b
16 URL:            https://spice-space.org/
17 BuildRequires:  cairo-devel >= 1.2.0
18 %{?with_celt:BuildRequires:     celt051-devel >= 0.5.1.1}
19 BuildRequires:  cyrus-sasl-devel >= 2.0
20 BuildRequires:  gcc >= 5:3.0
21 BuildRequires:  gettext-tools >= 0.19.8
22 BuildRequires:  glib2-devel >= 1:2.46
23 BuildRequires:  gobject-introspection-devel >= 0.9.4
24 BuildRequires:  gstreamer-devel >= 1.10
25 BuildRequires:  gstreamer-plugins-base-devel >= 1.10
26 BuildRequires:  gtk+3-devel >= 3.22
27 BuildRequires:  gtk-doc >= 1.14
28 BuildRequires:  json-glib-devel
29 %{?with_smartcard:BuildRequires:        libcacard-devel >= 2.5.1}
30 BuildRequires:  libepoxy-devel
31 BuildRequires:  libjpeg-devel
32 BuildRequires:  libsoup-devel >= 2.50
33 BuildRequires:  libstdc++-devel
34 BuildRequires:  libva-x11-devel
35 BuildRequires:  lz4-devel
36 BuildRequires:  meson >= 0.49
37 BuildRequires:  ninja >= 1.5
38 BuildRequires:  openssl-devel >= 1.0.0
39 BuildRequires:  opus-devel >= 0.9.14
40 BuildRequires:  phodav-devel >= 2.0
41 BuildRequires:  pixman-devel >= 0.17.7
42 BuildRequires:  pkgconfig
43 BuildRequires:  pulseaudio-devel
44 BuildRequires:  rpmbuild(macros) >= 1.736
45 BuildRequires:  sed >= 4.0
46 BuildRequires:  spice-protocol >= 0.14.1
47 BuildRequires:  tar >= 1:1.22
48 BuildRequires:  vala >= 0.14
49 BuildRequires:  xorg-lib-libX11-devel
50 BuildRequires:  xorg-lib-libXrandr-devel
51 BuildRequires:  xz
52 BuildRequires:  zlib-devel
53 %if %{with usbredir}
54 BuildRequires:  acl-devel
55 BuildRequires:  libusb-devel >= 1.0.21
56 BuildRequires:  polkit-devel >= 0.96
57 BuildRequires:  usbredir-devel >= 0.7.1
58 %endif
59 Requires:       gtk+3 >= 3.22
60 Requires:       spice-glib = %{version}-%{release}
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
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
73 Requires:       %{name} = %{version}-%{release}
74 Requires:       gtk+3-devel >= 3.22
75 Requires:       libepoxy-devel
76 Requires:       libva-x11-devel
77 Requires:       spice-glib-devel = %{version}-%{release}
78 Requires:       xorg-lib-libX11-devel
79
80 %description devel
81 Header files for SPICE GTK 3.0 client library.
82
83 %description devel -l pl.UTF-8
84 Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0.
85
86 %package static
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
90 Requires:       %{name}-devel = %{version}-%{release}
91
92 %description static
93 Static SPICE GTK 3.0 client library.
94
95 %description static -l pl.UTF-8
96 Statyczna biblioteka kliencka SPICE GTK 3.0.
97
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
115 %package apidocs
116 Summary:        SPICE GTK API documentation
117 Summary(pl.UTF-8):      Dokumentacja API bibliotek SPICE GTK
118 Group:          Documentation
119 %if "%{_rpmversion}" >= "4.6"
120 BuildArch:      noarch
121 %endif
122
123 %description apidocs
124 API documentation for SPICE GTK libraries.
125
126 %description apidocs -l pl.UTF-8
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
133 Requires:       cairo >= 1.2.0
134 %{?with_celt:Requires:  celt051 >= 0.5.1.1}
135 Requires:       glib2 >= 1:2.46
136 %{?with_smartcard:Requires:     libcacard >= 2.5.1}
137 Requires:       libsoup >= 2.50
138 Requires:       gstreamer >= 1.10
139 Requires:       gstreamer-plugins-base >= 1.10
140 Requires:       openssl >= 1.0.0
141 Requires:       opus >= 0.9.14
142 Requires:       pixman >= 0.17.7
143 %if %{with usbredir}
144 Requires:       libusb >= 1.0.21
145 Requires:       usbredir >= 0.7.1
146 %endif
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
158 Requires:       cairo-devel >= 1.2.0
159 %{?with_celt:Requires:  celt051-devel >= 0.5.1.1}
160 Requires:       cyrus-sasl-devel >= 2.0
161 Requires:       glib2-devel >= 1:2.46
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}
167 Requires:       libjpeg-devel
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
173 Requires:       pixman-devel >= 0.17.7
174 Requires:       pulseaudio-devel
175 Requires:       spice-glib = %{version}-%{release}
176 Requires:       spice-protocol >= 0.14.1
177 Requires:       zlib-devel
178 %if %{with usbredir}
179 Requires:       libusb-devel >= 1.0.21
180 Requires:       usbredir-devel >= 0.7.1
181 %endif
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
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
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
223 Requires:       polkit >= 0.96
224 Requires:       spice-glib = %{version}-%{release}
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
233 %prep
234 %setup -q
235
236 %build
237 %if %{with celt}
238 # CELT is deprecated in spice-protocol 0.14.x
239 CFLAGS="%{rpmcflags} -Wno-error=deprecated-declarations"
240 %endif
241 %meson build \
242         %{?with_celt:-Dcelt051=enabled} \
243         -Dgtk_doc=enabled \
244         -Dlz4=enabled \
245         -Dpolkit=%{?with_usbredir:enabled}%{!?with_smartcard:usbredir} \
246         -Dsmartcard=%{?with_smartcard:enabled}%{!?with_smartcard:disabled} \
247         -Dusbredir=%{?with_usbredir:enabled}%{!?with_smartcard:usbredir} \
248         -Dusb-ids-path=/lib/hwdata/usb.ids \
249         -Dvapi=enabled
250
251 %ninja_build -C build
252
253 %install
254 rm -rf $RPM_BUILD_ROOT
255
256 %ninja_install -C build
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
266 %post   -n spice-glib -p /sbin/ldconfig
267 %postun -n spice-glib -p /sbin/ldconfig
268
269 %files -f %{name}.lang
270 %defattr(644,root,root,755)
271 %doc AUTHORS CHANGELOG.md README.md
272 %attr(755,root,root) %{_bindir}/spicy
273 %attr(755,root,root) %{_bindir}/spicy-screenshot
274 %attr(755,root,root) %{_bindir}/spicy-stats
275 %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so.*.*.*
276 %attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-3.0.so.5
277 %{_libdir}/girepository-1.0/SpiceClientGtk-3.0.typelib
278 %{_mandir}/man1/spice-client.1*
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
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
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)
302 %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so.*.*.*
303 %attr(755,root,root) %ghost %{_libdir}/libspice-client-glib-2.0.so.8
304 %{_libdir}/girepository-1.0/SpiceClientGLib-2.0.typelib
305
306 %files -n spice-glib-devel
307 %defattr(644,root,root,755)
308 %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so
309 %{_includedir}/spice-client-glib-2.0
310 %{_pkgconfigdir}/spice-client-glib-2.0.pc
311 %{_datadir}/gir-1.0/SpiceClientGLib-2.0.gir
312
313 %files -n spice-glib-static
314 %defattr(644,root,root,755)
315 %{_libdir}/libspice-client-glib-2.0.a
316
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
322 %if %{with usbredir}
323 %files -n spice-glib-usb
324 %defattr(644,root,root,755)
325 %attr(4755,root,root) %{_bindir}/spice-client-glib-usb-acl-helper
326 %{_datadir}/polkit-1/actions/org.spice-space.lowlevelusbaccess.policy
327 %endif
This page took 0.072224 seconds and 2 git commands to generate.