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