2013-02-18 17:33:01 +00:00
|
|
|
Summary: Cloud image management utilities
|
|
|
|
Name: cloud-utils
|
|
|
|
Version: 0.27
|
2016-06-03 19:54:10 +00:00
|
|
|
Release: 16%{?dist}
|
2013-02-18 17:33:01 +00:00
|
|
|
License: GPLv3
|
|
|
|
Group: System Environment/Base
|
2013-04-02 09:24:49 +00:00
|
|
|
URL: https://launchpad.net/cloud-utils/trunk/0.27/+download/cloud-utils-0.27.tar.gz
|
2013-02-18 17:33:01 +00:00
|
|
|
|
2013-04-02 09:24:49 +00:00
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2013-11-22 09:47:22 +00:00
|
|
|
Source1: LICENSE
|
|
|
|
Patch0: 0001-supress-partx-usage-error.patch
|
2015-03-26 07:23:40 +00:00
|
|
|
Patch1: 0002-Support-new-sfdisk-version-2.26.patch
|
2016-06-03 19:54:10 +00:00
|
|
|
# backport of upstream rev 291, fixes RHBZ #1327337 (failed growpart
|
|
|
|
# with newer util-linux-ng)
|
|
|
|
# https://bazaar.launchpad.net/~cloud-utils-dev/cloud-utils/trunk/revision/291
|
|
|
|
Patch2: 0001-growpart-fix-use-of-partx-for-newer-util-linux-versi.patch
|
2013-02-18 17:33:01 +00:00
|
|
|
|
2013-08-16 15:28:51 +00:00
|
|
|
# Don't build the cloud-utils main package on EPEL architectures that don't
|
|
|
|
# have qemu-img. Which means we need to make it a no-noarch package for EPEL
|
|
|
|
# for this to work properly.
|
|
|
|
%define BuildMainPackage 1
|
|
|
|
%if 0%{?rhel}
|
2013-08-16 16:17:31 +00:00
|
|
|
# don't build debuginfo packages
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%ifarch i686 ppc64
|
2013-08-16 15:28:51 +00:00
|
|
|
%define BuildMainPackage 0
|
|
|
|
%endif # %ifarch i386 ppc64
|
|
|
|
%else # %if 0%{?rhel}
|
2013-02-18 17:33:01 +00:00
|
|
|
BuildArch: noarch
|
2013-08-16 15:28:51 +00:00
|
|
|
%endif # %if 0%{?rhel}
|
2013-02-18 17:33:01 +00:00
|
|
|
|
2013-06-17 13:39:27 +00:00
|
|
|
Requires: cloud-utils-growpart
|
2013-02-18 17:33:01 +00:00
|
|
|
Requires: gawk
|
|
|
|
Requires: e2fsprogs
|
|
|
|
Requires: euca2ools
|
|
|
|
Requires: file
|
|
|
|
Requires: python
|
|
|
|
Requires: python-paramiko
|
|
|
|
Requires: qemu-img
|
|
|
|
Requires: util-linux
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides a useful set of utilities for managing cloud images.
|
|
|
|
|
|
|
|
The euca2ools package (a dependency of cloud-utils) provides an Amazon EC2 API
|
|
|
|
compatible set of utilities for bundling kernels, ramdisks, and root
|
|
|
|
filesystems, and uploading them to either EC2 or UEC.
|
|
|
|
|
|
|
|
The tasks associated with image bundling are often tedious and repetitive. The
|
|
|
|
cloud-utils package provides several scripts that wrap the complicated tasks
|
|
|
|
with a much simpler interface.
|
|
|
|
|
|
|
|
|
2013-06-17 13:39:27 +00:00
|
|
|
%package growpart
|
|
|
|
Summary: Script for growing a partition
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
|
|
|
Requires: gawk
|
2013-06-18 06:09:55 +00:00
|
|
|
# gdisk is only required for resizing GPT partitions and depends on libicu
|
|
|
|
# (25MB). We don't make this a hard requirement to save some space in non-GPT
|
|
|
|
# systems.
|
|
|
|
#Requires: gdisk
|
2013-06-17 13:39:27 +00:00
|
|
|
Requires: util-linux
|
|
|
|
|
|
|
|
|
|
|
|
%description growpart
|
|
|
|
This package provides the growpart script for growing a partition. It is
|
|
|
|
primarily used in cloud images in conjunction with the dracut-modules-growroot
|
|
|
|
package to grow the root partition on first boot.
|
|
|
|
|
|
|
|
|
2013-02-18 17:33:01 +00:00
|
|
|
%prep
|
2013-04-02 09:24:49 +00:00
|
|
|
%setup -q
|
2013-11-22 09:47:22 +00:00
|
|
|
%patch0 -p1
|
2015-03-26 07:23:40 +00:00
|
|
|
%patch1 -p1
|
2016-06-03 20:12:33 +00:00
|
|
|
%patch2 -p1 --no-backup-if-mismatch
|
2013-02-18 17:33:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
cp %{SOURCE1} LICENSE
|
|
|
|
|
2013-08-06 11:11:28 +00:00
|
|
|
# Create the target directories
|
2013-02-18 17:33:01 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
|
2013-08-06 11:11:28 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
|
|
|
|
|
|
|
|
%if %{BuildMainPackage}
|
|
|
|
# Install binaries and manpages
|
2013-02-18 17:33:01 +00:00
|
|
|
cp bin/* $RPM_BUILD_ROOT/%{_bindir}/
|
2013-08-06 11:11:28 +00:00
|
|
|
cp man/* $RPM_BUILD_ROOT/%{_mandir}/man1/
|
|
|
|
|
2013-02-18 17:33:01 +00:00
|
|
|
# Exclude Ubuntu-specific tools
|
|
|
|
rm $RPM_BUILD_ROOT/%{_bindir}/*ubuntu*
|
2013-08-06 11:11:28 +00:00
|
|
|
%endif # %if %{BuildMainPackage}
|
2013-02-18 17:33:01 +00:00
|
|
|
|
2013-08-06 11:11:28 +00:00
|
|
|
# Install the growpart binary and man page
|
|
|
|
cp bin/growpart $RPM_BUILD_ROOT/%{_bindir}/
|
|
|
|
cp man/growpart.* $RPM_BUILD_ROOT/%{_mandir}/man1/
|
2013-02-18 17:33:01 +00:00
|
|
|
|
|
|
|
|
2013-08-06 11:11:28 +00:00
|
|
|
# Files for the main package
|
|
|
|
%if %{BuildMainPackage}
|
2013-02-18 17:33:01 +00:00
|
|
|
%files
|
2014-07-11 20:40:44 +00:00
|
|
|
%doc ChangeLog
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
%license LICENSE
|
2013-06-17 13:39:27 +00:00
|
|
|
%{_bindir}/cloud-localds
|
|
|
|
%{_bindir}/cloud-publish-tarball
|
|
|
|
%{_bindir}/cloud-run-instances
|
|
|
|
%{_bindir}/write-mime-multipart
|
|
|
|
%{_bindir}/cloud-publish-image
|
|
|
|
%{_bindir}/ec2metadata
|
|
|
|
%{_bindir}/resize-part-image
|
|
|
|
%doc %{_mandir}/man1/cloud-publish-image.*
|
|
|
|
%doc %{_mandir}/man1/cloud-publish-tarball.*
|
|
|
|
%doc %{_mandir}/man1/cloud-run-instances.*
|
|
|
|
%doc %{_mandir}/man1/resize-part-image.*
|
|
|
|
%doc %{_mandir}/man1/write-mime-multipart.*
|
2013-08-06 11:11:28 +00:00
|
|
|
%endif # %if %{BuildMainPackage}
|
2013-06-17 13:39:27 +00:00
|
|
|
|
|
|
|
|
2013-08-06 11:11:28 +00:00
|
|
|
# Files for the growpart subpackage
|
2013-06-17 13:39:27 +00:00
|
|
|
%files growpart
|
2014-07-11 20:40:44 +00:00
|
|
|
%doc ChangeLog
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
%license LICENSE
|
2013-06-17 13:39:27 +00:00
|
|
|
%{_bindir}/growpart
|
|
|
|
%doc %{_mandir}/man1/growpart.*
|
2013-02-18 17:33:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2016-06-03 19:54:10 +00:00
|
|
|
* Fri Jun 03 2016 Adam Williamson <awilliam@redhat.com> - 0.27-16
|
|
|
|
- backport fix for RHBZ #1327337 (growpart fail with newer util-linux-ng)
|
|
|
|
|
2016-02-03 17:46:55 +00:00
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-15
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-06-17 02:48:52 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.27-14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-03-26 07:23:40 +00:00
|
|
|
* Wed Mar 25 2015 Juerg Haefliger <juergh@gmail.com> - 0.27-13
|
|
|
|
- [1197894] sfdisk dropped --show-pt-geometry option
|
|
|
|
|
2014-07-11 20:40:44 +00:00
|
|
|
* Fri Jul 11 2014 Tom Callaway <spot@fedoraproject.org> - 0.27-12
|
|
|
|
- fix license handling
|
|
|
|
|
2014-06-07 05:04:19 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.27-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-11-22 09:47:22 +00:00
|
|
|
* Fri Nov 22 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-10
|
|
|
|
- [966574] growpart spits out a non-fatal error
|
|
|
|
|
2013-08-16 16:17:31 +00:00
|
|
|
* Fri Aug 16 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-9
|
|
|
|
- Prevent building of debuginfo packages.
|
|
|
|
- Fix 32-bit arch type.
|
|
|
|
|
2013-08-16 15:28:51 +00:00
|
|
|
* Fri Aug 16 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-8
|
|
|
|
- Make the package a no-noarch package on EPEL so that the build of the main
|
|
|
|
package can be prevented for the arches that don't support it [bz#986809].
|
|
|
|
|
2013-08-06 11:18:00 +00:00
|
|
|
* Tue Aug 06 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-7
|
2013-08-06 11:11:28 +00:00
|
|
|
- Build the growpart subpackage on all EPEL architectures [bz#986809].
|
|
|
|
|
2013-08-03 05:12:31 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.27-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-06-18 06:09:55 +00:00
|
|
|
* Mon Jun 17 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-5
|
|
|
|
- Don't make gdisk a hard requirement for cloud-utils-growpart to save some
|
|
|
|
space on systems that don't use GPT partitions.
|
|
|
|
|
2013-06-17 13:39:27 +00:00
|
|
|
* Mon Jun 17 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-4
|
|
|
|
- Break out the growpart script into its own subpackage to prevent pulling a
|
|
|
|
boatload of unnecessary dependencies into a cloud image.
|
|
|
|
|
2013-04-08 11:16:16 +00:00
|
|
|
* Mon Apr 8 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-3
|
|
|
|
- 3rd attempt to fix the spec file to only build on x86_64 for EPEL.
|
|
|
|
|
2013-04-05 14:14:28 +00:00
|
|
|
* Tue Apr 5 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-2
|
|
|
|
- Yet another spec file fix to only build on x86_64 for EPEL.
|
|
|
|
|
2013-04-02 09:24:49 +00:00
|
|
|
* Tue Apr 2 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-1
|
|
|
|
- Update to upstream release 0.27.
|
|
|
|
- Fix spec file to only build on x86_64 for EPEL.
|
|
|
|
|
|
|
|
* Wed Feb 12 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-0.2.bzr216
|
2013-02-18 17:33:01 +00:00
|
|
|
- Add GPL-3 license.
|
|
|
|
- Exclude Ubuntu-specific tools.
|
|
|
|
- Fix some spec file issues per reviewers comments.
|
|
|
|
|
|
|
|
* Tue Feb 5 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-0.1.bzr216
|
|
|
|
- Initial build based on upstream revision bzr216.
|