3 %bcond_without opengl # OpenGL support
5 Summary: SPICE virtualization solution
6 Summary(pl.UTF-8): System wirtualizacji SPICE
7 # real package name (spice) is already occupied
9 # NOTE: 0.13.x is unstable (see DEVEL branch for it)
13 Group: Applications/Emulators
14 Source0: http://www.spice-space.org/download/releases/spice-%{version}.tar.bz2
15 # Source0-md5: 605a8c8ea80bc95076c4b3539c6dd026
16 Patch0: spice-link.patch
17 Patch1: spice-am.patch
18 Patch2: spice-codegen.patch
19 URL: http://www.spice-space.org/
20 %{?with_opengl:BuildRequires: OpenGL-devel}
21 %{?with_opengl:BuildRequires: OpenGL-GLU-devel}
22 BuildRequires: alsa-lib-devel
23 BuildRequires: asciidoc
24 BuildRequires: autoconf >= 2.63
25 BuildRequires: automake >= 1:1.11
26 BuildRequires: celt051-devel >= 0.5.1.1
27 BuildRequires: cyrus-sasl-devel >= 2
28 BuildRequires: gcc >= 5:3.2
29 BuildRequires: glib2-devel >= 1:2.22
30 BuildRequires: libcacard-devel >= 0.1.2
31 BuildRequires: libjpeg-devel
32 BuildRequires: libstdc++-devel
33 BuildRequires: libtool >= 2:2
34 BuildRequires: lz4-devel
35 BuildRequires: openssl-devel
36 BuildRequires: opus-devel >= 0.9.14
37 BuildRequires: pixman-devel >= 0.17.7
38 BuildRequires: pkgconfig
39 BuildRequires: python >= 2
40 BuildRequires: python-pyparsing
41 BuildRequires: python-six
42 BuildRequires: rpmbuild(macros) >= 1.527
43 BuildRequires: spice-protocol >= 0.12.10
44 BuildRequires: spice-protocol-codegen >= 0.12.10
45 BuildRequires: xorg-lib-libX11-devel
46 BuildRequires: xorg-lib-libXext-devel
47 BuildRequires: xorg-lib-libXfixes-devel
48 BuildRequires: xorg-lib-libXinerama-devel >= 1.0
49 BuildRequires: xorg-lib-libXrandr-devel >= 1.2
50 BuildRequires: xorg-lib-libXrender-devel
51 BuildRequires: zlib-devel
52 ExclusiveArch: %{ix86} %{x8664} x32 arm
53 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56 Spice is an open remote computing solution, providing client access to
57 remote machine display and devices (e.g., keyboard, mouse, audio).
58 Spice achieves a user experience similar to an interaction with a
59 local machine, while trying to offload most of the intensive CPU and
60 GPU tasks to the client. Spice is suitable for both LAN and WAN usage,
61 without compromising on the user experience.
63 %description -l pl.UTF-8
64 Spice to rozwiązanie do zdalnych obliczeń, zapewniające dostęp
65 kliencki ekranu i urządzeń zdalnej maszyny (klawiatury, myszy,
66 dźwięku). Daje użytkownikowi wrażenie podobne do pracy lokalnej, ale
67 próbuje większość zadań wykorzystujących intensywnie CPU i GPU zrzucić
68 na klienta. Nadaje się do pracy w sieciach LAN i WAN, bez większych
69 poświęceń ze strony doznań użytkownika.
71 %package -n spice-server-libs
72 Summary: SPICE server library
73 Summary(pl.UTF-8): Biblioteka serwera SPICE
75 Requires: celt051 >= 0.5.1.1
76 Requires: opus >= 0.9.14
77 Requires: glib2 >= 1:2.22
78 Requires: pixman >= 0.17.7
79 Obsoletes: spice-client
81 %description -n spice-server-libs
84 %description -n spice-server-libs -l pl.UTF-8
85 Biblioteka serwera SPICE.
87 %package -n spice-server-devel
88 Summary: Header files for SPICE server library
89 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki serwera SPICE
90 Group: Development/Libraries
91 Requires: celt051-devel >= 0.5.1.1
92 Requires: glib2-devel >= 1:2.22
93 Requires: openssl-devel
94 Requires: pixman-devel >= 0.17.7
95 Requires: spice-server-libs = %{version}-%{release}
97 %description -n spice-server-devel
98 Header files for SPICE server library.
100 %description -n spice-server-devel -l pl.UTF-8
101 Pliki nagłówkowe biblioteki serwera SPICE.
103 %package -n spice-server-static
104 Summary: Static SPICE server library
105 Summary(pl.UTF-8): Statyczna biblioteka serwera SPICE
106 Group: Development/Libraries
107 Requires: spice-server-devel = %{version}-%{release}
109 %description -n spice-server-static
110 Static SPICE server library.
112 %description -n spice-server-static -l pl.UTF-8
113 Statyczna biblioteka serwera SPICE.
115 %package -n spice-client
116 Summary: SPICE client for X11
117 Summary(pl.UTF-8): Klient SPICE dla X11
118 Group: X11/Applications
119 Requires: celt051 >= 0.5.1.1
120 Requires: libcacard >= 0.1.2
121 Requires: opus >= 0.9.14
122 Requires: pixman >= 0.17.7
123 Requires: xorg-lib-libXrandr >= 1.2
124 Requires: xorg-lib-libXinerama >= 1.0
126 %description -n spice-client
127 SPICE client for X11.
129 %description -n spice-client -l pl.UTF-8
130 Klient SPICE dla X11.
133 %setup -q -n spice-%{version}
152 --disable-silent-rules \
155 %{?with_opengl:--enable-opengl} \
161 rm -rf $RPM_BUILD_ROOT
164 DESTDIR=$RPM_BUILD_ROOT
166 # obsoleted by pkg-config
167 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libspice-server.la
170 rm -rf $RPM_BUILD_ROOT
172 %post -n spice-server-libs -p /sbin/ldconfig
173 %postun -n spice-server-libs -p /sbin/ldconfig
175 %files -n spice-server-libs
176 %defattr(644,root,root,755)
178 %attr(755,root,root) %{_libdir}/libspice-server.so.*.*.*
179 %attr(755,root,root) %ghost %{_libdir}/libspice-server.so.1
181 %files -n spice-server-devel
182 %defattr(644,root,root,755)
183 %attr(755,root,root) %{_libdir}/libspice-server.so
184 %{_includedir}/spice-server
185 %{_pkgconfigdir}/spice-server.pc
187 %files -n spice-server-static
188 %defattr(644,root,root,755)
189 %{_libdir}/libspice-server.a