259 lines
10 KiB
RPMSpec
259 lines
10 KiB
RPMSpec
|
#
|
||
|
# spec file for package libvirt (Version 0.1.10)
|
||
|
#
|
||
|
# 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: libxml2-devel python python-devel readline-devel xen-devel
|
||
|
URL: http://libvirt.org/
|
||
|
License: GNU Library General Public License v. 2.0 and 2.1 (LGPL)
|
||
|
Group: Development/Libraries/C and C++
|
||
|
Autoreqprov: yes
|
||
|
Version: 0.1.10
|
||
|
Release: 1
|
||
|
Summary: A C toolkit to interract with the virtualization capabilities of Linux
|
||
|
Source0: libvirt-%{version}.tar.gz
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
Requires: xen libxml2 readline
|
||
|
ExclusiveArch: %ix86 x86_64
|
||
|
|
||
|
%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 <veillard@redhat.com>
|
||
|
Karel Zak <kzak@redhat.com>
|
||
|
|
||
|
%package devel
|
||
|
Summary: A C toolkit to interract with the virtualization capabilities of Linux
|
||
|
Group: Development/Libraries/C and C++
|
||
|
Requires: libvirt = %{version}
|
||
|
|
||
|
%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 <veillard@redhat.com>
|
||
|
Karel Zak <kzak@redhat.com>
|
||
|
|
||
|
%package python
|
||
|
Summary: A C toolkit to interract with the virtualization capabilities of Linux
|
||
|
Group: Development/Libraries/C and C++
|
||
|
Requires: libvirt = %{version}
|
||
|
Requires: %{_libdir}/python%(echo `python -c "import sys; print sys.version[0:3]"`)
|
||
|
|
||
|
%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 <veillard@redhat.com>
|
||
|
Karel Zak <kzak@redhat.com>
|
||
|
|
||
|
%prep
|
||
|
%setup
|
||
|
|
||
|
%build
|
||
|
export CFLAGS="$RPM_OPT_FLAGS"
|
||
|
%configure
|
||
|
make
|
||
|
|
||
|
%install
|
||
|
%{__rm} -rf $RPM_BUILD_ROOT
|
||
|
%makeinstall
|
||
|
(cd docs/examples ; make clean ; rm -rf .deps)
|
||
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
||
|
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.la
|
||
|
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.a
|
||
|
mkdir -p $RPM_BUILD_ROOT/etc/permissions.d
|
||
|
cat > $RPM_BUILD_ROOT/etc/permissions.d/libvirt <<EOF
|
||
|
%{_libdir}/libvirt_proxy root.root 4755
|
||
|
EOF
|
||
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/as
|
||
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/hy
|
||
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/my
|
||
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/no
|
||
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/or
|
||
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/si
|
||
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/ur
|
||
|
|
||
|
%clean
|
||
|
%{__rm} -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
%post -p /sbin/ldconfig
|
||
|
|
||
|
%postun -p /sbin/ldconfig
|
||
|
|
||
|
%files
|
||
|
%defattr(-, root, root)
|
||
|
%doc README
|
||
|
%doc %{_mandir}/man1/virsh.1*
|
||
|
%{_bindir}/virsh
|
||
|
%{_libdir}/lib*.so.*
|
||
|
%attr(4755, root, root) %{_libexecdir}/libvirt_proxy
|
||
|
%doc %{_datadir}/doc/libvirt-%{version}/html/*
|
||
|
%dir %{_datadir}/doc/libvirt-%{version}
|
||
|
%dir %{_datadir}/doc/libvirt-%{version}/html
|
||
|
#%dir %{_datadir}/locale/*
|
||
|
/etc/permissions.d/libvirt
|
||
|
# Localization files
|
||
|
%{_datadir}/locale/*/LC_MESSAGES/*
|
||
|
|
||
|
%files devel
|
||
|
%defattr(-, root, root)
|
||
|
%{_libdir}/lib*.so
|
||
|
%{_includedir}/libvirt/*.h
|
||
|
%dir /usr/include/libvirt
|
||
|
%{_libdir}/pkgconfig/libvirt.pc
|
||
|
%doc %{_datadir}/gtk-doc/html/libvirt/*.devhelp
|
||
|
%doc %{_datadir}/gtk-doc/html/libvirt/*.html
|
||
|
%doc %{_datadir}/gtk-doc/html/libvirt/*.png
|
||
|
%doc %{_datadir}/gtk-doc/html/libvirt/*.css
|
||
|
%dir %{_datadir}/gtk-doc
|
||
|
%dir %{_datadir}/gtk-doc/html
|
||
|
%dir %{_datadir}/gtk-doc/html/libvirt
|
||
|
%doc docs/*.html docs/html docs/*.gif
|
||
|
%doc docs/examples
|
||
|
%doc docs/libvirt-api.xml
|
||
|
%doc %{_datadir}/doc/libvirt-python-%{version}/examples/*.py
|
||
|
%dir %{_datadir}/doc/libvirt-python-%{version}/examples
|
||
|
%doc %{_datadir}/doc/libvirt-python-%{version}/TODO
|
||
|
%dir %{_datadir}/doc/libvirt-python-%{version}
|
||
|
|
||
|
%files python
|
||
|
%defattr(-, root, root)
|
||
|
%doc AUTHORS NEWS README COPYING.LIB
|
||
|
%{_libdir}/python*/site-packages/libvirt.py*
|
||
|
%{_libdir}/python*/site-packages/libvirtmod*
|
||
|
%doc python/tests/*.py
|
||
|
%doc python/TODO
|
||
|
%doc python/libvirtclass.txt
|
||
|
%doc docs/examples/python
|
||
|
|
||
|
%changelog -n libvirt
|
||
|
* Wed Jan 10 2007 - jfehlig@novell.com
|
||
|
- Updated to latest release, version 0.1.10. Submitting to SLES10 SP1
|
||
|
to provide base functionality for FATE feature 301181.
|
||
|
- more localizations
|
||
|
- bug fixes:
|
||
|
- VCPU info breakages on xen 3.0.3
|
||
|
- xenDaemonListDomains buffer overflow (Daniel Berrange)
|
||
|
- reference count bug when creating Xen domains (Daniel Berrange)
|
||
|
- improvements:
|
||
|
- support graphic framebuffer for Xen paravirt (Daniel Berrange)
|
||
|
- VNC listen IP range support (Daniel Berrange)
|
||
|
- support for default Xen config files and inactive domains of 3.0.4 (Daniel Berrange)
|
||
|
* Fri Dec 08 2006 - jfehlig@novell.com
|
||
|
- Updated to latest release, version 0.1.9.
|
||
|
- python bindings: release interpeter lock when calling C (Daniel Berrange)
|
||
|
- don't raise HTTP error when looking informations for a domain
|
||
|
- some refactoring to use the driver for all entry points
|
||
|
- better error reporting (Daniel Berrange)
|
||
|
- fix OS reporting when running as non-root
|
||
|
- provide XML parsing errors
|
||
|
- extension of the test framework (Daniel Berrange)
|
||
|
- fix the reconnect regression test
|
||
|
- python bindings: Domain instances now link to the Connect to avoid garbage collection and disconnect
|
||
|
- separate the notion of maximum memory and current use at the XML level
|
||
|
- Fix a memory leak (Daniel Berrange)
|
||
|
- add support for shareable drives
|
||
|
- add support for non-bridge style networking configs for guests(Daniel Berrange)
|
||
|
- python bindings: fix unsigned long marshalling (Daniel Berrange)
|
||
|
- new config APIs virConfNew() and virConfSetValue() to build configs from scratch
|
||
|
- hot plug device support based on Michel Ponceau patch
|
||
|
- added support for inactive domains, new APIs, various associated cleanup (Daniel Berrange)
|
||
|
- special device model for HVM guests (Daniel Berrange)
|
||
|
- add API to dump core of domains (but requires a patched xend)
|
||
|
- pygrub bootloader informations take over <os> 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
|