File libvirt.spec of Package libvirt (Revision 8)
Currently displaying revision 8, show latest
1
#
2
# spec file for package libvirt (Version 0.4.0)
3
#
4
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
5
# This file and all modifications and additions to the pristine
6
# package are under the same license as the package itself.
7
#
8
# Please submit bugfixes or comments via http://bugs.opensuse.org/
9
#
10
11
# norootforbuild
12
13
14
Name: libvirt
15
BuildRequires: PolicyKit-devel avahi-devel bridge-utils cyrus-sasl-devel fdupes gettext gnutls-devel libxml2-devel ncurses-devel pkg-config python-devel readline-devel xen-devel xhtml-dtd
16
# Only for directory ownership:
17
BuildRequires: gtk-doc
18
Url: http://libvirt.org/
19
License: LGPL v2.1 or later
20
Group: Development/Libraries/C and C++
21
AutoReqProv: yes
22
Version: 0.4.0
23
Release: 43
24
Summary: A C toolkit to interract with the virtualization capabilities of Linux
25
Requires: dnsmasq
26
Requires: bridge-utils
27
Requires: iptables
28
Requires: cyrus-sasl
29
# Not technically required, but makes 'out-of-box' config
30
# work correctly & doesn't have onerous dependancies
31
Recommends: cyrus-sasl-digestmd5
32
Requires: PolicyKit >= 0.6
33
Source0: %{name}-%{version}.tar.bz2
34
Source1: libvirtd.init
35
Patch0: auth-callback.patch
36
Patch1: xen-3_2-hypercall.patch
37
BuildRoot: %{_tmppath}/%{name}-%{version}-build
38
ExclusiveArch: %ix86 x86_64
39
%define _libexecdir %{_prefix}/lib/%{name}
40
41
%description
42
Libvirt is a C toolkit to interract with the virtualization
43
capabilities Linux. Virtualization of the Linux Operating System means
44
the ability to run multiple instances of Operating Systems concurently
45
on a single hardware system where the basic resources are driven by a
46
Linux instance. The library aims to provide long term stable C API
47
initially for the Xen paravirtualization but should be able to
48
integrate other virtualization mechanisms if needed.
49
50
51
52
Authors:
53
--------
54
Daniel Veillard <veillard@redhat.com>
55
Karel Zak <kzak@redhat.com>
56
57
%package devel
58
License: LGPL v2.1 or later
59
Summary: A C toolkit to interract with the virtualization capabilities of Linux
60
Group: Development/Libraries/C and C++
61
Requires: %{name} = %{version} libxml2-devel xen-devel
62
63
%description devel
64
Libvirt is a C toolkit to interract with the virtualization
65
capabilities Linux. Virtualization of the Linux Operating System means
66
the ability to run multiple instances of Operating Systems concurently
67
on a single hardware system where the basic resources are driven by a
68
Linux instance. The library aims to provide long term stable C API
69
initially for the Xen paravirtualization but should be able to
70
integrate other virtualization mechanisms if needed.
71
72
73
74
Authors:
75
--------
76
Daniel Veillard <veillard@redhat.com>
77
Karel Zak <kzak@redhat.com>
78
79
%package doc
80
License: LGPL v2.1 or later
81
Summary: A C toolkit to interract with the virtualization capabilities of Linux
82
Group: Development/Libraries/C and C++
83
Requires: %{name} = %{version}
84
85
%description doc
86
Libvirt is a C toolkit to interract with the virtualization
87
capabilities Linux. Virtualization of the Linux Operating System means
88
the ability to run multiple instances of Operating Systems concurently
89
on a single hardware system where the basic resources are driven by a
90
Linux instance. The library aims to provide long term stable C API
91
initially for the Xen paravirtualization but should be able to
92
integrate other virtualization mechanisms if needed.
93
94
95
96
Authors:
97
--------
98
Daniel Veillard <veillard@redhat.com>
99
Karel Zak <kzak@redhat.com>
100
101
%package python
102
License: LGPL v2.1 or later
103
Summary: A C toolkit to interract with the virtualization capabilities of Linux
104
Group: Development/Libraries/C and C++
105
Requires: %{name} = %{version}
106
%py_requires
107
108
%description python
109
Libvirt is a C toolkit to interract with the virtualization
110
capabilities Linux. Virtualization of the Linux Operating System means
111
the ability to run multiple instances of Operating Systems concurently
112
on a single hardware system where the basic resources are driven by a
113
Linux instance. The library aims to provide long term stable C API
114
initially for the Xen paravirtualization but should be able to
115
integrate other virtualization mechanisms if needed.
116
117
118
119
Authors:
120
--------
121
Daniel Veillard <veillard@redhat.com>
122
Karel Zak <kzak@redhat.com>
123
124
%prep
125
%setup -q
126
%patch0 -p1
127
%patch1 -p1
128
rm po/no.*
129
130
%build
131
autoreconf -f -i
132
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
133
%configure --with-init-script=none \
134
--with-qemud-pid-file=%{_localstatedir}/run/libvirt_qemud.pid \
135
--with-remote-file=%{_localstatedir}/run/libvirtd.pid \
136
--with-xen-proxy=no
137
make DOCS_DIR=%{_docdir}/%{name}-python EXAMPLE_DIR=%{_docdir}/%{name}-python/examples HTML_DIR=%{_docdir}/%{name}
138
cd docs/examples ; make index.html ; cd ../..
139
140
%install
141
%makeinstall DOCS_DIR=%{_docdir}/%{name}-python EXAMPLE_DIR=%{_docdir}/%{name}-python/examples HTML_DIR=%{_docdir}/%{name}
142
cp -a AUTHORS ChangeLog COPYING NEWS README TODO $RPM_BUILD_ROOT%{_docdir}/%{name}/
143
cp -a docs/{*.html,*.gif,*.rng,libvirt*.xml} $RPM_BUILD_ROOT%{_docdir}/%{name}
144
mkdir $RPM_BUILD_ROOT%{_docdir}/%{name}/examples
145
install -m 0644 docs/examples/{*.c,*.html} $RPM_BUILD_ROOT%{_docdir}/%{name}/examples
146
# remove currently unsupported locale
147
rm -rf $RPM_BUILD_ROOT/usr/share/locale/sr@latin
148
# for now, do not install the default network definition
149
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/default.xml
150
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml
151
mkdir -p $RPM_BUILD_ROOT/var/run/libvirtd
152
rm $RPM_BUILD_ROOT%{_docdir}/%{name}/{*.c,examples.x*}
153
install -m 0644 docs/examples/python/{*.py,*.xml,README} $RPM_BUILD_ROOT%{_docdir}/%{name}-python/examples
154
rm $RPM_BUILD_ROOT%{_libdir}/*.*a $RPM_BUILD_ROOT%{py_sitedir}/*.*a
155
ln_dupes()
156
{
157
target=""
158
fdupes -r "$1" | while read file; do
159
if [ -z "$file" ] || [ -z "$target" ]; then
160
target="$file"
161
continue
162
fi
163
ln -sf "${target#.}" "$file"
164
done
165
}
166
(
167
cd $RPM_BUILD_ROOT
168
ln_dupes .%{_docdir}/%{name}
169
ln_dupes ./usr/share/locale
170
)
171
# init script
172
mkdir -p $RPM_BUILD_ROOT/etc/init.d
173
install %SOURCE1 $RPM_BUILD_ROOT/etc/init.d/libvirtd
174
ln -s /etc/init.d/libvirtd $RPM_BUILD_ROOT/usr/sbin/rclibvirtd
175
%find_lang %{name}
176
177
%clean
178
rm -rf $RPM_BUILD_ROOT
179
180
%post
181
/sbin/ldconfig
182
%{fillup_and_insserv -f -y libvirtd}
183
184
%preun
185
%stop_on_removal libvirtd
186
187
%postun
188
/sbin/ldconfig
189
%restart_on_update libvirtd
190
%insserv_cleanup
191
192
%files -f %{name}.lang
193
%defattr(-, root, root)
194
%{_bindir}/virsh
195
%{_sbindir}/libvirtd
196
%doc %dir %{_docdir}/%{name}
197
%doc %{_docdir}/%{name}/[CNRT]*
198
%doc %{_docdir}/%{name}/AUTHORS
199
%doc %{_docdir}/%{name}/examples
200
%doc %{_mandir}/man1/virsh.1*
201
%{_libdir}/*.so.*
202
%dir %attr(0700, root, root) %{_sysconfdir}/libvirt/
203
%dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/
204
%dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/networks/
205
%dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/networks/autostart
206
%dir /var/run/libvirt/
207
%config /etc/init.d/libvirtd
208
%{_sbindir}/rclibvirtd
209
%config %{_sysconfdir}/libvirt/libvirtd.conf
210
%config %{_sysconfdir}/libvirt/qemu.conf
211
%config %{_sysconfdir}/sasl2/libvirt.conf
212
%{_datadir}/PolicyKit/policy/libvirtd.policy
213
214
%files devel
215
%defattr(-, root, root)
216
%{_includedir}/libvirt
217
%{_libdir}/*.so
218
%{_libdir}/pkgconfig/libvirt.pc
219
220
%files doc
221
%defattr(-, root, root)
222
%{_datadir}/gtk-doc/html/libvirt
223
%doc %{_docdir}/%{name}/*.gif
224
%doc %{_docdir}/%{name}/*.html
225
%doc %{_docdir}/%{name}/*.rng
226
%doc %{_docdir}/%{name}/*.xml
227
%doc %{_docdir}/%{name}/html
228
229
%files python
230
%defattr(-, root, root)
231
%doc %{_docdir}/%{name}-python
232
%{py_sitedir}/libvirt.py*
233
%{py_sitedir}/libvirtmod*
234
235
%changelog
236
* Thu Apr 24 2008 jfehlig@novell.com
237
- Fix Xen 3.2 hypercalls. bnc#378798
238
* Thu Apr 10 2008 jfehlig@novell.com
239
- Fix NULL pointer dereference in auth callback. bnc#373180,
240
bnc#354995
241
* Wed Jan 09 2008 jfehlig@novell.com
242
- Remove Requires of nc package. netcat is the equivalent but it
243
does not support unix domain sockets so no need to require it
244
either.
245
* Tue Jan 08 2008 coolo@suse.de
246
- do not require a non existant package, but change it to a recommend
247
to digestmd5
248
* Fri Jan 04 2008 jfehlig@novell.com
249
- Updated to libvirt-0.4.0
250
- SASL based authentication for libvirt remote support
251
- PolicyKit authentication
252
- Documentation: example files for QEMU and libvirtd configuations,
253
authentication documentation updates
254
- Bug fixes, improvements and code cleanup
255
* Tue Oct 09 2007 jfehlig@novell.com
256
- Updated to libvirt 0.3.3
257
- Avahi mDNS daemon export
258
- NUMA support
259
- Bug fixes
260
- Cleanup rpmlint warnings
261
* Mon Oct 08 2007 jfehlig@novell.com
262
- Removed 'jobs' option from make invocation in spec file. Appears
263
to be a subtle dependency issue in one of the makefiles which is
264
causing problems with generation of python bindings when jobs > 1.
265
Bug #329032.
266
* Mon Aug 20 2007 jfehlig@novell.com
267
- Added init script for libvirtd. libvirtd is needed to support
268
management of qemu/kvm guests. Some Xen networking is handled
269
through libvirt as well - bug #298021.
270
* Mon Jul 23 2007 jfehlig@novell.com
271
- Update to libvirt-0.3.0
272
- Secure Remote support
273
- Documentation: remote support, description of the URI connection
274
strings, update of virsh man page, matrix of libvirt API/hypervisor
275
support with version informations
276
- Bug fixes: examples Makefile.am generation, SetMem fix, URI
277
handling and ordering of drivers, fix virsh help without hypervisor,
278
id marshalling fix, fix virConnectGetMaxVcpus on remote, avoid
279
a realloc leak, scheduler parameters handling for Xen, various
280
early remote bug fixes, remove virsh leaks of domains references,
281
configCache refill bug, fix XML serialization bugs
282
- Improvements: QEmu switch to XDR-based protocol, device attach/detach
283
commands OCaml bindings, new entry points virDomainGetConnect and
284
virNetworkGetConnect useful for bindings, reunitifaction of remote
285
and qemu daemon under a single libvirtd with a config file
286
- Cleanups: parsing of connection URIs, messages from virsh,
287
Coverage files, Solaris fixes, avoid [r]index calls, release
288
information in Xen backend, virsh cpupin command cleanups,
289
xen:/// suppport as standard Xen URI, improve driver
290
selection/decline mechanism, error reporting on XML dump,
291
Remove unused virDomainKernel structure, daemon event loop event
292
handling, various unifications cleanup in the daemon merging,
293
internal file and timer monitoring API, remove libsysfs dependancy,
294
call brctl program directly, virBuffer functions cleanups,
295
make init script LSB compliant, error handling on lookup functions,
296
remove internal virGetDomainByID, revamp of xen subdrivers interfaces
297
- Localization updates
298
* Tue Jun 12 2007 ccoffing@novell.com
299
- Update to libvirt-0.2.3.
300
- Fix duplicate files found by rpmlint.
301
* Wed May 23 2007 ccoffing@novell.com
302
- Fix rpmlint errors.
303
* Fri Apr 27 2007 ccoffing@novell.com
304
- Update to libvirt-0.2.2.
305
* Wed Mar 07 2007 sbrabec@suse.cz
306
- Created -doc subpackage (#248813).
307
- Do not remove valid locales.
308
- Fixed docdir destination.
309
- Build with CFLAGS.
310
- Spec file cleanup.
311
* Tue Feb 20 2007 jfehlig@novell.com
312
- Removed usr/lib/libvirt_proxy setuid binary from package. Fixes
313
bug #246610.
314
* Fri Feb 16 2007 jfehlig@novell.com
315
- Updated to latest release. Many of the issues seen in virt-manager
316
have been caused by bugs / missing functionality in libvirt. This
317
upate provides a better basis for virt-manager.
318
* Wed Jan 10 2007 jfehlig@novell.com
319
- Updated to latest release, version 0.1.10. Submitting to SLES10 SP1
320
to provide base functionality for FATE feature 301181.
321
- more localizations
322
- bug fixes:
323
- VCPU info breakages on xen 3.0.3
324
- xenDaemonListDomains buffer overflow (Daniel Berrange)
325
- reference count bug when creating Xen domains (Daniel Berrange)
326
- improvements:
327
- support graphic framebuffer for Xen paravirt (Daniel Berrange)
328
- VNC listen IP range support (Daniel Berrange)
329
- support for default Xen config files and inactive domains of 3.0.4 (Daniel Berrange)
330
* Fri Dec 08 2006 jfehlig@novell.com
331
- Updated to latest release, version 0.1.9.
332
- python bindings: release interpeter lock when calling C (Daniel Berrange)
333
- don't raise HTTP error when looking informations for a domain
334
- some refactoring to use the driver for all entry points
335
- better error reporting (Daniel Berrange)
336
- fix OS reporting when running as non-root
337
- provide XML parsing errors
338
- extension of the test framework (Daniel Berrange)
339
- fix the reconnect regression test
340
- python bindings: Domain instances now link to the Connect to avoid garbage collection and disconnect
341
- separate the notion of maximum memory and current use at the XML level
342
- Fix a memory leak (Daniel Berrange)
343
- add support for shareable drives
344
- add support for non-bridge style networking configs for guests(Daniel Berrange)
345
- python bindings: fix unsigned long marshalling (Daniel Berrange)
346
- new config APIs virConfNew() and virConfSetValue() to build configs from scratch
347
- hot plug device support based on Michel Ponceau patch
348
- added support for inactive domains, new APIs, various associated cleanup (Daniel Berrange)
349
- special device model for HVM guests (Daniel Berrange)
350
- add API to dump core of domains (but requires a patched xend)
351
- pygrub bootloader informations take over <os> informations
352
- updated the localization strings
353
* Fri Oct 20 2006 jfehlig@novell.com
354
- Updated to latest release, version 0.1.8.
355
- Bug for system with page size != 4k
356
- vcpu number initialization (Philippe Berthault)
357
- don't label crashed domains as shut off (Peter Vetere)
358
- fix virsh man page (Noriko Mizumoto)
359
- blktapdd support for alternate drivers like blktap (Daniel Berrange)
360
- memory leak fixes (xend interface and XML parsing) (Daniel Berrange)
361
- compile fix
362
- mlock/munlock size fixes (Daniel Berrange)
363
- improve error reporting
364
- Updated to latest release, version 0.1.7.
365
- fix a memory bug on getting vcpu informations from xend (Daniel Berrange)
366
- fix another problem in the hypercalls change in Xen changeset
367
86d26e6ec89b when getting domain informations (Daniel Berrange)
368
* Tue Sep 26 2006 jfehlig@novell.com
369
- Updated to latest release, version 0.1.6. This release includes
370
fix in hypercall driver so local patch has been removed.
371
* Wed Sep 13 2006 jfehlig@novell.com
372
- Fixed bug in hypercall driver introduced in version 0.1.5.
373
Patch sumbmitted upstream and included locally until next release.
374
* Mon Sep 11 2006 jfehlig@novell.com
375
- Updated to latest release, version 0.1.5
376
- Support for new hypercalls change in Xen changeset 86d26e6ec89b
377
- bug fixes: virParseUUID() was wrong, netwoking for paravirt guestsi
378
(Daniel Berrange), virsh on non-existent domains (Daniel Berrange),
379
string cast bug when handling error in python (Pete Vetere), HTTP
380
500 xend error code handling (Pete Vetere and Daniel Berrange)
381
- improvements: test suite for SEXPR <-> XML format conversions (Daniel
382
Berrange), virsh output regression suite (Daniel Berrange), new environ
383
variable VIRSH_DEFAULT_CONNECT_URI for the default URI when connecting
384
(Daniel Berrange), graphical console support for paravirt guests
385
(Jeremy Katz), parsing of simple Xen config files (with Daniel Berrange),
386
early work on defined (not running) domains (Daniel Berrange),
387
virsh output improvement (Daniel Berrange
388
* Mon Aug 28 2006 jfehlig@novell.com
389
- Updated to latest release, version 0.1.4
390
- bug fixes: spec file fix (Mark McLoughlin), error report problem (with
391
Hugh Brock), long integer in Python bindings (with Daniel Berrange), XML
392
generation bug for CDRom (Daniel Berrange), bug whem using number() XPath
393
function (Mark McLoughlin), fix python detection code, remove duplicate
394
initialization errors (Daniel Berrange)
395
- improvements: UUID in XML description (Peter Vetere), proxy code
396
cleanup, virtual CPU and affinity support + virsh support (Michel
397
Ponceau, Philippe Berthault, Daniel Berrange), port and tty informations
398
for console in XML (Daniel Berrange), added XML dump to driver and proxy
399
support (Daniel Berrange), extention of boot options with support for
400
floppy and cdrom (Daniel Berrange), features block in XML to report/ask
401
PAE, ACPI, APIC for HVM domains (Daniel Berrange), fail saide-effect
402
operations when using read-only connection, large improvements to test
403
driver (Daniel Berrange)
404
- documentation: spelling (Daniel Berrange), test driver examples.
405
* Wed Aug 16 2006 jfehlig@novell.com
406
- Added ExclusiveArch tag so as to only build on x86 and x86_64
407
* Mon Jul 31 2006 jfehlig@novell.com
408
- initial submission of libvirt package, version 0.1.3
409