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