]> git.pld-linux.org Git - packages/spice-gtk.git/blame - spice-gtk.spec
up to 0.34
[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
6cda7c5a 5%bcond_without static_libs # static libraries
7bfc8f3c 6
887be46e
JB
7Summary: A GTK+ client and libraries for SPICE remote desktop servers
8Summary(pl.UTF-8): Klient i biblioteki GTK+ dla serwerów zdalnych pulpitów SPICE
9Name: spice-gtk
1334aea5
JP
10Version: 0.34
11Release: 1
887be46e
JB
12License: LGPL v2.1+
13Group: X11/Applications
7471ac15 14Source0: http://www.spice-space.org/download/gtk/%{name}-%{version}.tar.bz2
1334aea5 15# Source0-md5: ec01b0b50337aa23f0566423b2f83109
ac983768 16Patch0: %{name}-am.patch
887be46e 17URL: http://spice-space.org/
fc53070c
JB
18BuildRequires: autoconf >= 2.63
19BuildRequires: automake >= 1:1.11
887be46e
JB
20BuildRequires: cairo-devel >= 1.2.0
21BuildRequires: celt051-devel >= 0.5.1.1
22BuildRequires: cyrus-sasl-devel >= 2.0
2715df15 23BuildRequires: gcc >= 5:3.0
dbdf4160 24BuildRequires: gettext-tools >= 0.17
e6cbe985 25BuildRequires: glib2-devel >= 1:2.44
7bfc8f3c 26BuildRequires: gobject-introspection-devel >= 0.9.4
ece362d5
JB
27BuildRequires: gstreamer-devel >= 1.0
28BuildRequires: gstreamer-plugins-base-devel >= 1.0
ac983768 29BuildRequires: gtk+3-devel >= 3.0
7bfc8f3c 30BuildRequires: gtk-doc >= 1.14
62e09e7e 31%{?with_smartcard:BuildRequires: libcacard-devel >= 0.1.2}
ece362d5 32BuildRequires: libepoxy-devel
887be46e 33BuildRequires: libjpeg-devel
f6dbd78a 34BuildRequires: libsoup-devel >= 2.50
887be46e
JB
35BuildRequires: libstdc++-devel
36BuildRequires: libtool >= 2:2.0
6cda7c5a 37BuildRequires: lz4-devel
887be46e 38BuildRequires: openssl-devel
8cdeb0fc 39BuildRequires: opus-devel >= 0.9.14
887be46e
JB
40BuildRequires: perl-Text-CSV
41BuildRequires: perl-base >= 1:5.8.1
e6cbe985 42BuildRequires: phodav-devel >= 2.0
887be46e
JB
43BuildRequires: pixman-devel >= 0.17.7
44BuildRequires: pkgconfig
45BuildRequires: pulseaudio-devel
35affeb9 46BuildRequires: sed >= 4.0
ece362d5 47BuildRequires: spice-protocol >= 0.12.11
62e09e7e 48BuildRequires: xorg-lib-libX11-devel
887be46e
JB
49BuildRequires: xorg-lib-libXrandr-devel
50BuildRequires: zlib-devel
62e09e7e
JB
51%if %{with usbredir}
52BuildRequires: acl-devel
178a4f62 53BuildRequires: libusb-devel >= 1.0.16
61cee34f 54BuildRequires: polkit-devel >= 0.96
f09efb9b 55BuildRequires: usbredir-devel >= 0.5.2
62e09e7e
JB
56%endif
57%{?with_smartcard:Requires: libcacard >= 0.1.2}
12078fdb 58Requires: spice-glib = %{version}-%{release}
887be46e
JB
59BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
60
61%description
62A GTK+ client and libraries for SPICE remote desktop servers.
63
64%description -l pl.UTF-8
65Klient i biblioteki GTK+ dla serwerów zdalnych pulpitów SPICE.
66
67%package devel
12078fdb
JB
68Summary: Header files for SPICE GTK 3.0 client library
69Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0
70Group: X11/Development/Libraries
f4803be1 71Requires: %{name} = %{version}-%{release}
12078fdb 72Requires: gtk+3-devel >= 3.0
7bfc8f3c 73Requires: spice-glib-devel = %{version}-%{release}
887be46e
JB
74
75%description devel
12078fdb 76Header files for SPICE GTK 3.0 client library.
887be46e
JB
77
78%description devel -l pl.UTF-8
12078fdb 79Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0.
887be46e
JB
80
81%package static
12078fdb
JB
82Summary: Static SPICE GTK 3.0 client library
83Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GTK 3.0
84Group: X11/Development/Libraries
887be46e
JB
85Requires: %{name}-devel = %{version}-%{release}
86
87%description static
12078fdb 88Static SPICE GTK 3.0 client library.
887be46e
JB
89
90%description static -l pl.UTF-8
12078fdb 91Statyczna biblioteka kliencka SPICE GTK 3.0.
887be46e
JB
92
93%package apidocs
94Summary: SPICE GTK API documentation
12078fdb 95Summary(pl.UTF-8): Dokumentacja API bibliotek SPICE GTK
887be46e 96Group: Documentation
d5623c14
ER
97%if "%{_rpmversion}" >= "5"
98BuildArch: noarch
99%endif
887be46e
JB
100
101%description apidocs
12078fdb 102API documentation for SPICE GTK libraries.
887be46e
JB
103
104%description apidocs -l pl.UTF-8
12078fdb
JB
105Dokumentacja API bibliotek SPICE GTK.
106
107%package -n spice-glib
108Summary: SPICE Client GLib library
109Summary(pl.UTF-8): Biblioteka kliencka SPICE GLib
110Group: Libraries
111Requires: celt051 >= 0.5.1.1
f6dbd78a 112Requires: glib2 >= 1:2.44
62e09e7e 113%{?with_smartcard:Requires: libcacard >= 0.1.2}
f6dbd78a 114Requires: libsoup >= 2.50
8cdeb0fc 115Requires: opus >= 0.9.14
12078fdb 116Requires: pixman >= 0.17.7
62e09e7e 117%if %{with usbredir}
178a4f62 118Requires: libusb >= 1.0.16
f09efb9b 119Requires: usbredir >= 0.5.2
62e09e7e 120%endif
12078fdb
JB
121
122%description -n spice-glib
123SPICE Client GLib library.
124
125%description -n spice-glib -l pl.UTF-8
126Biblioteka kliencka SPICE GLib.
127
128%package -n spice-glib-devel
129Summary: Header files for SPICE Client GLib library
130Summary(pl.UTF-8): Pliki nagłówkowe biblioteki klienckiej SPICE GLib
131Group: Development/Libraries
132Requires: celt051-devel >= 0.5.1.1
62e09e7e 133Requires: cyrus-sasl-devel >= 2.0
f6dbd78a 134Requires: glib2-devel >= 1:2.44
62e09e7e
JB
135%{?with_smartcard:Requires: libcacard-devel >= 0.1.2}
136Requires: libjpeg-devel
12078fdb
JB
137Requires: openssl-devel
138Requires: pixman-devel >= 0.17.7
62e09e7e 139Requires: pulseaudio-devel
12078fdb 140Requires: spice-glib = %{version}-%{release}
ece362d5 141Requires: spice-protocol >= 0.12.11
62e09e7e 142%if %{with usbredir}
178a4f62 143Requires: libusb-devel >= 1.0.16
f09efb9b 144Requires: usbredir-devel >= 0.5.2
62e09e7e 145%endif
12078fdb
JB
146
147%description -n spice-glib-devel
148Header files for SPICE Client GLib library.
149
150%description -n spice-glib-devel -l pl.UTF-8
151Pliki nagłówkowe biblioteki klienckiej SPICE GLib.
152
153%package -n spice-glib-static
154Summary: SPICE Client GLib static library
155Summary(pl.UTF-8): Statyczna biblioteka kliencka SPICE GLib
156Group: Development/Libraries
157Requires: spice-glib-devel = %{version}-%{release}
158
159%description -n spice-glib-static
160SPICE Client GLib static library.
161
162%description -n spice-glib-static -l pl.UTF-8
163Statyczna biblioteka kliencka SPICE GLib.
164
62e09e7e
JB
165%package -n spice-glib-usb
166Summary: USB redirection ACL helper for SPICE Client GLib library
167Summary(pl.UTF-8): Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej SPICE GLib
168Group: Applications/System
61cee34f 169Requires: polkit >= 0.96
7bfc8f3c 170Requires: spice-glib = %{version}-%{release}
62e09e7e
JB
171
172%description -n spice-glib-usb
173USB redirection ACL helper for SPICE Client GLib library.
174
175%description -n spice-glib-usb -l pl.UTF-8
176Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej
177SPICE GLib.
178
12078fdb
JB
179%package -n vala-spice-protocol
180Summary: Vala API for SPICE client library
181Summary(pl.UTF-8): Interfejs języka Vala do biblioteki klienckiej SPICE
887be46e 182Group: Development/Libraries
ece362d5 183Requires: spice-protocol >= 0.12.11
178a4f62 184Requires: vala >= 2:0.14
7bfc8f3c
ER
185%if "%{_rpmversion}" >= "5"
186BuildArch: noarch
187%endif
887be46e 188
12078fdb
JB
189%description -n vala-spice-protocol
190Vala API for SPICE client library.
887be46e 191
12078fdb
JB
192%description -n vala-spice-protocol -l pl.UTF-8
193Interfejs języka Vala do biblioteki klienckiej SPICE.
887be46e
JB
194
195%prep
196%setup -q
197%patch0 -p1
887be46e
JB
198
199%build
1334aea5 200%{__gettextize}
887be46e
JB
201%{__libtoolize}
202%{__aclocal} -I m4
203%{__autoconf}
204%{__autoheader}
205%{__automake}
fc53070c
JB
206cd spice-common
207%{__aclocal} -I m4
208%{__autoconf}
209%{__autoheader}
210%{__automake}
211cd ..
12078fdb 212
ac983768 213%configure \
6cda7c5a
JB
214 --enable-gtk-doc \
215 --enable-lz4 \
12078fdb 216 --disable-silent-rules \
62e09e7e 217 %{!?with_smartcard:--disable-smartcard} \
6cda7c5a 218 %{?with_static_libs:--enable-static} \
62e09e7e 219 %{!?with_usbredir:--disable-usbredir} \
12078fdb 220 --with-gtk=3.0 \
fc53070c
JB
221 --with-html-dir=%{_gtkdocdir} \
222 --with-pnp-ids-path=/lib/hwdata/pnp.ids \
223 --with-usb-ids-path=/lib/hwdata/usb.ids
54d84664 224%{__make}
887be46e
JB
225
226%install
227rm -rf $RPM_BUILD_ROOT
228
ac983768 229%{__make} install -j1 \
12078fdb
JB
230 DESTDIR=$RPM_BUILD_ROOT
231
887be46e
JB
232# obsoleted by pkg-config
233%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
234
235%find_lang %{name}
236
237%clean
238rm -rf $RPM_BUILD_ROOT
239
240%post -p /sbin/ldconfig
241%postun -p /sbin/ldconfig
242
12078fdb
JB
243%post -n spice-glib -p /sbin/ldconfig
244%postun -n spice-glib -p /sbin/ldconfig
245
887be46e
JB
246%files -f %{name}.lang
247%defattr(644,root,root,755)
248%doc AUTHORS NEWS README THANKS TODO
887be46e 249%attr(755,root,root) %{_bindir}/spicy
82d73980 250%attr(755,root,root) %{_bindir}/spicy-screenshot
12078fdb
JB
251%attr(755,root,root) %{_bindir}/spicy-stats
252%attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so.*.*.*
ac983768 253%attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-3.0.so.5
12078fdb 254%{_libdir}/girepository-1.0/SpiceClientGtk-3.0.typelib
6cda7c5a 255%{_mandir}/man1/spice-client.1*
12078fdb
JB
256
257%files devel
258%defattr(644,root,root,755)
259%attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so
260%{_includedir}/spice-client-gtk-3.0
261%{_pkgconfigdir}/spice-client-gtk-3.0.pc
262%{_datadir}/gir-1.0/SpiceClientGtk-3.0.gir
263
6cda7c5a 264%if %{with static_libs}
12078fdb
JB
265%files static
266%defattr(644,root,root,755)
267%{_libdir}/libspice-client-gtk-3.0.a
6cda7c5a 268%endif
12078fdb
JB
269
270%files apidocs
271%defattr(644,root,root,755)
272%{_gtkdocdir}/spice-gtk
273
274%files -n spice-glib
275%defattr(644,root,root,755)
887be46e 276%attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so.*.*.*
35affeb9 277%attr(755,root,root) %ghost %{_libdir}/libspice-client-glib-2.0.so.8
887be46e
JB
278%attr(755,root,root) %{_libdir}/libspice-controller.so.*.*.*
279%attr(755,root,root) %ghost %{_libdir}/libspice-controller.so.0
280%{_libdir}/girepository-1.0/SpiceClientGLib-2.0.typelib
887be46e 281
12078fdb 282%files -n spice-glib-devel
887be46e
JB
283%defattr(644,root,root,755)
284%attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so
887be46e
JB
285%attr(755,root,root) %{_libdir}/libspice-controller.so
286%{_includedir}/spice-client-glib-2.0
887be46e
JB
287%{_includedir}/spice-controller
288%{_pkgconfigdir}/spice-client-glib-2.0.pc
887be46e
JB
289%{_pkgconfigdir}/spice-controller.pc
290%{_datadir}/gir-1.0/SpiceClientGLib-2.0.gir
887be46e 291
6cda7c5a 292%if %{with static_libs}
12078fdb 293%files -n spice-glib-static
887be46e
JB
294%defattr(644,root,root,755)
295%{_libdir}/libspice-client-glib-2.0.a
887be46e 296%{_libdir}/libspice-controller.a
6cda7c5a 297%endif
887be46e 298
62e09e7e
JB
299%if %{with usbredir}
300%files -n spice-glib-usb
301%defattr(644,root,root,755)
302%attr(755,root,root) %{_bindir}/spice-client-glib-usb-acl-helper
303%{_datadir}/polkit-1/actions/org.spice-space.lowlevelusbaccess.policy
304%endif
305
12078fdb 306%files -n vala-spice-protocol
887be46e
JB
307%defattr(644,root,root,755)
308%{_datadir}/vala/vapi/spice-protocol.vapi
This page took 0.11379 seconds and 4 git commands to generate.