2013-02-18 17:33:01 +00:00
|
|
|
Summary: Cloud image management utilities
|
|
|
|
Name: cloud-utils
|
2019-03-18 10:00:25 +00:00
|
|
|
Version: 0.31
|
2023-09-05 09:43:15 +00:00
|
|
|
Release: %autorelease
|
2013-02-18 17:33:01 +00:00
|
|
|
License: GPLv3
|
2017-12-13 14:28:37 +00:00
|
|
|
URL: https://launchpad.net/cloud-utils/
|
2013-02-18 17:33:01 +00:00
|
|
|
|
2019-03-18 10:00:25 +00:00
|
|
|
Source0: https://launchpad.net/%{name}/trunk/0.31/+download/%{name}-%{version}.tar.gz
|
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
|
2017-12-13 14:28:37 +00:00
|
|
|
%global debug_package %{nil}
|
|
|
|
%ifarch i686 ppc64
|
|
|
|
%define BuildMainPackage 0
|
|
|
|
%endif
|
|
|
|
%else
|
2013-02-18 17:33:01 +00:00
|
|
|
BuildArch: noarch
|
2017-12-13 14:28:37 +00:00
|
|
|
%endif
|
2013-02-18 17:33:01 +00:00
|
|
|
|
2023-09-05 10:42:57 +00:00
|
|
|
Requires: %{name}-growpart
|
2013-02-18 17:33:01 +00:00
|
|
|
Requires: gawk
|
|
|
|
Requires: e2fsprogs
|
|
|
|
Requires: file
|
2019-03-18 10:00:25 +00:00
|
|
|
Requires: python3
|
2013-02-18 17:33:01 +00:00
|
|
|
Requires: qemu-img
|
|
|
|
Requires: util-linux
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides a useful set of utilities for managing cloud images.
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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.
|
2023-09-05 10:41:03 +00:00
|
|
|
Recommends: 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-02-18 17:33:01 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
2013-08-06 11:11:28 +00:00
|
|
|
# Create the target directories
|
2023-09-05 10:40:07 +00:00
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
2013-08-06 11:11:28 +00:00
|
|
|
|
|
|
|
%if %{BuildMainPackage}
|
|
|
|
# Install binaries and manpages
|
2023-09-05 10:40:07 +00:00
|
|
|
cp bin/* %{buildroot}%{_bindir}/
|
|
|
|
cp man/* %{buildroot}%{_mandir}/man1/
|
2013-08-06 11:11:28 +00:00
|
|
|
|
2013-02-18 17:33:01 +00:00
|
|
|
# Exclude Ubuntu-specific tools
|
2023-09-05 10:40:07 +00:00
|
|
|
rm %{buildroot}%{_bindir}/*ubuntu*
|
2019-03-18 10:00:25 +00:00
|
|
|
|
|
|
|
# Exclude the cloud-run-instances manpage
|
2023-09-05 10:40:07 +00:00
|
|
|
rm -f %{buildroot}%{_mandir}/man1/cloud-run-instances.*
|
2019-10-24 07:34:35 +00:00
|
|
|
|
|
|
|
# Exclude euca2ools wrappers and manpages
|
2023-09-05 10:40:07 +00:00
|
|
|
rm -f %{buildroot}%{_bindir}/cloud-publish-*
|
|
|
|
rm -f %{buildroot}%{_mandir}/man1/cloud-publish-*
|
2017-12-13 14:28:37 +00:00
|
|
|
%endif
|
2013-02-18 17:33:01 +00:00
|
|
|
|
2013-08-06 11:11:28 +00:00
|
|
|
# Install the growpart binary and man page
|
2023-09-05 10:40:07 +00:00
|
|
|
cp bin/growpart %{buildroot}%{_bindir}/
|
|
|
|
cp man/growpart.* %{buildroot}%{_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
|
|
|
|
%license LICENSE
|
2013-06-17 13:39:27 +00:00
|
|
|
%{_bindir}/cloud-localds
|
|
|
|
%{_bindir}/write-mime-multipart
|
|
|
|
%{_bindir}/ec2metadata
|
|
|
|
%{_bindir}/resize-part-image
|
2017-12-13 14:28:37 +00:00
|
|
|
%{_bindir}/mount-image-callback
|
|
|
|
%{_bindir}/vcs-run
|
2013-06-17 13:39:27 +00:00
|
|
|
%doc %{_mandir}/man1/resize-part-image.*
|
|
|
|
%doc %{_mandir}/man1/write-mime-multipart.*
|
2017-12-13 14:28:37 +00:00
|
|
|
%doc %{_mandir}/man1/cloud-localds.*
|
|
|
|
%endif
|
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
|
|
|
|
%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
|
2023-09-05 09:43:15 +00:00
|
|
|
%autochangelog
|