# # spec file for package libvirt (Version 0.3.0) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: libvirt BuildRequires: fdupes gettext gnutls-devel libxml2-devel ncurses-devel pkg-config python python-devel readline-devel xen-devel xhtml-dtd # Only for directory ownership: BuildRequires: gtk-doc URL: http://libvirt.org/ License: LGPL v2 or later Group: Development/Libraries/C and C++ Autoreqprov: yes Version: 0.3.0 Release: 1 Summary: A C toolkit to interract with the virtualization capabilities of Linux Source: %{name}-%{version}.tar.bz2 Patch: libvirt-cflags.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build ExclusiveArch: %ix86 x86_64 %define _libexecdir %{_prefix}/lib/%{name} %description Libvirt is a C toolkit to interract with the virtualization capabilities Linux. Virtualization of the Linux Operating System means the ability to run multiple instances of Operating Systems concurently on a single hardware system where the basic resources are driven by a Linux instance. The library aims to provide long term stable C API initially for the Xen paravirtualization but should be able to integrate other virtualization mechanisms if needed. Authors: -------- Daniel Veillard Karel Zak %package devel Summary: A C toolkit to interract with the virtualization capabilities of Linux Group: Development/Libraries/C and C++ Requires: %{name} = %{version} libxml2-devel xen-devel %description devel Libvirt is a C toolkit to interract with the virtualization capabilities Linux. Virtualization of the Linux Operating System means the ability to run multiple instances of Operating Systems concurently on a single hardware system where the basic resources are driven by a Linux instance. The library aims to provide long term stable C API initially for the Xen paravirtualization but should be able to integrate other virtualization mechanisms if needed. Authors: -------- Daniel Veillard Karel Zak %package doc Summary: A C toolkit to interract with the virtualization capabilities of Linux Group: Development/Libraries/C and C++ Requires: %{name} = %{version} %description doc Libvirt is a C toolkit to interract with the virtualization capabilities Linux. Virtualization of the Linux Operating System means the ability to run multiple instances of Operating Systems concurently on a single hardware system where the basic resources are driven by a Linux instance. The library aims to provide long term stable C API initially for the Xen paravirtualization but should be able to integrate other virtualization mechanisms if needed. Authors: -------- Daniel Veillard Karel Zak %package python Summary: A C toolkit to interract with the virtualization capabilities of Linux Group: Development/Libraries/C and C++ Requires: %{name} = %{version} %py_requires %description python Libvirt is a C toolkit to interract with the virtualization capabilities Linux. Virtualization of the Linux Operating System means the ability to run multiple instances of Operating Systems concurently on a single hardware system where the basic resources are driven by a Linux instance. The library aims to provide long term stable C API initially for the Xen paravirtualization but should be able to integrate other virtualization mechanisms if needed. Authors: -------- Daniel Veillard Karel Zak %prep %setup -q %patch rm po/no.* %build autoreconf -f -i export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %configure make %{?jobs:-j%jobs} DOCS_DIR=%{_docdir}/%{name}-python EXAMPLE_DIR=%{_docdir}/%{name}-python/examples HTML_DIR=%{_docdir}/%{name} cd docs/examples ; make index.html ; cd ../.. %install %makeinstall DOCS_DIR=%{_docdir}/%{name}-python EXAMPLE_DIR=%{_docdir}/%{name}-python/examples HTML_DIR=%{_docdir}/%{name} cp -a AUTHORS ChangeLog COPYING NEWS README TODO $RPM_BUILD_ROOT%{_docdir}/%{name}/ cp -a docs/{*.html,*.gif,*.rng,libvirt*.xml} $RPM_BUILD_ROOT%{_docdir}/%{name} mkdir $RPM_BUILD_ROOT%{_docdir}/%{name}/examples install -m 0644 docs/examples/{*.c,*.html} $RPM_BUILD_ROOT%{_docdir}/%{name}/examples rm $RPM_BUILD_ROOT%{_docdir}/%{name}/{*.c,examples.x*} install -m 0644 docs/examples/python/{*.py,*.xml,README} $RPM_BUILD_ROOT%{_docdir}/%{name}-python/examples rm $RPM_BUILD_ROOT%{_libdir}/*.*a $RPM_BUILD_ROOT%{py_sitedir}/*.*a ln_dupes() { target="" fdupes -r "$1" | while read file; do if [ -z "$file" ] || [ -z "$target" ]; then target="$file" continue fi ln -sf "${target#.}" "$file" done } ( cd $RPM_BUILD_ROOT ln_dupes .%{_docdir}/%{name} ln_dupes ./usr/share/locale ) #mkdir -p $RPM_BUILD_ROOT/etc/permissions.d #cat > $RPM_BUILD_ROOT/etc/permissions.d/libvirt < informations - updated the localization strings * Fri Oct 20 2006 - jfehlig@novell.com - Updated to latest release, version 0.1.8. - Bug for system with page size != 4k - vcpu number initialization (Philippe Berthault) - don't label crashed domains as shut off (Peter Vetere) - fix virsh man page (Noriko Mizumoto) - blktapdd support for alternate drivers like blktap (Daniel Berrange) - memory leak fixes (xend interface and XML parsing) (Daniel Berrange) - compile fix - mlock/munlock size fixes (Daniel Berrange) - improve error reporting - Updated to latest release, version 0.1.7. - fix a memory bug on getting vcpu informations from xend (Daniel Berrange) - fix another problem in the hypercalls change in Xen changeset 86d26e6ec89b when getting domain informations (Daniel Berrange) * Tue Sep 26 2006 - jfehlig@novell.com - Updated to latest release, version 0.1.6. This release includes fix in hypercall driver so local patch has been removed. * Wed Sep 13 2006 - jfehlig@novell.com - Fixed bug in hypercall driver introduced in version 0.1.5. Patch sumbmitted upstream and included locally until next release. * Mon Sep 11 2006 - jfehlig@novell.com - Updated to latest release, version 0.1.5 - Support for new hypercalls change in Xen changeset 86d26e6ec89b - bug fixes: virParseUUID() was wrong, netwoking for paravirt guestsi (Daniel Berrange), virsh on non-existent domains (Daniel Berrange), string cast bug when handling error in python (Pete Vetere), HTTP 500 xend error code handling (Pete Vetere and Daniel Berrange) - improvements: test suite for SEXPR <-> XML format conversions (Daniel Berrange), virsh output regression suite (Daniel Berrange), new environ variable VIRSH_DEFAULT_CONNECT_URI for the default URI when connecting (Daniel Berrange), graphical console support for paravirt guests (Jeremy Katz), parsing of simple Xen config files (with Daniel Berrange), early work on defined (not running) domains (Daniel Berrange), virsh output improvement (Daniel Berrange * Mon Aug 28 2006 - jfehlig@novell.com - Updated to latest release, version 0.1.4 - bug fixes: spec file fix (Mark McLoughlin), error report problem (with Hugh Brock), long integer in Python bindings (with Daniel Berrange), XML generation bug for CDRom (Daniel Berrange), bug whem using number() XPath function (Mark McLoughlin), fix python detection code, remove duplicate initialization errors (Daniel Berrange) - improvements: UUID in XML description (Peter Vetere), proxy code cleanup, virtual CPU and affinity support + virsh support (Michel Ponceau, Philippe Berthault, Daniel Berrange), port and tty informations for console in XML (Daniel Berrange), added XML dump to driver and proxy support (Daniel Berrange), extention of boot options with support for floppy and cdrom (Daniel Berrange), features block in XML to report/ask PAE, ACPI, APIC for HVM domains (Daniel Berrange), fail saide-effect operations when using read-only connection, large improvements to test driver (Daniel Berrange) - documentation: spelling (Daniel Berrange), test driver examples. * Wed Aug 16 2006 - jfehlig@novell.com - Added ExclusiveArch tag so as to only build on x86 and x86_64 * Mon Jul 31 2006 - jfehlig@novell.com - initial submission of libvirt package, version 0.1.3