]>
Commit | Line | Data |
---|---|---|
69094da3 | 1 | # TODO: verify slirp comment validity with current qemu/spice versions [how to?] |
f1c7fe93 JR |
2 | # |
3 | # Conditional build: | |
4 | %bcond_with slirp # build with tunneling support (breaks qemu) | |
5 | # | |
8a86771e JB |
6 | Summary: SPICE virtualization solution |
7 | Summary(pl.UTF-8): System wirtualizacji SPICE | |
8 | # real package name (spice) is already occupied | |
9 | Name: spice-space | |
69094da3 JB |
10 | Version: 0.12.2 |
11 | Release: 1 | |
8a86771e JB |
12 | License: LGPL v2.1+ |
13 | Group: Applications/Emulators | |
14 | Source0: http://spice-space.org/download/releases/spice-%{version}.tar.bz2 | |
69094da3 | 15 | # Source0-md5: 23b06b993083cf5b90578054c6f5db58 |
8a86771e JB |
16 | Patch0: spice-sh.patch |
17 | Patch1: spice-link.patch | |
69094da3 | 18 | Patch2: spice-am.patch |
8a86771e JB |
19 | URL: http://spice-space.org/ |
20 | BuildRequires: OpenGL-GLU-devel | |
21 | BuildRequires: alsa-lib-devel | |
8a86771e JB |
22 | BuildRequires: autoconf >= 2.57 |
23 | BuildRequires: automake | |
69094da3 | 24 | BuildRequires: celt051-devel >= 0.5.1.1 |
0ffcd9c3 | 25 | BuildRequires: cyrus-sasl-devel >= 2 |
69094da3 | 26 | BuildRequires: glib2-devel >= 1:2.22 |
8a86771e JB |
27 | BuildRequires: libcacard-devel >= 0.1.2 |
28 | BuildRequires: libjpeg-devel | |
f1c7fe93 | 29 | %{?with_slirp:BuildRequires: libslirp-devel} |
8a86771e JB |
30 | BuildRequires: libstdc++-devel |
31 | BuildRequires: libtool | |
32 | BuildRequires: openssl-devel | |
33 | BuildRequires: pixman-devel >= 0.17.7 | |
34 | BuildRequires: pkgconfig | |
06042b35 JB |
35 | BuildRequires: python |
36 | BuildRequires: python-pyparsing | |
f1c7fe93 | 37 | BuildRequires: rpmbuild(macros) >= 1.527 |
8dae8717 | 38 | BuildRequires: spice-protocol >= 0.10.1 |
8a86771e JB |
39 | BuildRequires: xorg-lib-libXext-devel |
40 | BuildRequires: xorg-lib-libXfixes-devel | |
8dae8717 | 41 | BuildRequires: xorg-lib-libXinerama-devel >= 1.0 |
8a86771e JB |
42 | BuildRequires: xorg-lib-libXrandr-devel >= 1.2 |
43 | BuildRequires: xorg-lib-libXrender-devel | |
44 | BuildRequires: zlib-devel | |
45 | ExclusiveArch: %{ix86} %{x8664} arm | |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
47 | ||
48 | %description | |
49 | Spice is an open remote computing solution, providing client access to | |
50 | remote machine display and devices (e.g., keyboard, mouse, audio). | |
51 | Spice achieves a user experience similar to an interaction with a | |
52 | local machine, while trying to offload most of the intensive CPU and | |
53 | GPU tasks to the client. Spice is suitable for both LAN and WAN usage, | |
54 | without compromising on the user experience. | |
55 | ||
56 | %description -l pl.UTF-8 | |
57 | Spice to rozwiązanie do zdalnych obliczeń, zapewniające dostęp | |
58 | kliencki ekranu i urządzeń zdalnej maszyny (klawiatury, myszy, | |
59 | dźwięku). Daje użytkownikowi wrażenie podobne do pracy lokalnej, ale | |
60 | próbuje większość zadań wykorzystujących intensywnie CPU i GPU zrzucić | |
61 | na klienta. Nadaje się do pracy w sieciach LAN i WAN, bez większych | |
62 | poświęceń ze strony doznań użytkownika. | |
63 | ||
64 | %package -n spice-server-libs | |
65 | Summary: SPICE server library | |
66 | Summary(pl.UTF-8): Biblioteka serwera SPICE | |
67 | Group: Libraries | |
68 | Requires: celt051 >= 0.5.1.1 | |
69094da3 | 69 | Requires: glib2 >= 1:2.22 |
8a86771e JB |
70 | Requires: pixman >= 0.17.7 |
71 | ||
72 | %description -n spice-server-libs | |
73 | SPICE server library. | |
74 | ||
75 | %description -n spice-server-libs -l pl.UTF-8 | |
76 | Biblioteka serwera SPICE. | |
77 | ||
78 | %package -n spice-server-devel | |
79 | Summary: Header files for SPICE server library | |
80 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki serwera SPICE | |
81 | Group: Development/Libraries | |
82 | Requires: celt051-devel >= 0.5.1.1 | |
69094da3 | 83 | Requires: glib2-devel >= 1:2.22 |
f1c7fe93 | 84 | %{?with_slirp:Requires: libslirp-devel} |
8a86771e JB |
85 | Requires: openssl-devel |
86 | Requires: pixman-devel >= 0.17.7 | |
87 | Requires: spice-server-libs = %{version}-%{release} | |
88 | ||
89 | %description -n spice-server-devel | |
90 | Header files for SPICE server library. | |
91 | ||
92 | %description -n spice-server-devel -l pl.UTF-8 | |
93 | Pliki nagłówkowe biblioteki serwera SPICE. | |
94 | ||
95 | %package -n spice-server-static | |
96 | Summary: Static SPICE server library | |
97 | Summary(pl.UTF-8): Statyczna biblioteka serwera SPICE | |
98 | Group: Development/Libraries | |
99 | Requires: spice-server-devel = %{version}-%{release} | |
100 | ||
101 | %description -n spice-server-static | |
102 | Static SPICE server library. | |
103 | ||
104 | %description -n spice-server-static -l pl.UTF-8 | |
105 | Statyczna biblioteka serwera SPICE. | |
106 | ||
107 | %package -n spice-client | |
108 | Summary: SPICE client for X11 | |
109 | Summary(pl.UTF-8): Klient SPICE dla X11 | |
110 | Group: X11/Applications | |
111 | Requires: celt051 >= 0.5.1.1 | |
112 | Requires: libcacard >= 0.1.2 | |
113 | Requires: pixman >= 0.17.7 | |
114 | Requires: xorg-lib-libXrandr >= 1.2 | |
8dae8717 | 115 | Requires: xorg-lib-libXinerama >= 1.0 |
8a86771e JB |
116 | |
117 | %description -n spice-client | |
118 | SPICE client for X11. | |
119 | ||
120 | %description -n spice-client -l pl.UTF-8 | |
121 | Klient SPICE dla X11. | |
122 | ||
123 | %prep | |
124 | %setup -q -n spice-%{version} | |
125 | %patch0 -p1 | |
126 | %patch1 -p1 | |
69094da3 | 127 | %patch2 -p1 |
8a86771e JB |
128 | |
129 | %build | |
130 | %{__libtoolize} | |
131 | %{__aclocal} | |
132 | %{__autoconf} | |
133 | %{__autoheader} | |
134 | %{__automake} | |
135 | %configure \ | |
e68ab450 | 136 | --disable-silent-rules \ |
69094da3 | 137 | --enable-client \ |
8a86771e | 138 | --enable-opengl \ |
8b35789c | 139 | --enable-smartcard \ |
69094da3 | 140 | --enable-tunnel%{!?with_slirp:=no} |
8a86771e | 141 | # --enable-gui BR: CEGUI-devel >= 0.6.0 < 0.7.0 |
8a86771e JB |
142 | |
143 | %{__make} | |
144 | ||
145 | %install | |
146 | rm -rf $RPM_BUILD_ROOT | |
147 | ||
148 | %{__make} install \ | |
149 | DESTDIR=$RPM_BUILD_ROOT | |
150 | ||
151 | # obsoleted by pkg-config | |
152 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libspice-server.la | |
153 | ||
154 | %clean | |
155 | rm -rf $RPM_BUILD_ROOT | |
156 | ||
157 | %post -n spice-server-libs -p /sbin/ldconfig | |
158 | %postun -n spice-server-libs -p /sbin/ldconfig | |
159 | ||
160 | %files -n spice-server-libs | |
161 | %defattr(644,root,root,755) | |
162 | %doc NEWS README | |
163 | %attr(755,root,root) %{_libdir}/libspice-server.so.*.*.* | |
164 | %attr(755,root,root) %ghost %{_libdir}/libspice-server.so.1 | |
165 | ||
166 | %files -n spice-server-devel | |
167 | %defattr(644,root,root,755) | |
8a86771e | 168 | %attr(755,root,root) %{_libdir}/libspice-server.so |
8b35789c | 169 | %{_includedir}/spice-server |
8a86771e JB |
170 | %{_pkgconfigdir}/spice-server.pc |
171 | ||
172 | %files -n spice-server-static | |
173 | %defattr(644,root,root,755) | |
174 | %{_libdir}/libspice-server.a | |
175 | ||
176 | %files -n spice-client | |
177 | %defattr(644,root,root,755) | |
178 | %attr(755,root,root) %{_bindir}/spicec |