]>
Commit | Line | Data |
---|---|---|
f1c7fe93 JR |
1 | # |
2 | # Conditional build: | |
f60f8378 | 3 | %bcond_without opengl # OpenGL support |
f1c7fe93 | 4 | # |
8a86771e JB |
5 | Summary: SPICE virtualization solution |
6 | Summary(pl.UTF-8): System wirtualizacji SPICE | |
7 | # real package name (spice) is already occupied | |
8 | Name: spice-space | |
ccb70346 | 9 | # NOTE: 0.13.x is unstable (see DEVEL branch for it) |
714994a9 | 10 | Version: 0.14.2 |
b2151363 | 11 | Release: 1 |
8a86771e JB |
12 | License: LGPL v2.1+ |
13 | Group: Applications/Emulators | |
b2151363 | 14 | Source0: https://www.spice-space.org/download/releases/spice-server/spice-%{version}.tar.bz2 |
714994a9 | 15 | # Source0-md5: 7ca431580b662e7c3cb8021983a3d387 |
4c3a44da | 16 | Patch0: spice-am.patch |
375e4b0a | 17 | URL: https://www.spice-space.org/ |
f60f8378 | 18 | %{?with_opengl:BuildRequires: OpenGL-GLU-devel} |
625205ef | 19 | %{?with_opengl:BuildRequires: OpenGL-devel} |
8a86771e | 20 | BuildRequires: alsa-lib-devel |
d68f94e3 | 21 | BuildRequires: asciidoc |
f60f8378 JB |
22 | BuildRequires: autoconf >= 2.63 |
23 | BuildRequires: automake >= 1:1.11 | |
69094da3 | 24 | BuildRequires: celt051-devel >= 0.5.1.1 |
0ffcd9c3 | 25 | BuildRequires: cyrus-sasl-devel >= 2 |
714994a9 JP |
26 | BuildRequires: gcc >= 5:4.0 |
27 | BuildRequires: glib2-devel >= 1:2.38 | |
28 | BuildRequires: gstreamer-devel >= 1.0 | |
29 | BuildRequires: gstreamer-plugins-base-devel >= 1.0 | |
30 | BuildRequires: libcacard-devel >= 2.5.1 | |
8a86771e JB |
31 | BuildRequires: libjpeg-devel |
32 | BuildRequires: libstdc++-devel | |
f60f8378 | 33 | BuildRequires: libtool >= 2:2 |
d68f94e3 | 34 | BuildRequires: lz4-devel |
b2151363 | 35 | BuildRequires: openssl-devel >= 1.0.0 |
f60f8378 | 36 | BuildRequires: opus-devel >= 0.9.14 |
8a86771e JB |
37 | BuildRequires: pixman-devel >= 0.17.7 |
38 | BuildRequires: pkgconfig | |
9c015a50 | 39 | BuildRequires: python >= 2 |
06042b35 | 40 | BuildRequires: python-pyparsing |
d68f94e3 | 41 | BuildRequires: python-six |
f1c7fe93 | 42 | BuildRequires: rpmbuild(macros) >= 1.527 |
714994a9 | 43 | BuildRequires: spice-protocol >= 0.14.0 |
9c015a50 | 44 | BuildRequires: xorg-lib-libX11-devel |
8a86771e JB |
45 | BuildRequires: xorg-lib-libXext-devel |
46 | BuildRequires: xorg-lib-libXfixes-devel | |
8dae8717 | 47 | BuildRequires: xorg-lib-libXinerama-devel >= 1.0 |
8a86771e JB |
48 | BuildRequires: xorg-lib-libXrandr-devel >= 1.2 |
49 | BuildRequires: xorg-lib-libXrender-devel | |
50 | BuildRequires: zlib-devel | |
0d293d53 | 51 | ExclusiveArch: %{ix86} %{x8664} x32 arm |
8a86771e JB |
52 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
53 | ||
54 | %description | |
55 | Spice is an open remote computing solution, providing client access to | |
56 | remote machine display and devices (e.g., keyboard, mouse, audio). | |
57 | Spice achieves a user experience similar to an interaction with a | |
58 | local machine, while trying to offload most of the intensive CPU and | |
59 | GPU tasks to the client. Spice is suitable for both LAN and WAN usage, | |
60 | without compromising on the user experience. | |
61 | ||
62 | %description -l pl.UTF-8 | |
63 | Spice to rozwiązanie do zdalnych obliczeń, zapewniające dostęp | |
64 | kliencki ekranu i urządzeń zdalnej maszyny (klawiatury, myszy, | |
65 | dźwięku). Daje użytkownikowi wrażenie podobne do pracy lokalnej, ale | |
66 | próbuje większość zadań wykorzystujących intensywnie CPU i GPU zrzucić | |
67 | na klienta. Nadaje się do pracy w sieciach LAN i WAN, bez większych | |
68 | poświęceń ze strony doznań użytkownika. | |
69 | ||
70 | %package -n spice-server-libs | |
71 | Summary: SPICE server library | |
72 | Summary(pl.UTF-8): Biblioteka serwera SPICE | |
73 | Group: Libraries | |
74 | Requires: celt051 >= 0.5.1.1 | |
714994a9 | 75 | Requires: glib2 >= 1:2.38 |
b2151363 | 76 | Requires: openssl >= 1.0.0 |
f60f8378 | 77 | Requires: opus >= 0.9.14 |
8a86771e | 78 | Requires: pixman >= 0.17.7 |
d68f94e3 | 79 | Obsoletes: spice-client |
8a86771e JB |
80 | |
81 | %description -n spice-server-libs | |
82 | SPICE server library. | |
83 | ||
84 | %description -n spice-server-libs -l pl.UTF-8 | |
85 | Biblioteka serwera SPICE. | |
86 | ||
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 | |
714994a9 | 92 | Requires: glib2-devel >= 1:2.38 |
b2151363 | 93 | Requires: openssl-devel >= 1.0.0 |
8a86771e JB |
94 | Requires: pixman-devel >= 0.17.7 |
95 | Requires: spice-server-libs = %{version}-%{release} | |
96 | ||
97 | %description -n spice-server-devel | |
98 | Header files for SPICE server library. | |
99 | ||
100 | %description -n spice-server-devel -l pl.UTF-8 | |
101 | Pliki nagłówkowe biblioteki serwera SPICE. | |
102 | ||
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} | |
108 | ||
109 | %description -n spice-server-static | |
110 | Static SPICE server library. | |
111 | ||
112 | %description -n spice-server-static -l pl.UTF-8 | |
113 | Statyczna biblioteka serwera SPICE. | |
114 | ||
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 | |
714994a9 | 120 | Requires: libcacard >= 2.5.1 |
f60f8378 | 121 | Requires: opus >= 0.9.14 |
8a86771e | 122 | Requires: pixman >= 0.17.7 |
8dae8717 | 123 | Requires: xorg-lib-libXinerama >= 1.0 |
625205ef | 124 | Requires: xorg-lib-libXrandr >= 1.2 |
8a86771e JB |
125 | |
126 | %description -n spice-client | |
127 | SPICE client for X11. | |
128 | ||
129 | %description -n spice-client -l pl.UTF-8 | |
130 | Klient SPICE dla X11. | |
131 | ||
132 | %prep | |
133 | %setup -q -n spice-%{version} | |
134 | %patch0 -p1 | |
8a86771e JB |
135 | |
136 | %build | |
137 | %{__libtoolize} | |
d68f94e3 | 138 | %{__aclocal} -I m4 |
8a86771e JB |
139 | %{__autoconf} |
140 | %{__autoheader} | |
141 | %{__automake} | |
b2151363 | 142 | cd subprojects/spice-common |
d68f94e3 JB |
143 | %{__libtoolize} |
144 | %{__aclocal} -I m4 | |
145 | %{__autoconf} | |
146 | %{__autoheader} | |
147 | %{__automake} | |
b2151363 | 148 | cd ../.. |
8a86771e | 149 | %configure \ |
e68ab450 | 150 | --disable-silent-rules \ |
b2151363 | 151 | --enable-celt051 \ |
69094da3 | 152 | --enable-client \ |
d68f94e3 | 153 | --enable-lz4 \ |
f60f8378 | 154 | %{?with_opengl:--enable-opengl} \ |
375e4b0a JB |
155 | --enable-smartcard \ |
156 | --enable-static | |
f60f8378 | 157 | |
8a86771e JB |
158 | %{__make} |
159 | ||
160 | %install | |
161 | rm -rf $RPM_BUILD_ROOT | |
162 | ||
163 | %{__make} install \ | |
164 | DESTDIR=$RPM_BUILD_ROOT | |
165 | ||
166 | # obsoleted by pkg-config | |
167 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libspice-server.la | |
168 | ||
169 | %clean | |
170 | rm -rf $RPM_BUILD_ROOT | |
171 | ||
172 | %post -n spice-server-libs -p /sbin/ldconfig | |
173 | %postun -n spice-server-libs -p /sbin/ldconfig | |
174 | ||
175 | %files -n spice-server-libs | |
176 | %defattr(644,root,root,755) | |
177 | %doc NEWS README | |
178 | %attr(755,root,root) %{_libdir}/libspice-server.so.*.*.* | |
179 | %attr(755,root,root) %ghost %{_libdir}/libspice-server.so.1 | |
180 | ||
181 | %files -n spice-server-devel | |
182 | %defattr(644,root,root,755) | |
8a86771e | 183 | %attr(755,root,root) %{_libdir}/libspice-server.so |
8b35789c | 184 | %{_includedir}/spice-server |
8a86771e JB |
185 | %{_pkgconfigdir}/spice-server.pc |
186 | ||
187 | %files -n spice-server-static | |
188 | %defattr(644,root,root,755) | |
189 | %{_libdir}/libspice-server.a |