]> git.pld-linux.org Git - packages/spice-gtk.git/blame - spice-gtk.spec
rebuild with openssl 3.0.0
[packages/spice-gtk.git] / spice-gtk.spec
CommitLineData
62e09e7e
JB
1#
2# Conditional build:
62e09e7e
JB
3%bcond_without smartcard # Smartcard support
4%bcond_without usbredir # USB redirection
7bfc8f3c 5
887be46e
JB
6Summary: A GTK+ client and libraries for SPICE remote desktop servers
7Summary(pl.UTF-8): Klient i biblioteki GTK+ dla serwerów zdalnych pulpitów SPICE
8Name: spice-gtk
dd352cc0 9Version: 0.39
45d57a65 10Release: 2
887be46e
JB
11License: LGPL v2.1+
12Group: X11/Applications
e82a4e4a 13Source0: https://www.spice-space.org/download/gtk/%{name}-%{version}.tar.xz
dd352cc0 14# Source0-md5: 5bdc76d5105d2b4b4472063fe04ef033
e82a4e4a 15URL: https://spice-space.org/
887be46e 16BuildRequires: cairo-devel >= 1.2.0
887be46e 17BuildRequires: cyrus-sasl-devel >= 2.0
2715df15 18BuildRequires: gcc >= 5:3.0
1b9f8e49 19BuildRequires: gettext-tools >= 0.19.8
dd352cc0 20BuildRequires: glib2-devel >= 1:2.52
7bfc8f3c 21BuildRequires: gobject-introspection-devel >= 0.9.4
e82a4e4a
JB
22BuildRequires: gstreamer-devel >= 1.10
23BuildRequires: gstreamer-plugins-base-devel >= 1.10
2c447c96 24BuildRequires: gtk+3-devel >= 3.22
7bfc8f3c 25BuildRequires: gtk-doc >= 1.14
e82a4e4a
JB
26BuildRequires: json-glib-devel
27%{?with_smartcard:BuildRequires: libcacard-devel >= 2.5.1}
ece362d5 28BuildRequires: libepoxy-devel
887be46e 29BuildRequires: libjpeg-devel
f6dbd78a 30BuildRequires: libsoup-devel >= 2.50
887be46e 31BuildRequires: libstdc++-devel
e82a4e4a 32BuildRequires: libva-x11-devel
6cda7c5a 33BuildRequires: lz4-devel
dd352cc0 34BuildRequires: meson >= 0.53
e82a4e4a
JB
35BuildRequires: ninja >= 1.5
36BuildRequires: openssl-devel >= 1.0.0
8cdeb0fc 37BuildRequires: opus-devel >= 0.9.14
e6cbe985 38BuildRequires: phodav-devel >= 2.0
887be46e
JB
39BuildRequires: pixman-devel >= 0.17.7
40BuildRequires: pkgconfig
1e2262c1 41BuildRequires: rpmbuild(macros) >= 1.736
35affeb9 42BuildRequires: sed >= 4.0
dd352cc0 43BuildRequires: spice-protocol >= 0.14.3
1e2262c1 44BuildRequires: tar >= 1:1.22
1b9f8e49 45BuildRequires: vala >= 0.14
dd352cc0
JP
46BuildRequires: wayland-devel >= 1.17.0
47BuildRequires: wayland-protocols >= 1.17
62e09e7e 48BuildRequires: xorg-lib-libX11-devel
887be46e 49BuildRequires: xorg-lib-libXrandr-devel
1e2262c1 50BuildRequires: xz
887be46e 51BuildRequires: zlib-devel
62e09e7e
JB
52%if %{with usbredir}
53BuildRequires: acl-devel
1e2262c1 54BuildRequires: libusb-devel >= 1.0.21
dd352cc0 55BuildRequires: polkit-devel >= 0.101
e82a4e4a 56BuildRequires: usbredir-devel >= 0.7.1
62e09e7e 57%endif
2c447c96 58Requires: gtk+3 >= 3.22
12078fdb 59Requires: spice-glib = %{version}-%{release}
887be46e
JB
60BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61
62%description
63A GTK+ client and libraries for SPICE remote desktop servers.
64
65%description -l pl.UTF-8
66Klient i biblioteki GTK+ dla serwerów zdalnych pulpitów SPICE.
67
68%package devel
12078fdb
JB
69Summary: Header files for SPICE GTK 3.0 client library
70Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0
71Group: X11/Development/Libraries
f4803be1 72Requires: %{name} = %{version}-%{release}
2c447c96 73Requires: gtk+3-devel >= 3.22
e82a4e4a
JB
74Requires: libepoxy-devel
75Requires: libva-x11-devel
7bfc8f3c 76Requires: spice-glib-devel = %{version}-%{release}
e82a4e4a 77Requires: xorg-lib-libX11-devel
887be46e
JB
78
79%description devel
12078fdb 80Header files for SPICE GTK 3.0 client library.
887be46e
JB
81
82%description devel -l pl.UTF-8
12078fdb 83Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0.
887be46e
JB
84
85%package static
12078fdb
JB
86Summary: Static SPICE GTK 3.0 client library
87Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GTK 3.0
88Group: X11/Development/Libraries
887be46e
JB
89Requires: %{name}-devel = %{version}-%{release}
90
91%description static
12078fdb 92Static SPICE GTK 3.0 client library.
887be46e
JB
93
94%description static -l pl.UTF-8
12078fdb 95Statyczna biblioteka kliencka SPICE GTK 3.0.
887be46e 96
e82a4e4a
JB
97%package -n vala-spice-gtk
98Summary: Vala API for SPICE GTK client library
99Summary(pl.UTF-8): Interfejs języka Vala do biblioteki klienckiej SPICE GTK
100Group: Development/Libraries
101Requires: %{name}-devel = %{version}-%{release}
102Requires: vala >= 2:0.14
103Requires: vala-spice-glib = %{version}-%{release}
e82a4e4a 104BuildArch: noarch
e82a4e4a
JB
105
106%description -n vala-spice-gtk
107Vala API for SPICE GTK client library.
108
109%description -n vala-spice-gtk -l pl.UTF-8
110Interfejs języka Vala do biblioteki klienckiej SPICE GTK.
111
887be46e
JB
112%package apidocs
113Summary: SPICE GTK API documentation
12078fdb 114Summary(pl.UTF-8): Dokumentacja API bibliotek SPICE GTK
887be46e 115Group: Documentation
d5623c14 116BuildArch: noarch
887be46e
JB
117
118%description apidocs
12078fdb 119API documentation for SPICE GTK libraries.
887be46e
JB
120
121%description apidocs -l pl.UTF-8
12078fdb
JB
122Dokumentacja API bibliotek SPICE GTK.
123
124%package -n spice-glib
125Summary: SPICE Client GLib library
126Summary(pl.UTF-8): Biblioteka kliencka SPICE GLib
127Group: Libraries
e82a4e4a 128Requires: cairo >= 1.2.0
dd352cc0 129Requires: glib2 >= 1:2.52
e82a4e4a 130%{?with_smartcard:Requires: libcacard >= 2.5.1}
f6dbd78a 131Requires: libsoup >= 2.50
e82a4e4a
JB
132Requires: gstreamer >= 1.10
133Requires: gstreamer-plugins-base >= 1.10
134Requires: openssl >= 1.0.0
8cdeb0fc 135Requires: opus >= 0.9.14
12078fdb 136Requires: pixman >= 0.17.7
62e09e7e 137%if %{with usbredir}
1e2262c1 138Requires: libusb >= 1.0.21
e82a4e4a 139Requires: usbredir >= 0.7.1
62e09e7e 140%endif
12078fdb
JB
141
142%description -n spice-glib
143SPICE Client GLib library.
144
145%description -n spice-glib -l pl.UTF-8
146Biblioteka kliencka SPICE GLib.
147
148%package -n spice-glib-devel
149Summary: Header files for SPICE Client GLib library
150Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GLib
151Group: Development/Libraries
e82a4e4a 152Requires: cairo-devel >= 1.2.0
62e09e7e 153Requires: cyrus-sasl-devel >= 2.0
dd352cc0 154Requires: glib2-devel >= 1:2.52
e82a4e4a
JB
155Requires: gobject-introspection-devel >= 0.9.4
156Requires: gstreamer-devel >= 1.10
157Requires: gstreamer-plugins-base-devel >= 1.10
158Requires: json-glib-devel
159%{?with_smartcard:Requires: libcacard-devel >= 2.5.1}
dd352cc0 160Requires: libcap-ng-devel
62e09e7e 161Requires: libjpeg-devel
e82a4e4a
JB
162Requires: libsoup-devel >= 2.50
163Requires: lz4-devel
164Requires: openssl-devel >= 1.0.0
165Requires: opus-devel >= 0.9.14
166Requires: phodav-devel >= 2.0
12078fdb
JB
167Requires: pixman-devel >= 0.17.7
168Requires: spice-glib = %{version}-%{release}
dd352cc0 169Requires: spice-protocol >= 0.14.3
e82a4e4a 170Requires: zlib-devel
62e09e7e 171%if %{with usbredir}
1e2262c1 172Requires: libusb-devel >= 1.0.21
e82a4e4a 173Requires: usbredir-devel >= 0.7.1
62e09e7e 174%endif
12078fdb
JB
175
176%description -n spice-glib-devel
177Header files for SPICE Client GLib library.
178
179%description -n spice-glib-devel -l pl.UTF-8
180Pliki nagłówkowe biblioteki klienckiej SPICE GLib.
181
182%package -n spice-glib-static
183Summary: SPICE Client GLib static library
184Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GLib
185Group: Development/Libraries
186Requires: spice-glib-devel = %{version}-%{release}
187
188%description -n spice-glib-static
189SPICE Client GLib static library.
190
191%description -n spice-glib-static -l pl.UTF-8
192Statyczna biblioteka kliencka SPICE GLib.
193
e82a4e4a
JB
194%package -n vala-spice-glib
195Summary: Vala API for SPICE GLib client library
196Summary(pl.UTF-8): Interfejs języka Vala do biblioteki klienckiej SPICE GLib
197Group: Development/Libraries
198Requires: spice-glib-devel = %{version}-%{release}
199Requires: vala >= 2:0.14
200# versions 0.35 through 0.38-1 were actually spice-client-glib + spice-client-gtk vapis
201Obsoletes: vala-spice-protocol < 0.38-2
e82a4e4a 202BuildArch: noarch
e82a4e4a
JB
203
204%description -n vala-spice-glib
205Vala API for SPICE GLib client library.
206
207%description -n vala-spice-glib -l pl.UTF-8
208Interfejs języka Vala do biblioteki klienckiej SPICE GLib.
209
62e09e7e
JB
210%package -n spice-glib-usb
211Summary: USB redirection ACL helper for SPICE Client GLib library
212Summary(pl.UTF-8): Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej SPICE GLib
213Group: Applications/System
dd352cc0 214Requires: polkit >= 0.101
7bfc8f3c 215Requires: spice-glib = %{version}-%{release}
62e09e7e
JB
216
217%description -n spice-glib-usb
218USB redirection ACL helper for SPICE Client GLib library.
219
220%description -n spice-glib-usb -l pl.UTF-8
221Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej
222SPICE 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
240rm -rf $RPM_BUILD_ROOT
241
1e2262c1 242%ninja_install -C build
887be46e
JB
243
244%find_lang %{name}
245
246%clean
247rm -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
This page took 0.18302 seconds and 4 git commands to generate.