c8b90bf
%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
c8b90bf
d9d65dc
# This macro is used for the continuous automated builds. It just
d9d65dc
# allows an extra fragment based on the timestamp to be appended
d9d65dc
# to the release. This distinguishes automated builds, from formal
d9d65dc
# Fedora RPM builds
d9d65dc
%define _extra_release %{?dist:%{dist}}%{!?dist:%{?extra_release:%{extra_release}}}
d9d65dc
d9d65dc
%define appname virtinst
d9d65dc
c8b90bf
Summary: Python modules for starting Xen guest installations
d9d65dc
Name: python-%{appname}
2a40d4d
Version: 0.300.2
9d395b8
Release: 3%{_extra_release}
2a40d4d
Source0: http://virt-manager.org/download/sources/%{appname}/%{appname}-%{version}.tar.gz
9d395b8
9d395b8
Patch1: %{appname}-%{version}-satellite-distro.patch
9d395b8
Patch2: %{appname}-%{version}-virt-clone-disk.patch
9d395b8
Patch3: %{appname}-%{version}-acpi.patch
9d395b8
Patch4: %{appname}-%{version}-noreboot.patch
9d395b8
Patch5: %{appname}-%{version}-satellite-distro-fix.patch
9d395b8
Patch6: %{appname}-%{version}-force-option.patch
9d395b8
Patch7: %{appname}-%{version}-remove-file-exist-check.patch
9d395b8
Patch8: %{appname}-%{version}-install-f9.patch
9d395b8
2a40d4d
License: GPLv2+
c8b90bf
Group: Development/Libraries
c8b90bf
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
c8b90bf
BuildArch: noarch
d5a0ae9
ExcludeArch: ppc ppc64 s390 s390x
d5a0ae9
Url: http://virt-manager.org/
c8b90bf
Provides: virtinst
d5a0ae9
Requires: libvirt-python >= 0.2.1
35b0be7
# Disabled to allow minimal non-X installs
35b0be7
#Requires: virt-viewer
c8b90bf
Requires: urlgrabber
2a40d4d
Requires: libxml2-python
2a40d4d
Requires: python-urlgrabber
9b980d9
BuildRequires: python-devel
2a40d4d
BuildRequires: libxml2-python
2a40d4d
BuildRequires: python-urlgrabber
2a40d4d
BuildRequires: libvirt-python
2a40d4d
BuildRequires: gettext
bea1b53
Obsoletes: python-xeninst < 0.97.0
c8b90bf
c8b90bf
%description
c8b90bf
virtinst is a module to help in starting installations of Fedora/Red
c8b90bf
Hat Enterprise Linux related distributions inside of virtual machines.  It
c8b90bf
supports both paravirt guests (for which only FC and RHEL guests are
c8b90bf
currently supported) as well as fully virtualized guests.  It uses
c8b90bf
libvirt (http://www.libvirt.org) for starting things.
c8b90bf
c8b90bf
Also contained is a simple script virt-install which uses
c8b90bf
virtinst in a command line mode.
c8b90bf
c8b90bf
%prep
d9d65dc
%setup -q -n %{appname}-%{version}
9d395b8
%patch1 -p1
9d395b8
%patch2 -p1
9d395b8
%patch3 -p1
9d395b8
%patch4 -p1
9d395b8
%patch5 -p1
9d395b8
%patch6 -p1
9d395b8
%patch7 -p1
9d395b8
%patch8 -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
d9d65dc
# Back compat in case people hardcoded old /usr/sbin/virt-install location
c8b90bf
mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
2a40d4d
ln -s ../bin/virt-install $RPM_BUILD_ROOT/%{_sbindir}/virt-install
d9d65dc
d9d65dc
%find_lang %{appname} || echo 0
c8b90bf
c8b90bf
%clean
c8b90bf
rm -rf $RPM_BUILD_ROOT
c8b90bf
d9d65dc
%files -f %{appname}.lang
c8b90bf
%defattr(-,root,root)
2a40d4d
%doc README AUTHORS NEWS ChangeLog doc/image.rng doc/example1.xml
d9d65dc
%dir %{python_sitelib}/%{appname}
d9d65dc
%{python_sitelib}/%{appname}/*
2a40d4d
%{_mandir}/man1/*
2a40d4d
%{_mandir}/man5/*
c8b90bf
%{_sbindir}/virt-install
d9d65dc
%{_bindir}/virt-install
d9d65dc
%{_bindir}/virt-clone
2a40d4d
%{_bindir}/virt-image
c8b90bf
c8b90bf
%changelog
9d395b8
* Wed Mar 19 2008 Daniel P. Berrange <berrange@redhat.com> - 0.300.2-3.fc7
9d395b8
- Fix file check to allow installing rawhide/f9 guests
9d395b8
- Add --force option to cli utils to not prompt for input.
9d395b8
- Remove check for file existence in cli utils, breaks scripts.
9d395b8
- Bring satellite distro patch up to speed with current internal API
9d395b8
- Add --noreboot option accidentally lost
9d395b8
- Fix ACPI default value to be enabled
9d395b8
- Fix virt-clone disk validation from breaking all use of the tool.
9d395b8
35b0be7
* Thu Jan 31 2008 Daniel P. Berrange <berrange@redhat.com> - 0.300.2-2.fc7
35b0be7
- Disable virt-viewer dep to allow non-X installs (rhbz #387971)
35b0be7
1720b6d
* Thu Jan 10 2008 Daniel P. Berrange <berrange@redhat.com> - 0.300.2.1.fc7
1720b6d
- Update to 0.300.2 release
1720b6d
4892634
* Tue Nov 20 2007 Daniel P. Berrange <berrange@redhat.com> - 0.200.0-4.fc7
4892634
- Fixed install of F8 distros (rhbz 391211)
4892634
- Fixed validity checking of NFS locations (rhbz 370221)
4892634
6258b39
* Thu Sep  6 2007 Daniel P. Berrange <berrange@redhat.com> - 0.200.0-3.fc7
6258b39
- Fixed CDROM source post-install (rhbz #260981)
6258b39
- Fixed kernel for post-install config with KVM guests
6258b39
462ac99
* Thu Jul 26 2007 Daniel P. Berrange <berrange@redhat.com> - 0.200.0-2.fc7
462ac99
- Fixed default architecture
462ac99
d9d65dc
* Tue Jul 18 2007 Daniel P. Berrange <berrange@redhat.com> - 0.200.0-1.fc7
d9d65dc
- Updated to 0.200.0
d9d65dc
- Added virt-clone tool
d9d65dc
- Added manual pages
d9d65dc
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