~ubuntu-branches/ubuntu/raring/virtinst/raring-proposed

1.2.2 by Guido Günther
Import upstream version 0.400.1
1
# -*- rpm-spec -*-
2
1.2.14 by Laurent Léonard
Import upstream version 0.600.3
3
%define _version 0.600.3
1.2.11 by Laurent Léonard
Import upstream version 0.600.0
4
%define _release 1
5
6
%define with_rhel6_defaults 0
7
%define with_selinux 0
8
9
%define with_sbin_compat 0
10
11
# End local config
12
1.2.2 by Guido Günther
Import upstream version 0.400.1
13
%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
14
15
# This macro is used for the continuous automated builds. It just
16
# allows an extra fragment based on the timestamp to be appended
17
# to the release. This distinguishes automated builds, from formal
18
# Fedora RPM builds
1.2.13 by Laurent Léonard
Import upstream version 0.600.2
19
%define _extra_release %{?dist:%{dist}}%{?extra_release:%{extra_release}}
1.2.2 by Guido Günther
Import upstream version 0.400.1
20
21
%define appname virtinst
22
1.2.6 by Laurent Léonard
Import upstream version 0.500.2
23
%if 0%{?fedora} >= 9 || 0%{?rhel} >= 6
1.2.2 by Guido Günther
Import upstream version 0.400.1
24
%define with_egg 1
25
%else
26
%define with_egg 0
27
%endif
28
29
30
Summary: Python modules and utilities for installing virtual machines
31
Name: python-%{appname}
1.2.11 by Laurent Léonard
Import upstream version 0.600.0
32
Version: %{_version}
33
Release: %{_release}%{_extra_release}
1.2.2 by Guido Günther
Import upstream version 0.400.1
34
Source0: http://virt-manager.org/download/sources/%{appname}/%{appname}-%{version}.tar.gz
35
License: GPLv2+
36
Group: Development/Libraries
37
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
38
BuildArch: noarch
39
Url: http://virt-manager.org
40
Provides: virt-install
41
Provides: virt-clone
42
Provides: virt-image
43
Provides: virt-convert
44
Requires: libvirt-python >= 0.2.0
45
Requires: urlgrabber
46
Requires: libxml2-python
47
Requires: python-urlgrabber
1.2.11 by Laurent Léonard
Import upstream version 0.600.0
48
%if %{with_selinux}
49
Requires: libselinux-python
50
%endif
1.2.2 by Guido Günther
Import upstream version 0.400.1
51
BuildRequires: gettext
52
BuildRequires: python
53
54
%description
55
virtinst is a module that helps build and install libvirt based virtual
56
machines. Currently supports KVM, QEmu and Xen virtual machines. Package
57
includes several command line utilities, including virt-install (build
58
and install new VMs) and virt-clone (clone an existing virtual machine).
59
60
%prep
61
%setup -q -n %{appname}-%{version}
62
63
%build
1.2.11 by Laurent Léonard
Import upstream version 0.600.0
64
%if %{with_rhel6_defaults}
65
%define _rhel6_defaults --rhel6defaults
66
%endif
67
68
python setup.py build \
69
    %{?_rhel6_defaults}
1.2.2 by Guido Günther
Import upstream version 0.400.1
70
71
%install
72
rm -rf $RPM_BUILD_ROOT
1.2.11 by Laurent Léonard
Import upstream version 0.600.0
73
python setup.py install -O1 --root=$RPM_BUILD_ROOT --skip-build
74
1.2.12 by Laurent Léonard
Import upstream version 0.600.1
75
%find_lang %{appname}
76
1.2.11 by Laurent Léonard
Import upstream version 0.600.0
77
%if %{with_sbin_compat}
78
# Back compat in case people hardcoded old /usr/sbin/virt-install location
79
mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
80
ln -s ../bin/virt-install $RPM_BUILD_ROOT/%{_sbindir}/virt-install
81
%endif
82
1.2.2 by Guido Günther
Import upstream version 0.400.1
83
%clean
84
rm -rf $RPM_BUILD_ROOT
85
86
%files -f %{appname}.lang
87
%defattr(-,root,root)
88
%doc README COPYING AUTHORS ChangeLog NEWS doc/image.rng doc/example1.xml
89
%dir %{python_sitelib}/%{appname}
90
%dir %{python_sitelib}/virtconv
91
%{python_sitelib}/%{appname}/*
92
%{python_sitelib}/virtconv/*
93
%if %{with_egg}
94
%{python_sitelib}/%{appname}-*.egg-info
95
%endif
96
%{_mandir}/man1/*
97
%{_mandir}/man5/*
1.2.11 by Laurent Léonard
Import upstream version 0.600.0
98
%if %{with_sbin_compat}
99
%{_sbindir}/virt-install
100
%endif
1.2.2 by Guido Günther
Import upstream version 0.400.1
101
%{_bindir}/virt-install
102
%{_bindir}/virt-clone
103
%{_bindir}/virt-image
104
%{_bindir}/virt-convert
105
106
%changelog
1.2.14 by Laurent Léonard
Import upstream version 0.600.3
107
* Sun Jul 29 2012 Cole Robinson <crobinso@redhat.com> - 0.600.3-1
108
- virtinst release 0.600.3
109
- virt-install: Fix --cpuset=auto
110
- virt-clone: Fix cloning to existing local managed block device
111
1.2.13 by Laurent Léonard
Import upstream version 0.600.2
112
* Sun Jul 08 2012 Cole Robinson <crobinso@redhat.com> - 0.600.2-1
113
- virtinst release 0.600.2
114
- virt-install: New --memballoon option (Eiichi Tsukata)
115
- virt-install: Improved qemu/kvm pseries support (Li Zhang, Qing Lin)
116
- virt-install: Support setting BIOS path using -boot loader=PATH
117
- Various bug fixes and improvements
118
1.2.12 by Laurent Léonard
Import upstream version 0.600.1
119
* Tue Jan 31 2012 Cole Robinson <crobinso@redhat.com> - 0.600.1-1
120
- virt-install: --redir option for usb redirection (Marc-André Lureau)
121
- virt-install: Advanced --controller support for usb2 (Marc-André
122
  Lureau)
123
- Many bug fixes and minor improvments.
124
1.2.11 by Laurent Léonard
Import upstream version 0.600.0
125
* Tue Jul 26 2011 Cole Robinson <crobinso@redhat.com> - 0.600.0-1
126
- virt-install: Various improvements to enable LXC/container guests:
127
- New --filesystem option for <filesystem> devices
128
- New --init option for container <init> path
129
- New --container option (similar to --paravirt or --hvm)
130
- virt-install: Make --location  remotely (with latest libvirt)
131
- virt-install: New --smartcard option for <smartcard> devices
132
- (Marc-André Lureau)
133
- virt-install: New --numatune option for building guest <numatune> XML
134
- virt-install: option to set --disk error_policy=
135
- virt-install: option to set --disk serial=
136
1.2.10 by Laurent Léonard
Import upstream version 0.500.6
137
* Thu Mar 24 2011 Cole Robinson <crobinso@redhat.com> - 0.500.6-1
138
- virt-install: --graphics spice now enables spicevmc and qxl
139
- virt-install: New --disk parameter io=native|threads
140
1.2.9 by Laurent Léonard
Import upstream version 0.500.5
141
* Fri Jan 14 2011 Cole Robinson <crobinso@redhat.com> - 0.500.5-1
142
- New virt-install --cpu option for configuring CPU model/features
143
- virt-install --vcpus option can not specify topology and maxvcpus
144
- New virt-install --graphics option to unify --vnc, --sdl, spice config
145
- New virt-install --print-xml option to skip install and print XML
146
1.2.8 by Laurent Léonard
Import upstream version 0.500.4
147
* Tue Aug 24 2010 Cole Robinson <crobinso@redhat.com> - 0.500.4-1
148
- New virt-install --console option for specifying virtio console device
149
- New virt-install --channel option for specifying guest communication channel
150
- New virt-install --boot option. Allows setting post-install boot
151
  order, direct kernel/initrd boot, and enabling boot device menu.
152
- New virt-install --initrd-inject option, which enables installation
153
  using a _local_ kickstart file (Colin Walters)
154
1.2.7 by Laurent Léonard
Import upstream version 0.500.3
155
* Wed Mar 24 2010 Cole Robinson <crobinso@redhat.com> - 0.500.3-1
156
- virt-install: New --watchdog option: configure a virtual watchdog device
157
- virt-install: New --soundhw option: More flexible sound configuration
158
                deprecates --sound, though back compat is maintained
159
- virt-install: New --security option: configure VM security driver settings
160
- virt-install: New --description option: set a human readable description
161
- Better OS defaults: Use <video> VGA and <sound> AC97 if supported
162
1.2.6 by Laurent Léonard
Import upstream version 0.500.2
163
* Mon Feb  8 2010 Cole Robinson <crobinso@redhat.com> - 0.500.2-1
164
- virt-install --autostart option for setting domain autostart flag
165
- virt-install --host-device now supports values via lsusb and lspci
166
1.2.5 by Guido Günther
Import upstream version 0.500.1
167
* Thu Dec  3 2009 Cole Robinson <crobinso@redhat.com> - 0.500.1-1
168
- virt-install now attempts --os-variant detection by default.
169
- New --disk option 'format', for creating image formats like qcow2 or vmdk
170
- Many improvements and bugfixes
171
1.2.4 by Guido Günther
Import upstream version 0.500.0
172
* Tue Jul 28 2009 Cole Robinson <crobinso@redhat.com> - 0.500.0-1
173
- New virt-install device options --serial, --parallel, and --video
174
- Allow various auth types for libvirt connections (PolicyKit, SASL, ...)
175
- New virt-clone option --auto-clone: generates all needed input.
176
- Specify network device model via virt-install --network (Guido Gunther)
177
178
* Tue Mar  9 2009 Cole Robinson <crobinso@redhat.com> - 0.400.3-1
179
- Bug fix release
180
- virt-install --file was busted
181
- virt-install --os-type windows was busted for --cdrom installs
182
- virt-install --os-variant values weren't used if installing from a URL
183
1.2.3 by Guido Günther
Import upstream version 0.400.3
184
* Tue Mar  3 2009 Cole Robinson <crobinso@redhat.com> - 0.400.2-1
185
- virt-install --import option for creating a guest from an existing disk
186
- virt-install --host-device option for host device passthrough
187
- virt-clone --original-xml for cloning from an xml file
188
- virt-install --nonetworks option.
189
190
* Mon Jan 26 2009 Cole Robinson <crobinso@redhat.com> - 0.400.1-1
191
- virt-convert virt-image -> vmx support
192
- virt-image checksum support
193
- Improved URL fetching support (Debian Xen, Ubuntu kernel + boot.iso)
194
1.2.2 by Guido Günther
Import upstream version 0.400.1
195
* Wed Sep 10 2008 Cole Robinson <crobinso@redhat.com> - 0.400.0-1
196
- Add virt-convert tool
197
- Add virt-pack tool
198
- virt-install --disk option for using/provisioning libvirt storage
199
- virt-install remote installation support
200
- virt-install --sound option to add soundcard emulation
201
202
* Mon Mar 10 2008 Daniel P. Berrange <berrange@redhat.com> - 0.300.3-1
203
- Use capabilities XML when installing guests
204
- Accept RFC compliant NFS uris
205
- Add --force and --noreboot command line flags
206
- Use .treeinfo config files for Red Hat distro variants
207
208
* Thu Jan 10 2008 Daniel P. Berrange <berrange@redhat.com> - 0.300.2-1
209
- Escape paths in XML
210
- Add --cpuset to pin vCPUs at install time
211
- Automatically set windows guests to localtime
212
- Improved input validation
213
- Fix virt-image bugs
214
215
* Tue Sep 25 2007 Daniel P. Berrange <berrange@redhat.com> - 0.300.1-1
216
- Fixed default architecture on 32-bit
217
- Fixed QEMU guest installs from remote architectures
218
- Added support for PXE installs of fullyvirtualized guests
219
- Fixed Fedora distro detection
220
221
* Wed Aug 29 2007 Daniel P. Berrange <berrange@redhat.com> - 0.300.0-1
222
- Updated to 0.300.0
223
- Added virt-image tool
224
- Switched to calling virsh console and virt-viewer
225
- Improved user input validation
226
227
* Tue Jul 18 2007 Daniel P. Berrange <berrange@redhat.com> - 0.200.0-1
228
- Updated to 0.200.0
229
- Added virt-clone tool
230
- Added manual pages
231
232
* Tue Jun 05 2007 Daniel P. Berrange <berrange@redhat.com> - 0.103.0-1
233
- Updated to 0.103.0 release
234
- Fixed module import when using --accelerate
235
- Fixed detection of RHEL5 client distro
236
- Fixed default 'network's selection & default URI choice to
237
  not be Xen specific
238
- Fixed features XML when using initrd for fullvirt
239
240
* Tue Mar 20 2007 Daniel P. Berrange <berrange@redhat.com> - 0.102.0-1
241
- Updated to 0.102.0 release
242
243
* Tue Feb 20 2007 Daniel P. Berrange <berrange@redhat.com> - 0.101.0-1
244
- Introduce QEMU support & refactored kerne/initrd fetching
245
246
* Mon Jan 29 2007 Daniel P. Berrange <berrange@redhat.com> - 0.100.0-1
247
- Initial generic spec file
248