a9a20d0
Summary:	Cloud image management utilities
a9a20d0
Name:		cloud-utils
a9a20d0
Version:	0.27
11b4602
Release:	1%{?dist}
a9a20d0
License:	GPLv3
a9a20d0
Group:		System Environment/Base
11b4602
URL:		https://launchpad.net/cloud-utils/trunk/0.27/+download/cloud-utils-0.27.tar.gz
a9a20d0
11b4602
Source0:	%{name}-%{version}.tar.gz
a9a20d0
Source1:        LICENSE
a9a20d0
a9a20d0
BuildArch:	noarch
a9a20d0
11b4602
%if 0%{?rhel}
11b4602
# Only build on x86_64 for EPEL because qemu-img only exists for that arch
11b4602
ExclusiveArch:	x86_64
11b4602
%endif
11b4602
a9a20d0
Requires:	gawk
a9a20d0
Requires:	gdisk
a9a20d0
Requires:	e2fsprogs
a9a20d0
Requires:	euca2ools
a9a20d0
Requires:	file
a9a20d0
Requires:	python
a9a20d0
Requires:	python-paramiko
a9a20d0
Requires:	qemu-img
a9a20d0
Requires:	util-linux
a9a20d0
a9a20d0
%description
a9a20d0
This package provides a useful set of utilities for managing cloud images.
a9a20d0
a9a20d0
The euca2ools package (a dependency of cloud-utils) provides an Amazon EC2 API
a9a20d0
compatible set of utilities for bundling kernels, ramdisks, and root
a9a20d0
filesystems, and uploading them to either EC2 or UEC.
a9a20d0
a9a20d0
The tasks associated with image bundling are often tedious and repetitive. The
a9a20d0
cloud-utils package provides several scripts that wrap the complicated tasks
a9a20d0
with a much simpler interface.
a9a20d0
a9a20d0
a9a20d0
%prep
11b4602
%setup -q
a9a20d0
a9a20d0
a9a20d0
%build
a9a20d0
a9a20d0
a9a20d0
%install
a9a20d0
cp %{SOURCE1} LICENSE
a9a20d0
a9a20d0
# Install binaries
a9a20d0
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
a9a20d0
cp bin/* $RPM_BUILD_ROOT/%{_bindir}/
a9a20d0
# Exclude Ubuntu-specific tools
a9a20d0
rm $RPM_BUILD_ROOT/%{_bindir}/*ubuntu*
a9a20d0
a9a20d0
# Install man pages
a9a20d0
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
a9a20d0
cp man/* $RPM_BUILD_ROOT/%{_mandir}/man1/
a9a20d0
a9a20d0
a9a20d0
%files
a9a20d0
%doc ChangeLog LICENSE
a9a20d0
%{_bindir}/*
a9a20d0
%doc %{_mandir}/man1/*
a9a20d0
a9a20d0
a9a20d0
%changelog
11b4602
* Tue Apr  2 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-1
11b4602
- Update to upstream release 0.27.
11b4602
- Fix spec file to only build on x86_64 for EPEL.
11b4602
11b4602
* Wed Feb 12 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-0.2.bzr216
a9a20d0
- Add GPL-3 license.
a9a20d0
- Exclude Ubuntu-specific tools.
a9a20d0
- Fix some spec file issues per reviewers comments.
a9a20d0
a9a20d0
* Tue Feb  5 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-0.1.bzr216
a9a20d0
- Initial build based on upstream revision bzr216.