Blob Blame History Raw
%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Summary: Python tool to convert raw disk images to stream-optimized VMDK files
Name: VMDKstream
Version: 0.2
Release: 2%{?dist}
Source0: %{name}-%{version}.tar.gz
License: GPLv2
Group: Development/Libraries
BuildArch: noarch
Url: https://github.com/imcleod/VMDK-stream-converter
Requires: python
BuildRequires: python
BuildRequires: python-setuptools

%description
While adding support for VMWare ESX/vSphere to the Image Factory project
we discovered that we needed to support the "stream-optimized" variant
of VMDK.

This module is a first draft attempt to do so.

It is known to work on ESXi 4.1.

This format is only useful if you are attempting to import virtual machines
into ESX using the vSphere SOAP API and HTTP POST uploads of image files.
(In which case, it is required.)


%prep
%setup -n %{name}-%{version} -q


%build
python setup.py build


%install
rm -rf %{buildroot}
python setup.py install -O1 --root=$RPM_BUILD_ROOT


%files
%{python_sitelib}/VMDKstream.py*
%{python_sitelib}/VMDKstream-*.egg-info


%changelog
* Thu Jul 07 2011 Chris Lalancette <clalance@redhat.com> - 0.2-2
- Fix up Requires and BuildRequires

* Wed Jun 29 2011 Chris Lalancette <clalance@redhat.com> - 0.2-1
- Initial package.