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