# -*- rpm-spec -*- %define _version 0.600.3 %define _release 2 %define with_rhel6_defaults 0 %define with_selinux 1 %define with_sbin_compat 0 # End local config %{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} # This macro is used for the continuous automated builds. It just # allows an extra fragment based on the timestamp to be appended # to the release. This distinguishes automated builds, from formal # Fedora RPM builds %define _extra_release %{?dist:%{dist}}%{!?dist:%{?extra_release:%{extra_release}}} %define appname virtinst %if 0%{?fedora} >= 9 || 0%{?rhel} >= 6 %define with_egg 1 %else %define with_egg 0 %endif Summary: Python modules and utilities for installing virtual machines Name: python-%{appname} Version: %{_version} Release: %{_release}%{_extra_release} Source0: http://virt-manager.org/download/sources/%{appname}/%{appname}-%{version}.tar.gz # Fix adding empty cdrom device in virt-manager (bz 859344) Patch1: 0001-VirtualDisk-Ignore-path-None-for-permissions-check.patch # virt-install: Fix naming of multiple volumes via --disk (bz 857424) Patch2: 0002-added-parameter-passed-from-StorageVolume.find_free_.patch # Add Fedora 18 OS option Patch3: 0003-osdict-Add-Fedora-18.patch # virt-install: Fix --disk sparse=false Patch4: 0004-virt-install-Fix-disk-.sparse.patch License: GPLv2+ Group: Development/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Url: http://virt-manager.org Provides: virt-install Provides: virt-clone Provides: virt-image Provides: virt-convert Requires: libvirt-python >= 0.2.0 Requires: urlgrabber Requires: libxml2-python Requires: python-urlgrabber Requires: libselinux-python BuildRequires: gettext BuildRequires: python %description virtinst is a module that helps build and install libvirt based virtual machines. Currently supports KVM, QEmu and Xen virtual machines. Package includes several command line utilities, including virt-install (build and install new VMs) and virt-clone (clone an existing virtual machine). %prep %setup -q -n %{appname}-%{version} %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %build %if %{with_rhel6_defaults} %define _rhel6_defaults --rhel6defaults %endif python setup.py build \ %{?_rhel6_defaults} %install rm -rf $RPM_BUILD_ROOT python setup.py install -O1 --root=$RPM_BUILD_ROOT %find_lang %{appname} %clean rm -rf $RPM_BUILD_ROOT %files -f %{appname}.lang %defattr(-,root,root) %doc README COPYING AUTHORS ChangeLog NEWS doc/image.rng doc/example1.xml %dir %{python_sitelib}/%{appname} %dir %{python_sitelib}/virtconv %{python_sitelib}/%{appname}/* %{python_sitelib}/virtconv/* %if %{with_egg} %{python_sitelib}/%{appname}-*.egg-info %endif %{_mandir}/man1/* %{_mandir}/man5/* %{_bindir}/virt-install %{_bindir}/virt-clone %{_bindir}/virt-image %{_bindir}/virt-convert %changelog * Tue Oct 23 2012 Cole Robinson - 0.600.3-2 - Fix adding empty cdrom device in virt-manager (bz #859344) - virt-install: Fix naming of multiple volumes via --disk (bz #857424) - Add Fedora 18 OS option - virt-install: Fix --disk sparse=false * Sun Jul 29 2012 Cole Robinson - 0.600.3-1 - Rebased to version 0.600.3 - virt-install: Fix --cpuset=auto - virt-clone: Fix cloning to existing local managed block device - Fix man page and help typos (bz 839146) * Sat Jul 21 2012 Fedora Release Engineering - 0.600.2-1.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Jul 09 2012 Cole Robinson - 0.600.2-1 - Rebased to version 0.600.2 - virt-install: New --memballoon option (Eiichi Tsukata) - virt-install: Improved qemu/kvm pseries support (Li Zhang, Qing Lin) - virt-install: Support setting BIOS path using -boot loader=PATH * Wed Jun 06 2012 Cole Robinson - 0.600.1-2 - Add F17 to OS list (bz 825758) - virt-clone: Fix cloning guest with qcow2 image (bz 795400) * Wed Feb 01 2012 Cole Robinson - 0.600.1-1 - Rebased to version 0.600.1 - virt-install: --redir option for usb redirection (Marc-André Lureau) - virt-install: Advanced --controller support for usb2 (Marc-André Lureau) - Many bug fixes and minor improvments. * Sat Jan 14 2012 Fedora Release Engineering - 0.600.0-5.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Thu Oct 06 2011 Cole Robinson - 0.600.0-5 - Bump version number to fix f16->rawhide upgrade path * Tue Sep 27 2011 Cole Robinson - 0.600.0-4 - virt-install: Fix --initrd-inject - Fix changing disk bus in virt-manager - Fix remote URL installs as root * Tue Aug 02 2011 Cole Robinson - 0.600.0-3 - Regenerate outdated man pages * Mon Aug 01 2011 Cole Robinson - 0.600.0-2 - Fix installation of translation files - Handle libvirt getVersion failing (bz 726617) * Tue Jul 26 2011 Cole Robinson - 0.600.0-1.fc17 - Rebased to version 0.600.0 - virt-install: Various improvements to enable LXC/container guests: - New --filesystem option for devices - New --init option for container path - New --container option (similar to --paravirt or --hvm) - virt-install: Make --location remotely (with latest libvirt) - virt-install: New --smartcard option for devices - (Marc-André Lureau) - virt-install: New --numatune option for building guest XML - virt-install: option to set --disk error_policy= - virt-install: option to set --disk serial= * Thu Apr 07 2011 Cole Robinson - 0.500.6-2.fc16 - Don't parse spice channel XML as a device - Properly advertise spicevmc options for use by virt-manager * Mon Mar 28 2011 Cole Robinson - 0.500.6-1.fc16 - Rebased to version 0.500.6 - virt-install: --graphics spice now enables spicevmc and qxl - virt-install: New --disk parameter io=native|threads * Wed Feb 09 2011 Fedora Release Engineering - 0.500.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Feb 2 2011 Cole Robinson - 0.500.5-1 - Update to version 0.500.5 - New virt-install --cpu option for configuring CPU model/features - virt-install --vcpus option can not specify topology and maxvcpus - New virt-install --graphics option to unify --vnc, --sdl, spice config - New virt-install --print-xml option to skip install and print XML * Wed Aug 25 2010 Cole Robinson - 0.500.4-1.fc14 - New virt-install --console option for specifying virtio console device - New virt-install --channel option for specifying guest communication channel - New virt-install --boot option. Allows setting post-install boot order, direct kernel/initrd boot, and enabling boot device menu. - New virt-install --initrd-inject option, which enables installation using a _local_ kickstart file (Colin Walters) * Thu Jul 22 2010 David Malcolm - 0.500.3-5 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Wed Jul 15 2010 Cole Robinson - 0.500.3-4.fc14 - Drop default CPU config, fix some 64bit installs (bz 611584) * Wed Jul 14 2010 Cole Robinson - 0.500.3-3.fc14 - If host is 64bit, make sure VM always sees 64bit CPU (bz 611584) * Wed Jul 07 2010 Cole Robinson - 0.500.3-2.fc14 - Keep windows CDROM attached for second install stage - Fix pool source listing in virt-manager * Wed Mar 24 2010 Cole Robinson - 0.500.2-3.fc14 - Update to version 0.500.3 - virt-install: New --watchdog option: configure a virtual watchdog device - virt-install: New --soundhw option: More flexible sound configuration deprecates --sound, though back compat is maintained - virt-install: New --security option: configure VM security driver settings - virt-install: New --description option: set a human readable description - Better OS defaults: Use