a9a20d
Summary:	Cloud image management utilities
a9a20d
Name:		cloud-utils
a9a20d
Version:	0.27
cdc44f
Release:	5%{?dist}
a9a20d
License:	GPLv3
a9a20d
Group:		System Environment/Base
11b460
URL:		https://launchpad.net/cloud-utils/trunk/0.27/+download/cloud-utils-0.27.tar.gz
a9a20d
11b460
Source0:	%{name}-%{version}.tar.gz
a9a20d
Source1:        LICENSE
a9a20d
a9a20d
BuildArch:	noarch
a9a20d
11b460
%if 0%{?rhel}
14a0f9
# Exclude EPEL architectures that don't have qemu-img
14a0f9
ExcludeArch:	i386 ppc64
11b460
%endif
11b460
2e4dd4
Requires:	cloud-utils-growpart
a9a20d
Requires:	gawk
a9a20d
Requires:	e2fsprogs
a9a20d
Requires:	euca2ools
a9a20d
Requires:	file
a9a20d
Requires:	python
a9a20d
Requires:	python-paramiko
a9a20d
Requires:	qemu-img
a9a20d
Requires:	util-linux
a9a20d
a9a20d
%description
a9a20d
This package provides a useful set of utilities for managing cloud images.
a9a20d
a9a20d
The euca2ools package (a dependency of cloud-utils) provides an Amazon EC2 API
a9a20d
compatible set of utilities for bundling kernels, ramdisks, and root
a9a20d
filesystems, and uploading them to either EC2 or UEC.
a9a20d
a9a20d
The tasks associated with image bundling are often tedious and repetitive. The
a9a20d
cloud-utils package provides several scripts that wrap the complicated tasks
a9a20d
with a much simpler interface.
a9a20d
a9a20d
2e4dd4
%package growpart
2e4dd4
Summary:	Script for growing a partition
2e4dd4
Group:		System Environment/Base
2e4dd4
2e4dd4
Requires:	gawk
cdc44f
# gdisk is only required for resizing GPT partitions and depends on libicu
cdc44f
# (25MB). We don't make this a hard requirement to save some space in non-GPT
cdc44f
# systems.
cdc44f
#Requires:	gdisk
2e4dd4
Requires:	util-linux
2e4dd4
2e4dd4
2e4dd4
%description growpart
2e4dd4
This package provides the growpart script for growing a partition. It is
2e4dd4
primarily used in cloud images in conjunction with the dracut-modules-growroot
2e4dd4
package to grow the root partition on first boot.
2e4dd4
2e4dd4
a9a20d
%prep
11b460
%setup -q
a9a20d
a9a20d
a9a20d
%build
a9a20d
a9a20d
a9a20d
%install
a9a20d
cp %{SOURCE1} LICENSE
a9a20d
a9a20d
# Install binaries
a9a20d
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
a9a20d
cp bin/* $RPM_BUILD_ROOT/%{_bindir}/
a9a20d
# Exclude Ubuntu-specific tools
a9a20d
rm $RPM_BUILD_ROOT/%{_bindir}/*ubuntu*
a9a20d
a9a20d
# Install man pages
a9a20d
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
a9a20d
cp man/* $RPM_BUILD_ROOT/%{_mandir}/man1/
a9a20d
a9a20d
a9a20d
%files
a9a20d
%doc ChangeLog LICENSE
2e4dd4
%{_bindir}/cloud-localds
2e4dd4
%{_bindir}/cloud-publish-tarball
2e4dd4
%{_bindir}/cloud-run-instances
2e4dd4
%{_bindir}/write-mime-multipart
2e4dd4
%{_bindir}/cloud-publish-image
2e4dd4
%{_bindir}/ec2metadata
2e4dd4
%{_bindir}/resize-part-image
2e4dd4
%doc %{_mandir}/man1/cloud-publish-image.*
2e4dd4
%doc %{_mandir}/man1/cloud-publish-tarball.*
2e4dd4
%doc %{_mandir}/man1/cloud-run-instances.*
2e4dd4
%doc %{_mandir}/man1/resize-part-image.*
2e4dd4
%doc %{_mandir}/man1/write-mime-multipart.*
2e4dd4
2e4dd4
2e4dd4
%files growpart
2e4dd4
%doc ChangeLog LICENSE
2e4dd4
%{_bindir}/growpart
2e4dd4
%doc %{_mandir}/man1/growpart.*
a9a20d
a9a20d
a9a20d
%changelog
cdc44f
* Mon Jun 17 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-5
cdc44f
- Don't make gdisk a hard requirement for cloud-utils-growpart to save some
cdc44f
  space on systems that don't use GPT partitions.
cdc44f
2e4dd4
* Mon Jun 17 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-4
2e4dd4
- Break out the growpart script into its own subpackage to prevent pulling a
2e4dd4
  boatload of unnecessary dependencies into a cloud image.
2e4dd4
14a0f9
* Mon Apr  8 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-3
14a0f9
- 3rd attempt to fix the spec file to only build on x86_64 for EPEL.
14a0f9
8f89f9
* Tue Apr  5 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-2
8f89f9
- Yet another spec file fix to only build on x86_64 for EPEL.
8f89f9
11b460
* Tue Apr  2 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-1
11b460
- Update to upstream release 0.27.
11b460
- Fix spec file to only build on x86_64 for EPEL.
11b460
11b460
* Wed Feb 12 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-0.2.bzr216
a9a20d
- Add GPL-3 license.
a9a20d
- Exclude Ubuntu-specific tools.
a9a20d
- Fix some spec file issues per reviewers comments.
a9a20d
a9a20d
* Tue Feb  5 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-0.1.bzr216
a9a20d
- Initial build based on upstream revision bzr216.