summaryrefslogtreecommitdiff
path: root/server/redhat/spice-server.spec.template
blob: 027b2d3836b3e76cbdb78d4b2726e475bfb3ecc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265

%global tarname spice

%define buildid %{nil}%%BUILDID%%
%define sublevel %%SUBLEVEL%%
%define pkgrelease %%PKGRELEASE%%
%define rpmversion %{sublevel}
%define full_release %{pkgrelease}%{?dist}%{?buildid}

Name:           spice-server
Version:        %{rpmversion}
Release:        %{full_release}
Summary:        Implements the server side of the SPICE protocol
Group:          System Environment/Libraries
License:        LGPLv2+
URL:            http://www.spice-space.org/
Source0:        http://spice-space.org/download/releases/%{tarname}-%{version}.tar.bz2
Source1:        http://downloads.sourceforge.net/pyparsing/pyparsing-1.5.6.tar.gz

%%CONFIGS%%

%%PATCH_LIST%%

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

ExclusiveArch:  x86_64

BuildRequires:  pkgconfig
BuildRequires:  gcc-c++
BuildRequires:  alsa-lib-devel
BuildRequires:  pixman-devel >= 0.18
BuildRequires:  libjpeg-devel
BuildRequires:  libXrandr-devel
BuildRequires:  libXext-devel
BuildRequires:  libXfixes-devel
BuildRequires:  openssl-devel
BuildRequires:  celt051-devel
BuildRequires:  libcacard-devel >= 0.1.2
BuildRequires:  spice-protocol >= 0.8.1
BuildRequires:  autoconf automake libtool
BuildRequires:  cyrus-sasl-devel

Requires:       pixman >= 0.18
Requires:       pkgconfig

%package devel
Summary:        Header files, libraries and development documentation for %{name}
Group:          Development/Libraries

Requires:       %{name} = %{version}-%{release}
Requires:       alsa-lib-devel
Requires:       pixman-devel >= 0.18
Requires:       libjpeg-devel
Requires:       openssl-devel
Requires:       celt051-devel
Requires:       spice-protocol >= 0.8.1


%description
The Simple Protocol for Independent Computing Environments (SPICE) is
a remote display system built for virtual environments which allows
you to view a computing 'desktop' environment not only on the machine
where it is running, but from anywhere on the Internet and from a wide
variety of machine architectures.

This package contains the runtime libraries for any application that wishes
to be a SPICE server.

%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs
using %{name},you will need to install %{name}-devel.

%prep
%setup -q -n %{tarname}-%{version}
# extract pyparsing. assumes: using python2, and that pyparsing remains a
# single python source file named pyparsing_py2.py
%setup -T -D -a 1 -n %{tarname}-%{version}
cp pyparsing-1.5.6/pyparsing_py2.py pyparsing.py

%%PATCH_APPLICATION%%

%build
#CFLAGS="%{optflags}"; CFLAGS="${CFLAGS/-Wall/}"; export CFLAGS;
#CXXFLAGS="%{optflags}"; CXXFLAGS="${CXXFLAGS/-Wall/}"; export CXXFLAGS;
#FFLAGS="%{optflags}"; FFLAGS="${FFLAGS/-Wall/}"; export FFLAGS;
autoreconf -i -f
%configure --enable-smartcard --with-sasl
#sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
#sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make -C server %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make -C server install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/pkgconfig
install -m 00644 %{name}.pc $RPM_BUILD_ROOT/%{_libdir}/pkgconfig


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-, root, root, 0755)
%doc COPYING README
%{_libdir}/libspice-server.so.*

%files devel
%defattr(-, root, root, 0755)
%doc COPYING README
%{_includedir}/spice-server/
%{_libdir}/libspice-server.so
%{_libdir}/pkgconfig/spice-server.pc
%exclude %{_libdir}/*.a
%exclude %{_libdir}/*.la

%changelog
%%CHANGELOG%%
* Mon Aug 01 2011 Uri Lublin <uril@redhat.com> - 0.8.2-3
- Drop unnecessary X11 and alsa requires from spice-server.pc
  + Fix a rpmdiff warning
Related: rhbz#723676
- server/red_dispatcher: fix wrong resolution set for tablet
Resolves: rhbz#726973

* Wed Jul 28 2011 Uri Lublin <uril@redhat.com> - 0.8.2-2
- On migration, do not read command rings before RED_WORKER_MESSAGE_START
Resolves: rhbz#718713

* Fri Jul 22 2011 Uri Lublin <uril@redhat.com> - 0.8.2-1
- Rebase to upstream 0.8.2, including
 + sasl support (fdo bz 34795)
 + support guest async io
 + support guest suspend and hibernate
 + add symbol versioning to libspice-server.so
 + prevent running an old spice-server with a newer qemu
 + Bug fixes (RHBZ): 714801, 713474, 674532, 653545
 + BuildRequires spice-protocol >= 0.8.1 and cyrus-sasl-devel
Resolves: #723676

* Mon Jun 27 2011 Uri Lublin <uril@redhat.com> - 0.8.1-2
- Remove Obsolete lines (added in 0.7.2-3)
Resolves: #707119

* Mon Jun 05 2011 Uri Lublin <uril@redhat.com> - 0.8.1-1
- Rebase to upstream 0.8.1, including
 + Make copy/paste support configurable
 + Some server/vdagent bugs fixed
Resolves: #710200

* Mon Mar 07 2011 Uri Lublin <uril@redhat.com> - 0.8.0-1
- Rebase to upstream 0.8.0
  + Includes "Fix segfault on migration" patch
  + Some spice-client bug fixes.
Resolves: #672035

* Mon Feb 21 2011 Uri Lublin <uril@redhat.com> - 0.7.3-2
- Fix segfault on migration
Resolves: #674451

* Thu Feb 17 2011 Uri Lublin <uril@redhat.com> - 0.7.3-1
- Rebase to upstream 0.7.3:
  + Mostly smart-card updates:
    - including all the changes in 0.7.2.4
  + Some gcc warning cleanups.
- Fix permissions of spice-server.pc
Resolves: #672035

* Fri Feb 04 2011 Uri Lublin <uril@redhat.com> - 0.7.2-4
- smartcard -- libcacard 0.1.2 updates:
 - server
  - use network byte order when talking to device.
 - both
  - no more reader_id_t, uint32_t instead
  - no more ReaderAddResponse, use VSC_Error with
    code==VSC_SUCCESS instead.
  - change an assert to a red_printf("error:..")
    if got an unexpectedly undefined reader id.
 - client (not part of this package)
  - track number of expected reader insertions
Resolves: #674937

* Fri Feb 04 2011 Uri Lublin <uril@redhat.com> - 0.7.2-3
- Obsolete old packages that are not needed now
Resolves: #674171

* Mon Jan 24 2011 Uri Lublin <uril@redhat.com> - 0.7.2-2
- Rebase to spice upstream release 0.7.2
- Drop all patches (all upstreamed)
- Enable smartcard (CAC) support
Resolves: #672035

* Fri Jul 30 2010 Uri Lublin <uril@redhat.com> - 0.4.2-15
 - Fix unsafe accesses
  + fix unsafe guest data accessing.
  + fix unsafe free() call.
  + fix unsafe cursor items handling.
  + add missing overflow check.
Resolves: #568811

* Wed Jun 30 2010 Uri Lublin <uril@redhat.com> - 0.4.2-14
- make opengl optional - add a missing patch
  ifdef out some opengl calls.
Resolves: #482556

* Wed Jun 30 2010 Uri Lublin <uril@redhat.com> - 0.4.2-13
- remove Requires and BuildRequires mesa-libGLU-devel
  + open-gl is now disabled.
- bumped release to -13 due to tag issue
Related: #482556

* Wed Jun 30 2010 Uri Lublin <uril@redhat.com> - 0.4.2-11
- make opengl optional, disabled by default (2 patches)
Resolves: #482556

* Thu Apr 22 2010 Uri Lublin <uril@redhat.com> - 0.4.2-10
- spice: server: new-api (4 more patches)
     + streaming-video, agent-mouse, playback-compression.
Related: #571286

* Sun Apr  4 2010 Uri Lublin <uril@redhat.com> - 0.4.2-9
 - generate auto* generated files (e.g. Makefile.in)
Resolves: #579329

* Tue Mar 23 2010 Uri Lublin <uril@redhat.com> - 0.4.2-8
 - spice server: renaming library and includedir
Resolves: #573349

* Tue Mar 23 2010 Uri Lublin <uril@redhat.com> - 0.4.2-7
 - fix wrong access to ring item
Resolves: #575556

* Tue Mar 23 2010 Uri Lublin <uril@redhat.com> - 0.4.2-6
 - more permissive video identification
Resolves: #575576

* Tue Mar 23 2010 Uri Lublin <uril@redhat.com> - 0.4.2-5
 - new migration process
Resolves: #576029

* Wed Mar 17 2010 Uri Lublin <uril@redhat.com> - 0.4.2-4
- spice: server: new-api (2 more patches)
Related: #571286

* Mon Mar  7 2010 Uri Lublin <uril@redhat.com> - 0.4.2-3
 - Use default configure macro (remove _prefix and _libdir)
Related: #543948

* Sun Mar 07 2010 Uri Lublin <uril@redhat.com> - 0.4.2-2
- spice: server: new-api (10 patches)
Related: #571286

* Sun Mar 07 2010 Uri Lublin <uril@redhat.com> - 0.4.2-1
- spice: server: avoid video streaming of small images
Resolves: #571283

* Mon Jan 11 2009 Uri Lublin <uril@redhat.com> - 0.4.2-0
 - first spec for 0.4.2
Related: #549807