# -*- rpm-spec -*- # %%branch_switch set %%branch_release use #%%define branch_switch Mxx %def_without polkit %define _localstatedir /var Name: libvirt Version: 0.8.0 Release: alt3 Summary: Library providing a simple API virtualization License: LGPLv2+ Group: System/Libraries Url: http://libvirt.org/ Packager: Anton Protopopov Source0: %name-%version.tar Source1: gnulib-%name-%version.tar Requires: /usr/lib/rpm(ArgvFileAction) Requires: dnsmasq Requires: bridge-utils Requires: iptables %if_with polkit Requires: PolicyKit >= 0.6 %endif Requires(post): %post_service Requires(preun): %preun_service BuildRequires(pre): rpm-macros-branch BuildRequires: liblvm2-devel lvm2 BuildRequires: bridge-utils cvs dnsmasq libavahi-devel libgnutls-devel libreadline-devel libsasl2-devel libxml2-devel python-devel xsltproc parted libparted-devel libcurl-devel libdevmapper-devel %if_with polkit BuildRequires: PolicyKit-devel >= 0.6 %endif ExclusiveArch: %ix86 x86_64 ia64 %description Libvirt is a C toolkit to interact with the virtualization capabilities of recent versions of Linux (and other OSes). %package devel Summary: Libraries, includes, etc. to compile with the libvirt library Group: System/Libraries Requires: %name = %version-%release %description devel Includes and documentations for the C library providing an API to use the virtualization capabilities of recent versions of Linux (and other OSes). %package -n python-module-%name Summary: Python bindings for the libvirt library Group: System/Libraries Requires: %name = %version-%release Obsoletes: libvirt-python < %version-%release Provides: libvirt-python = %version-%release %description -n python-module-%name The libvirt-python package contains a module that permits applications written in the Python programming language to use the interface supplied by the libvirt library to use the virtualization capabilities of recent versions of Linux (and other OSes). %prep %setup -a1 %build export GNULIB_SRCDIR=gnulib-%name-%version export NO_GIT=t export SKIP_PO=t ./autogen.sh # %configure --with-init-script=redhat \ --with-qemud-pid-file=/var/run/libvirt_qemud.pid \ --with-remote-file=/var/run/libvirtd.pid \ --without-xen \ --with-openvz \ --with-storage-lvm \ --with-storage-disk \ --without-storage-mpath \ --enable-debug=yes \ %{subst_with polkit} \ # make %install %makeinstall_std (cd docs/examples ; make clean ; rm -rf .deps Makefile Makefile.in) (cd docs/examples/python ; rm -f Makefile Makefile.in) install -d -m 0755 %buildroot/var/run/libvirt/ rm -f %buildroot%{_libdir}/*.{a,la} rm -f %buildroot%{_libdir}/python*/site-packages/*.{a,la} # We don't want to install /etc/libvirt/qemu/networks in the main %files list # because if the admin wants to delete the default network completely, we don't # want to end up re-incarnating it on every RPM upgrade. install -d -m 0755 %buildroot%_datadir/libvirt/networks/ cp %buildroot/etc/libvirt/qemu/networks/default.xml \ %buildroot%_datadir/libvirt/networks/default.xml rm -f %buildroot/etc/libvirt/qemu/networks/default.xml rm -f %buildroot/etc/libvirt/qemu/networks/autostart/default.xml # Strip auto-generated UUID - we need it generated per-install sed -i -e "//d" %buildroot%_datadir/libvirt/networks/default.xml %find_lang %name %post # We want to install the default network for initial RPM installs # or on the first upgrade from a non-network aware libvirt only. # We check this by looking to see if the daemon is already installed /sbin/chkconfig --list libvirtd 1>/dev/null 2>&1 if [ $? != 0 ] then UUID=`/usr/bin/uuidgen` sed -e "s,,\n $UUID," \ < %_datadir/libvirt/networks/default.xml \ > /etc/libvirt/qemu/networks/default.xml ln -s ../default.xml /etc/libvirt/qemu/networks/autostart/default.xml fi %post_service libvirtd %preun %preun_service libvirtd %files -f %name.lang %doc AUTHORS ChangeLog README TODO %doc docs/*.xml %_libdir/lib*.so.* %_bindir/virsh %_bindir/virt-xml-validate %_bindir/virt-pki-validate %_man1dir/virsh.* %_man1dir/virt-xml-validate.* %_man1dir/virt-pki-validate.* %config(noreplace) /etc/sasl2/libvirt.conf %_datadir/libvirt/ %if_with polkit %_datadir/PolicyKit/policy/libvirtd.policy %endif %_libexecdir/libvirt_parthelper %_libexecdir/libvirt_lxc %config(noreplace) %_sysconfdir/sysconfig/libvirtd %config(noreplace) %_sysconfdir/logrotate.d/libvirtd.* %_sbindir/libvirtd %_initdir/libvirtd %_datadir/augeas/lenses/libvirtd*.aug %_datadir/augeas/lenses/tests/test_libvirtd*.aug /var/lib/libvirt/ /var/log/libvirt/ /var/run/libvirt/ %defattr(600,root,root,700) %config(noreplace) /etc/libvirt/ %files devel %_pkgconfigdir/libvirt.pc %_libdir/lib*.so %_includedir/libvirt %doc %_datadir/gtk-doc/html/libvirt %doc docs/html docs/devhelp docs/*.gif %doc docs/libvirt-api.xml %doc examples %files -n python-module-%name %python_sitelibdir/libvirt* %doc python/tests/*.py %doc python/TODO %doc examples/python %changelog * Wed Jun 02 2010 Denis Kuznetsov 0.8.0-alt3 - enable storage-lvm and storage-disk * Sun Apr 18 2010 Anton Protopopov 0.8.0-alt2 - Close a reopened bug (ALT #22433). * Tue Apr 13 2010 Anton Protopopov 0.8.0-alt1 - Release of 0.8.0 * Mon Apr 12 2010 Anton Protopopov 0.7.7-alt2 - Use 'notifemty' instead of 'minsize/size 100k' in logrotate config. This prevents logrotate from rotating empty logs (Closes: #22433). * Sat Mar 20 2010 Aleksey Avdeev 0.7.7-alt1 - NMU - Release of 0.7.7 (Closes: #23095) * Wed Feb 10 2010 Aleksey Avdeev 0.7.6-alt2 - NMU - Return %%_pkgconfigdir/libvirt.pc in subpackage %%name-devel (Closes: #22932) (thanks to Alexey Borovskoy ) - Fix status function in initscript (thanks to Alexey Borovskoy ) * Mon Feb 08 2010 Aleksey Avdeev 0.7.6-alt1 - NMU - Release of 0.7.6 * Mon Feb 08 2010 Aleksey Avdeev 0.7.5-alt1 - NMU - Release of 0.7.5 * Tue Nov 24 2009 Eugeny A. Rostovtsev (REAL) 0.7.4-alt1.1 - Rebuilt with python 2.6 * Mon Nov 23 2009 Anton Protopopov 0.7.4-alt1 - Release of 0.7.4 * Tue Sep 22 2009 Anton Protopopov 0.7.1-alt2 - Provide libvirt-python * Wed Sep 16 2009 Anton Protopopov 0.7.1-alt1 - Release of 0.7.1 * Fri Sep 11 2009 Anton Protopopov 0.7.0-alt2 - merge with upstream (more than 200 commits) - Disable storage_mpath and add libdevmapper-devel to %%buildrequires - update .gnulib * Fri Aug 07 2009 Anton Protopopov 0.7.0-alt1 - Release of 0.7.0 - Run libvirt with "devel" version of kvm * Mon Aug 03 2009 Anton Protopopov 0.6.5-alt1 - Migrate to new git sources * Tue Jun 02 2009 Anton Protopopov 0.6.4-alt1 - Release of 0.6.4 * Fri May 15 2009 Anton Protopopov 0.6.3-alt1 - Update to svn head (>= 0.6.3) * Tue Apr 14 2009 Anton Protopopov 0.6.2-alt1 - Release of 0.6.2 - Use --config the same as --ostemplate * Tue Mar 10 2009 Anton Protopopov 0.6.1-alt1 - Release of 0.6.1 * Mon Mar 02 2009 Anton Protopopov 0.6.0-alt2 - Fix python policy * Sat Jan 31 2009 Anton Protopopov 0.6.0-alt1 - Release of 0.6.0 * Tue Dec 23 2008 Anton Protopopov 0.5.1-alt4 - Fix host MAC (Eugeny Sokolov) - Remove static library (repocop) - Remove RPM_BUILD_ROOTs * Thu Dec 18 2008 Anton Protopopov 0.5.1-alt3 - Fix openvz crash when setting vcpus & initialize mutex * Mon Dec 08 2008 Anton Protopopov 0.5.1-alt2 - Fix rpm install (by adding libgnutls26) * Fri Dec 05 2008 Anton Protopopov 0.5.1-alt1 - Release of 0.5.1 - Fix repocop warnings - Link condrestart to restart * Tue Nov 18 2008 Anton Protopopov 0.4.6-alt3 - Merged with upstream to fix a bug in openvzWriteParam * Thu Nov 13 2008 Anton Protopopov 0.4.6-alt2 - Merged with upstream version with OpenVZ bridge support enabled * Wed Sep 24 2008 Anton Protopopov 0.4.6-alt1 - Release of 0.4.6 * Mon Sep 15 2008 Anton Protopopov 0.4.5-alt1 - Release of 0.4.5 * Mon Sep 08 2008 Anton Protopopov 0.4.4-alt1.1 - Merge with upstream - fix %files * Wed Jun 25 2008 Anton Protopopov 0.4.4-alt1 - Release of 0.4.4 * Tue Jun 17 2008 Anton Protopopov 0.4.3-alt1 - Release of 0.4.3 * Mon Apr 21 2008 Anton Protopopov 0.4.2-alt2 - Fixed bad permissions on /var/{run,log,lib}/libvirt * Wed Apr 09 2008 Anton Protopopov 0.4.2-alt1 - Release of 0.4.2 * Wed Mar 31 2008 Anton Protopopov 0.4.1-alt1 - Release of 0.4.1 * Wed Mar 12 2008 Anton Protopopov 0.4.1-alt0.1 - Switch to 0.4.1 * Tue Dec 18 2007 Anton Protopopov 0.4.0-alt0.1 - Initial pre-build :) * Tue Dec 18 2007 Daniel Veillard - 0.4.0-1 - Release of 0.4.0 - SASL based authentication - PolicyKit authentication - improved NUMA and statistics support - lots of assorted improvements, bugfixes and cleanups - documentation and localization improvements * Sun Sep 30 2007 Daniel Veillard - 0.3.3-1 - Release of 0.3.3 - Avahi support - NUMA support - lots of assorted improvements, bugfixes and cleanups - documentation and localization improvements * Tue Aug 21 2007 Daniel Veillard - 0.3.2-1 - Release of 0.3.2 - API for domains migration - APIs for collecting statistics on disks and interfaces - lots of assorted bugfixes and cleanups - documentation and localization improvements * Tue Jul 24 2007 Daniel Veillard - 0.3.1-1 - Release of 0.3.1 - localtime clock support - PS/2 and USB input devices - lots of assorted bugfixes and cleanups - documentation and localization improvements * Mon Jul 9 2007 Daniel Veillard - 0.3.0-1 - Release of 0.3.0 - Secure remote access support - unification of daemons - lots of assorted bugfixes and cleanups - documentation and localization improvements * Fri Jun 8 2007 Daniel Veillard - 0.2.3-1 - Release of 0.2.3 - lot of assorted bugfixes and cleanups - support for Xen-3.1 - new scheduler API * Tue Apr 17 2007 Daniel Veillard - 0.2.2-1 - Release of 0.2.2 - lot of assorted bugfixes and cleanups - preparing for Xen-3.0.5 * Thu Mar 22 2007 Jeremy Katz - 0.2.1-2.fc7 - don't require xen; we don't need the daemon and can control non-xen now - fix scriptlet error (need to own more directories) - update description text * Fri Mar 16 2007 Daniel Veillard - 0.2.1-1 - Release of 0.2.1 - lot of bug and portability fixes - Add support for network autostart and init scripts - New API to detect the virtualization capabilities of a host - Documentation updates * Fri Feb 23 2007 Daniel P. Berrange - 0.2.0-4.fc7 - Fix loading of guest & network configs * Fri Feb 16 2007 Daniel P. Berrange - 0.2.0-3.fc7 - Disable kqemu support since its not in Fedora qemu binary - Fix for -vnc arg syntax change in 0.9.0 QEMU * Thu Feb 15 2007 Daniel P. Berrange - 0.2.0-2.fc7 - Fixed path to qemu daemon for autostart - Fixed generation of block in XML - Pre-create config directory at startup * Wed Feb 14 2007 Daniel Veillard 0.2.0-1.fc7 - support for KVM and QEmu - support for network configuration - assorted fixes * Mon Jan 22 2007 Daniel Veillard 0.1.11-1.fc7 - finish inactive Xen domains support - memory leak fix - RelaxNG schemas for XML configs * Wed Dec 20 2006 Daniel Veillard 0.1.10-1.fc7 - support for inactive Xen domains - improved support for Xen display and vnc - a few bug fixes - localization updates * Thu Dec 7 2006 Jeremy Katz - 0.1.9-2 - rebuild against python 2.5 * Wed Nov 29 2006 Daniel Veillard 0.1.9-1 - better error reporting - python bindings fixes and extensions - add support for shareable drives - add support for non-bridge style networking - hot plug device support - added support for inactive domains - API to dump core of domains - various bug fixes, cleanups and improvements - updated the localization * Tue Nov 7 2006 Daniel Veillard 0.1.8-3 - it's pkgconfig not pgkconfig ! * Mon Nov 6 2006 Daniel Veillard 0.1.8-2 - fixing spec file, added %%dist, -devel requires pkgconfig and xen-devel - Resolves: rhbz#202320 * Mon Oct 16 2006 Daniel Veillard 0.1.8-1 - fix missing page size detection code for ia64 - fix mlock size when getting domain info list from hypervisor - vcpu number initialization - don't label crashed domains as shut off - fix virsh man page - blktapdd support for alternate drivers like blktap - memory leak fixes (xend interface and XML parsing) - compile fix - mlock/munlock size fixes * Fri Sep 22 2006 Daniel Veillard 0.1.7-1 - Fix bug when running against xen-3.0.3 hypercalls - Fix memory bug when getting vcpus info from xend * Fri Sep 22 2006 Daniel Veillard 0.1.6-1 - Support for localization - Support for new Xen-3.0.3 cdrom and disk configuration - Support for setting VNC port - Fix bug when running against xen-3.0.2 hypercalls - Fix reconnection problem when talking directly to http xend * Tue Sep 5 2006 Jeremy Katz - 0.1.5-3 - patch from danpb to support new-format cd devices for HVM guests * Tue Sep 5 2006 Daniel Veillard 0.1.5-2 - reactivating ia64 support * Tue Sep 5 2006 Daniel Veillard 0.1.5-1 - new release - bug fixes - support for new hypervisor calls - early code for config files and defined domains * Mon Sep 4 2006 Daniel Berrange - 0.1.4-5 - add patch to address dom0_ops API breakage in Xen 3.0.3 tree * Mon Aug 28 2006 Jeremy Katz - 0.1.4-4 - add patch to support paravirt framebuffer in Xen * Mon Aug 21 2006 Daniel Veillard 0.1.4-3 - another patch to fix network handling in non-HVM guests * Thu Aug 17 2006 Daniel Veillard 0.1.4-2 - patch to fix virParseUUID() * Wed Aug 16 2006 Daniel Veillard 0.1.4-1 - vCPUs and affinity support - more complete XML, console and boot options - specific features support - enforced read-only connections - various improvements, bug fixes * Wed Aug 2 2006 Jeremy Katz - 0.1.3-6 - add patch from pvetere to allow getting uuid from libvirt * Wed Aug 2 2006 Jeremy Katz - 0.1.3-5 - build on ia64 now * Thu Jul 27 2006 Jeremy Katz - 0.1.3-4 - don't BR xen, we just need xen-devel * Thu Jul 27 2006 Daniel Veillard 0.1.3-3 - need rebuild since libxenstore is now versionned * Mon Jul 24 2006 Mark McLoughlin - 0.1.3-2 - Add BuildRequires: xen-devel * Wed Jul 12 2006 Jesse Keating - 0.1.3-1.1 - rebuild * Tue Jul 11 2006 Daniel Veillard 0.1.3-1 - support for HVM Xen guests - various bugfixes * Mon Jul 3 2006 Daniel Veillard 0.1.2-1 - added a proxy mechanism for read only access using httpu - fixed header includes paths * Wed Jun 21 2006 Daniel Veillard 0.1.1-1 - extend and cleanup the driver infrastructure and code - python examples - extend uuid support - bug fixes, buffer handling cleanups - support for new Xen hypervisor API - test driver for unit testing - virsh --conect argument * Mon Apr 10 2006 Daniel Veillard 0.1.0-1 - various fixes - new APIs: for Node information and Reboot - virsh improvements and extensions - documentation updates and man page - enhancement and fixes of the XML description format * Tue Feb 28 2006 Daniel Veillard 0.0.6-1 - added error handling APIs - small bug fixes - improve python bindings - augment documentation and regression tests * Thu Feb 23 2006 Daniel Veillard 0.0.5-1 - new domain creation API - new UUID based APIs - more tests, documentation, devhelp - bug fixes * Fri Feb 10 2006 Daniel Veillard 0.0.4-1 - fixes some problems in 0.0.3 due to the change of names * Wed Feb 8 2006 Daniel Veillard 0.0.3-1 - changed library name to libvirt from libvir, complete and test the python bindings * Sun Jan 29 2006 Daniel Veillard 0.0.2-1 - upstream release of 0.0.2, use xend, save and restore added, python bindings fixed * Wed Nov 2 2005 Daniel Veillard 0.0.1-1 - created