2013-02-18 17:33:01 +00:00
|
|
|
Summary: Cloud image management utilities
|
|
|
|
Name: cloud-utils
|
2023-09-05 10:51:56 +00:00
|
|
|
Version: 0.33
|
2023-09-05 09:43:15 +00:00
|
|
|
Release: %autorelease
|
2023-09-05 10:50:55 +00:00
|
|
|
License: GPL-3.0-only
|
2023-09-05 10:51:56 +00:00
|
|
|
URL: https://github.com/canonical/%{name}
|
2013-02-18 17:33:01 +00:00
|
|
|
|
2023-09-05 10:51:56 +00:00
|
|
|
Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
2013-02-18 17:33:01 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
2023-09-05 10:42:57 +00:00
|
|
|
Requires: %{name}-growpart
|
2019-03-18 10:00:25 +00:00
|
|
|
Requires: python3
|
2013-02-18 17:33:01 +00:00
|
|
|
Requires: util-linux
|
2023-09-05 11:21:28 +00:00
|
|
|
# cloud-localds
|
|
|
|
Recommends: tar
|
|
|
|
Recommends: dosfstools
|
|
|
|
Recommends: mtools
|
|
|
|
Recommends: genisoimage
|
|
|
|
# cloud-localds & mount-image-callback
|
|
|
|
Recommends: qemu-img
|
|
|
|
# resize-part-image
|
|
|
|
Requires: file
|
|
|
|
Requires: gzip
|
|
|
|
Requires: e2fsprogs
|
|
|
|
# resize-part-image & mount-image-callback
|
|
|
|
Requires: gawk
|
|
|
|
# vcs-run
|
|
|
|
Recommends: breezy
|
|
|
|
Recommends: git-core
|
|
|
|
Recommends: mercurial
|
|
|
|
Recommends: wget
|
2013-02-18 17:33:01 +00:00
|
|
|
|
|
|
|
%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
|
2023-09-05 11:21:28 +00:00
|
|
|
Requires: util-linux
|
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
|
2023-09-05 11:21:28 +00:00
|
|
|
Recommends: lvm2
|
2013-06-17 13:39:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
%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 11:32:34 +00:00
|
|
|
install -d %{buildroot}%{_bindir}
|
|
|
|
install -d %{buildroot}%{_mandir}/man1
|
2013-08-06 11:11:28 +00:00
|
|
|
|
|
|
|
# Install binaries and manpages
|
2023-09-05 11:32:34 +00:00
|
|
|
install -pm 0755 bin/* %{buildroot}%{_bindir}/
|
|
|
|
install -pm 0644 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-*
|
2013-02-18 17:33:01 +00:00
|
|
|
|
|
|
|
|
2013-08-06 11:11:28 +00:00
|
|
|
# Files for the main package
|
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.*
|
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
|