Blame python-virtinst.spec

c8b90bf
%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
c8b90bf
8343c84
# This macro is used for the continuous automated builds. It just
8343c84
# allows an extra fragment based on the timestamp to be appended
8343c84
# to the release. This distinguishes automated builds, from formal
8343c84
# Fedora RPM builds
8343c84
%define _extra_release %{?dist:%{dist}}%{!?dist:%{?extra_release:%{extra_release}}}
8343c84
8343c84
%define appname virtinst
8343c84
df18df3
%if 0%{?fedora} >= 9
df18df3
%define with_egg 1
df18df3
%else
df18df3
%define with_egg 0
df18df3
%endif
df18df3
e5dc750
Summary: Python modules and utilities for installing virtual machines
8343c84
Name: python-%{appname}
2763b93
Version: 0.500.2
37a71a4
Release: 2%{_extra_release}
48a5ab1
Source0: http://virt-manager.org/download/sources/%{appname}/%{appname}-%{version}.tar.gz
37a71a4
# Improve clone progress reporting (bz 550870)
37a71a4
Patch1: %{appname}-%{version}-improve-clone-progress.patch
37a71a4
# virt-install: Fix windows installs
37a71a4
Patch2: %{appname}-%{version}-fix-windows-installs.patch
f64a36e
16c9aa2
License: GPLv2+
c8b90bf
Group: Development/Libraries
c8b90bf
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
c8b90bf
BuildArch: noarch
e5dc750
Url: http://virt-manager.org
e5dc750
Provides: virt-install
e5dc750
Provides: virt-clone
e5dc750
Provides: virt-image
e5dc750
Provides: virt-pack
e5dc750
Provides: virt-convert
e5dc750
Requires: libvirt-python >= 0.4.5-2.fc10
c8b90bf
Requires: urlgrabber
fb055c8
Requires: libxml2-python
54204b5
Requires: python-urlgrabber
ed86066
Requires: libselinux-python
7604e44
BuildRequires: gettext
e102623
BuildRequires: python-devel
c8b90bf
c8b90bf
%description
e5dc750
virtinst is a module that helps build and install libvirt based virtual
e5dc750
machines. Currently supports KVM, QEmu and Xen virtual machines. Package
e5dc750
includes several command line utilities, including virt-install (build
e5dc750
and install new VMs) and virt-clone (clone an existing virtual machine).
c8b90bf
c8b90bf
%prep
8343c84
%setup -q -n %{appname}-%{version}
37a71a4
%patch1 -p1
37a71a4
%patch2 -p1
363b705
c8b90bf
%build
c8b90bf
python setup.py build
c8b90bf
c8b90bf
%install
c8b90bf
rm -rf $RPM_BUILD_ROOT
c8b90bf
python setup.py install -O1 --root=$RPM_BUILD_ROOT
8343c84
# Back compat in case people hardcoded old /usr/sbin/virt-install location
c8b90bf
mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
16c9aa2
ln -s ../bin/virt-install $RPM_BUILD_ROOT/%{_sbindir}/virt-install
8343c84
8343c84
%find_lang %{appname} || echo 0
c8b90bf
c8b90bf
%clean
c8b90bf
rm -rf $RPM_BUILD_ROOT
c8b90bf
8343c84
%files -f %{appname}.lang
c8b90bf
%defattr(-,root,root)
e5dc750
%doc README COPYING AUTHORS ChangeLog NEWS doc/image.rng doc/example1.xml
8343c84
%dir %{python_sitelib}/%{appname}
e5dc750
%dir %{python_sitelib}/virtconv
8343c84
%{python_sitelib}/%{appname}/*
e5dc750
%{python_sitelib}/virtconv/*
df18df3
%if %{with_egg}
40d717f
%{python_sitelib}/%{appname}-*.egg-info
df18df3
%endif
48a5ab1
%{_mandir}/man1/*
48a5ab1
%{_mandir}/man5/*
c8b90bf
%{_sbindir}/virt-install
8343c84
%{_bindir}/virt-install
8343c84
%{_bindir}/virt-clone
48a5ab1
%{_bindir}/virt-image
e5dc750
%{_bindir}/virt-convert
c8b90bf
c8b90bf
%changelog
37a71a4
* Sun Mar 21 2010 Cole Robinson <crobinso@redhat.com> - 0.500.2-2.fc14
37a71a4
- Improve clone progress reporting (bz 550870)
37a71a4
- virt-install: Fix windows installs
37a71a4
2763b93
* Mon Feb  8 2010 Cole Robinson <crobinso@redhat.com> - 0.500.2-1.fc13
2763b93
- Update to version 0.500.2
2763b93
- virt-install --autostart option for setting domain autostart flag
2763b93
- virt-install --host-device now supports values via lsusb and lspci
2763b93
a515056
* Wed Dec 09 2009 Cole Robinson <crobinso@redhat.com> - 0.500.1-2.fc13
a515056
- Fix interface API detection for libvirt < 0.7.4
a515056
1045fb6
* Thu Dec  3 2009 Cole Robinson <crobinso@redhat.com> - 0.500.1-1.fc13
1045fb6
- Update to version 0.500.1
1045fb6
- virt-install now attempts --os-variant detection by default.
1045fb6
- New --disk option 'format', for creating image formats like qcow2 or vmdk
1045fb6
- Many improvements and bugfixes
1045fb6
6e3e878
* Mon Oct 05 2009 Cole Robinson <crobinso@redhat.com> - 0.500.0-5.fc12
6e3e878
- Update translations (bz 493795)
6e3e878
d959db4
* Thu Sep 24 2009 Cole Robinson <crobinso@redhat.com> - 0.500.0-4.fc12
d959db4
- Don't use usermode net for non-root qemu:///system via virt-install
d959db4
- Fix cdrom installs where the iso is a storage volume (bz 524109)
d959db4
- Fix path permissions for kernel/initrd download location (bz 523960)
d959db4
f27873a
* Wed Sep 16 2009 Cole Robinson <crobinso@redhat.com> - 0.500.0-3.fc12
f27873a
- Don't generate bogus disk driver XML.
f27873a
- Add '--disk format=' for specifying format (qcow2, ...) when provisioning
f27873a
- Add Fedora12 to os dictionary
f27873a
f64a36e
* Sun Sep 13 2009 Cole Robinson <crobinso@redhat.com> - 0.500.0-2.fc12
f64a36e
- Don't erroneously set limit for amount of virtio devices (bz 499654)
f64a36e
- Don't use virtio for cdrom devices (bz 517151)
f64a36e
- Auto detect keymapping (bz 487735)
f64a36e
616a069
* Tue Jul 28 2009 Cole Robinson <crobinso@redhat.com> - 0.500.0-1.fc12
616a069
- Update to version 0.500.0
616a069
- New virt-install device options --serial, --parallel, and --video
616a069
- Allow various auth types for libvirt connections (PolicyKit, SASL, ...)
616a069
- New virt-clone option --auto-clone: generates all needed input.
616a069
- Specify network device model via virt-install --network (Guido Gunther)
616a069
e93474b
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.400.3-9
e93474b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e93474b
5d28669
* Wed May 06 2009 Cole Robinson <crobinso@redhat.com> - 0.400.3-8.fc12
5d28669
- Fix PCI assignment (bz 499267)
5d28669
7bd2529
* Tue Apr 21 2009 Cole Robinson <crobinso@redhat.com> - 0.400.3-7.fc11
7bd2529
- Only warn if selinux labeling appears to be wrong (bz 496340)
7bd2529
218e8ed
* Tue Apr 14 2009 Cole Robinson <crobinso@redhat.com> - 0.400.3-6.fc11
218e8ed
- More translation updates
218e8ed
ed86066
* Thu Apr 9 2009 Cole Robinson <crobinso@redhat.com> - 0.400.3-5.fc11
ed86066
- Don't set a keymap if user doesn't specify one (bz 487737)
ed86066
- Fix adding floppy devices (bz 493408)
ed86066
- Updated translations (bz 493944, bz 494358)
ed86066
ed86066
* Fri Apr  3 2009 Daniel P. Berrange <berrange@redhat.com> - 0.400.3-4.fc11
d64d6da
- Attempt to fix SELinux labelling on CDROM ISOs used for installation
d64d6da
ed86066
* Fri Apr  3 2009 Daniel P. Berrange <berrange@redhat.com> - 0.400.3-3.fc11
2c091f4
- Set SELinux context on $HOME/.virtinst to make kernel/initrd boot work (rhbz #491052)
2c091f4
df18df3
* Mon Mar 23 2009 Cole Robinson <crobinso@redhat.com> - 0.400.3-2.fc11
df18df3
- Add spanish translation (bz 480816)
df18df3
- Fix calls to libvirt host device detach/reset
df18df3
- Fix virt-image with create-on-the-fly disks
df18df3
6fc78ac
* Tue Mar 10 2009 Cole Robinson <crobinso@redhat.com> - 0.400.3-1.fc11
6fc78ac
- Update to bugfix release 0.400.3
6fc78ac
- Fix virt-install --os-type windows installs
6fc78ac
- Fix URL installs to not wipe out --os-variant value
6fc78ac
004ded9
* Thu Mar  5 2009 Cole Robinson <crobinso@redhat.com> - 0.400.2-3.fc11
004ded9
- Fix virt-install --file option (bz 488731)
004ded9
9fd2df9
* Wed Mar  4 2009 Cole Robinson <crobinso@redhat.com> - 0.400.2-2.fc11
9fd2df9
- Update polish translation (bz 310781)
9fd2df9
e102623
* Tue Mar  3 2009 Cole Robinson <crobinso@redhat.com> - 0.400.2-1.fc11
e102623
- Update to version 0.400.2
e102623
- virt-install --import option for creating a guest from an existing disk
e102623
- virt-install --host-device option for host device passthrough
e102623
- virt-clone --original-xml for cloning from an xml file
e102623
- virt-install --nonetworks option.
e102623
b379300
* Fri Feb 27 2009 Daniel P. Berrange <berrange@redhat.com> - 0.400.1-3.fc11
b379300
- Add Fedora 11 OS type with USB tablet (rhbz #487028)
b379300
e4c21de
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.400.1-2
e4c21de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e4c21de
26067a9
* Mon Jan 26 2009 Cole Robinson <crobinso@redhat.com> - 0.400.1-1.fc11
26067a9
- Update to 0.400.1
26067a9
- virt-convert virt-image -> vmx support
26067a9
- virt-image checksum support
26067a9
- Improved URL fetching support (Debian Xen, Ubuntu kernel + boot.iso)
26067a9
ca33b4a
* Thu Dec 04 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.400.0-7
ca33b4a
- Rebuild for Python 2.6
ca33b4a
1c871a7
* Tue Dec  2 2008 Cole Robinson <crobinso@redhat.com> - 0.400.0-6.fc11
1c871a7
- Fix printing translated help messages
1c871a7
- Allow using virtio to pxe boot
1c871a7
3b2bcf0
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.400.0-5
3b2bcf0
- Rebuild for Python 2.6
3b2bcf0
79f0146
* Mon Oct 27 2008 Cole Robinson <crobinso@redhat.com> - 0.400.0-4.fc10
79f0146
- Updated translations (bz 467810)
79f0146
- Specific os entry for XP 64 (bz 467851)
79f0146
- Disk pool 'dos' format fix
79f0146
fddc171
* Mon Oct 20 2008 Cole Robinson <crobinso@redhat.com> - 0.400.0-3.fc10
fddc171
- Fix missing variable error (bz 467228)
fddc171
7d0edab
* Tue Oct 14 2008 Cole Robinson <crobinso@redhat.com> - 0.400.0-2.fc10
7d0edab
- Updated polish translation (bz 310781)
7d0edab
- Fix error accessing os dictionary in virt-convert
7d0edab
- Log tracebacks from cli apps
7d0edab
- Better default connection detection for qemu/kvm
7d0edab
- Set up virtio for f9 guests (bz 462404)
7d0edab
- Don't report option collision if using --bridge
7d0edab
- Update storage pool when looking up volume (bz 465551)
7d0edab
e5dc750
* Wed Sep 10 2008 Cole Robinson <crobinso@redhat.com> - 0.400.0-1.fc10
e5dc750
- Add virt-convert tool
e5dc750
- Add virt-pack tool
e5dc750
- virt-install --disk option for using/provisioning libvirt storage
e5dc750
- virt-install remote installation support
e5dc750
- virt-install --sound option to add soundcard emulation
e5dc750
6c1b5a4
* Wed Jun  4 2008 Daniel P. Berrange <berrange@redhat.com> - 0.300.3-7.fc10
6c1b5a4
- Fix fetching of HVM kernels (rhbz #450032)
6c1b5a4
e7a7aca
* Fri May  9 2008 Daniel P. Berrange <berrange@redhat.com> - 0.300.3-6.fc10
e7a7aca
- Use /var/lib/libvirt/boot for kernel/initrd images (rhbz #445854)
e7a7aca
1a7a28c
* Tue Apr  8 2008 Daniel P. Berrange <berrange@redhat.com> - 0.300.3-5.fc9
1a7a28c
- Added Serbian translation
1a7a28c
f734cd0
* Thu Apr  3 2008 Daniel P. Berrange <berrange@redhat.com> - 0.300.3-4.fc9
f734cd0
- Added italian translation
f734cd0
e878fea
* Tue Apr 1 2008 Cole Robinson <crobinso@redhat.com> - 0.300.3-3.fc9
e878fea
- Revert unintentionally committed spec change.
e878fea
59f23a4
* Thu Mar 27 2008 Cole Robinson <crobinso@redhat.com> - 0.300.3-2.fc9
59f23a4
- Keep qemu cdrom device after first stage of install. (rhbz #244802)
59f23a4
- Fix default guest arch regression from virt-install
59f23a4
- Pass extra args to a fullvirt guest from virt-install
59f23a4
- Update polish translation
59f23a4
46961b9
* Mon Mar 10 2008 Daniel P. Berrange <berrange@redhat.com> - 0.300.3-1.fc9
46961b9
- Update to 0.300.3 release
46961b9
8b30c1b
* Thu Jan 31 2008 Daniel P. Berrange <berrange@redhat.com> - 0.300.2-3.fc9
8b30c1b
- Disable virt-viewer dep to allow non-X installs (rhbz #387971)
8b30c1b
fb055c8
* Thu Jan 10 2008 Daniel P. Berrange <berrange@redhat.com> - 0.300.2-2.fc9
54204b5
- Added dep on libxml2-python and python-urlgrabber
fb055c8
16c9aa2
* Thu Jan 10 2008 Daniel P. Berrange <berrange@redhat.com> - 0.300.2-1.fc9
16c9aa2
- Update to 0.300.2 release
16c9aa2
ff25309
* Thu Oct 11 2007 Daniel P. Berrange <berrange@redhat.com> - 0.300.1-3.fc8
ff25309
- Fix missing file exception check with NFS installs (rhbz #325591)
ff25309
6d8d11e
* Thu Oct  4 2007 Daniel P. Berrange <berrange@redhat.com> - 0.300.1-2.fc8
6d8d11e
- Remove USB tablet for all except Windows (rhbz #302951)
6d8d11e
bc5904c
* Tue Sep 25 2007 Daniel P. Berrange <berrange@redhat.com> - 0.300.1-1.fc8
bc5904c
- Update to 0.300.1 release
bc5904c
- Added PXE support
bc5904c
3de5668
* Wed Sep 19 2007 Daniel P. Berrange <berrange@redhat.com> - 0.300.0-4.fc8
3de5668
- Fix post install CDROM config for KVM guests
3de5668
cc6bd17
* Tue Sep 11 2007 Daniel P. Berrange <berrange@redhat.com> - 0.300.0-3.fc8
cc6bd17
- Fixed default architecture. Again.
cc6bd17
015acab
* Tue Sep 11 2007 Daniel P. Berrange <berrange@redhat.com> - 0.300.0-2.fc8
015acab
- Fixed detection of Fedora 8 distro trees (rhbz #273781)
015acab
015acab
* Wed Aug 29 2007 Daniel P. Berrange <berrange@redhat.com> - 0.300.0-1.fc8
48a5ab1
- Updated to 0.300.0
48a5ab1
- Added virt-image tool
48a5ab1
- Switched to calling virsh console and virt-viewer
48a5ab1
- Improved user input validation
48a5ab1
fe383bb
* Fri Aug 24 2007 Daniel P. Berrange <berrange@redhat.com> - 0.200.0-3.fc8
fe383bb
- Remove ExludeArch since libvirt is now available everywhere
fe383bb
e75df98
* Thu Jul 26 2007 Daniel P. Berrange <berrange@redhat.com> - 0.200.0-2.fc8
e75df98
- Fixed default architecture
e75df98
8343c84
* Tue Jul 18 2007 Daniel P. Berrange <berrange@redhat.com> - 0.200.0-1.fc8
8343c84
- Updated to 0.200.0
8343c84
- Added virt-clone tool
8343c84
- Added manual pages
8343c84
c684907
* Tue May  1 2007 Daniel P. Berrange <berrange@redhat.com> - 0.103.0-3.fc7
c684907
- Fixed module import when using --accelerate
c684907
- Fixed detection of RHEL5 client distro
c684907
- Fixed default 'network's selection & default URI choice to
c684907
  not be Xen specific
c684907
- Fixed features XML when using initrd for fullvirt
c684907
363b705
* Tue Apr 17 2007 Mark McLoughlin <markmc@redhat.com> - 0.103.0-2.fc7
363b705
- Fix urlgrabber import error
363b705
d5a0ae9
* Mon Apr 16 2007 Daniel P. Berrange <berrange@redhat.com> - 0.103.0-1.fc7
d5a0ae9
- Updated to 0.103.0 release
d5a0ae9
- More validation of UUIDs
d5a0ae9
- Automatically reboot Windows guests with CDROM still attached
d5a0ae9
- Allow '-'  in guest names
d5a0ae9
- Adjust way distro detection is done
d5a0ae9
fa36080
* Tue Mar 20 2007 Daniel P. Berrange <berrange@redhat.com> - 0.102.0-1.fc7
fa36080
- Updated to 0.102.0 release
fa36080
400861d
* Thu Mar  8 2007 Daniel P. Berrange <berrange@redhat.com> - 0.101.0-4.fc7
400861d
- Fixed install of paravirt Xen guests
400861d
b92a630
* Fri Mar  2 2007 Daniel P. Berrange <berrange@redhat.com> - 0.101.0-3.fc7
b92a630
- Fixed restart of guests after install completes
b92a630
ce86cdc
* Tue Feb 20 2007 Daniel P. Berrange <berrange@redhat.com> - 0.101.0-2.fc7
ce86cdc
- Remove obsolete patches
ce86cdc
a60b76b
* Tue Feb 20 2007 Daniel P. Berrange <berrange@redhat.com> - 0.101.0-1.fc7
a60b76b
- Updated to 0.101.0 to enable QEMU support
a60b76b
b61abd2
* Thu Jan 25 2007 Daniel P. Berrange <berrange@redhat.com> - 0.100.0-3.fc7
b61abd2
- Make back-compat with old APIs for Cobbler sanity
b61abd2
9557ee0
* Thu Jan 25 2007 Daniel P. Berrange <berrange@redhat.com> - 0.100.0-2.fc7
9557ee0
- Fix errors with NFS mount based installs
9557ee0
ad62aec
* Mon Jan 22 2007 Daniel P. Berrange <berrange@redhat.com> - 0.100.0-1.fc7
ad62aec
- Updated to 0.100.0 which now uses libvirt inactive domain support
ad62aec
  needed to operate correctly against xen 3.0.4
ad62aec
93395cd
* Tue Dec 18 2006 Daniel P. Berrange <berrange@redhat.com> - 0.98.0-3.fc7
93395cd
- don't traceback on invalid memory param (gcosta, #219270)
93395cd
- let the console come back quicker to help with HVM installs (#212024)
93395cd
5e7afc2
* Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 0.98.0-2
5e7afc2
- rebuild for python 2.5
5e7afc2
bea1b53
* Thu Nov 30 2006 Jeremy Katz <katzj@redhat.com> - 0.98.0-1
bea1b53
- add support for creating nonsparse disk images (#217764)
bea1b53
- remove xeninst compat bits
bea1b53
022a7c3
* Mon Nov 20 2006 Jeremy Katz <katzj@redhat.com> - 0.97.0-1
022a7c3
- handle multiple nics/disks on virt-install command line (#215726)
406d921
- buildrequire python
022a7c3
af49219
* Wed Oct 18 2006 Jeremy Katz <katzj@redhat.com> - 0.96.0-1
af49219
- improve check for if a machine is hvm capable to catch when support isn't
af49219
  allowed by the bios (#211276)
af49219
- cleanup after nfs mount failure on pv install (#206196)
af49219
- support for setting vcpus (#210516)
af49219
c8b90bf
* Thu Oct 12 2006 Jeremy Katz <katzj@redhat.com> - 0.95.0-1
c8b90bf
- support for blktap (danpb)
c8b90bf
- name change
c8b90bf
c8b90bf
* Tue Oct  3 2006 Jeremy Katz <katzj@redhat.com> - 0.94.0-1
c8b90bf
- Fix using block device as backing (#209138)
c8b90bf
- Fix error handling for invalid install locations (danpb)
c8b90bf
- Write out vcpu config (danpb)
c8b90bf
c8b90bf
* Wed Sep 20 2006 Jeremy Katz <katzj@redhat.com> - 0.93.0-1
c8b90bf
- Fix hvm network xm config (danpb)
c8b90bf
- Enable PAE with pae hvm hosts (danpb)
c8b90bf
- Fix hvm block backed cds (danpb)
c8b90bf
- Fix handling of block devs backed by vbds (danpb)
c8b90bf
- Ensure we're on a xen kernel (#205889)
c8b90bf
- Default to vncunused
c8b90bf
c8b90bf
* Wed Sep  6 2006 Jeremy Katz <katzj@redhat.com> - 0.92.0-2
c8b90bf
- add patch to fix memory parsing in interactive mode
c8b90bf
- fix deps
c8b90bf
c8b90bf
* Wed Aug 30 2006 Jeremy Katz <katzj@redhat.com> - 0.92.0-1
c8b90bf
- Fix silly loop when asking about graphics support (misa)
c8b90bf
- Fix passing macaddr
c8b90bf
- Add support so that we reboot into the guest after installation finishes 
c8b90bf
c8b90bf
* Tue Aug 29 2006 Jeremy Katz <katzj@redhat.com> - 0.91.0-1
c8b90bf
- add support for paravirt guests with framebuffer. 
c8b90bf
c8b90bf
* Mon Aug 21 2006 Jeremy Katz <katzj@redhat.com> - 0.90.1-1
c8b90bf
- fix tab/space whitespace inconsistency
c8b90bf
c8b90bf
* Wed Aug 16 2006 Jeremy Katz <katzj@redhat.com> - 0.90.0-2
c8b90bf
- set ExcludeArch so that it doesn't get pulled into all trees
c8b90bf
c8b90bf
* Wed Aug 16 2006 Jeremy Katz <katzj@redhat.com> - 0.90.0-1
c8b90bf
- update to version with fixed HVM domain creation
c8b90bf
c8b90bf
* Wed Aug 16 2006 Jeremy Katz <katzj@redhat.com> - 0.9-2
c8b90bf
- add some missing requires
c8b90bf
c8b90bf
* Tue Aug 15 2006 Jeremy Katz <katzj@redhat.com> - 0.9-1
c8b90bf
- Initial build
c8b90bf