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