a9a20d0
Summary:	Cloud image management utilities
a9a20d0
Name:		cloud-utils
f3d1617
Version:	0.31
9f89483
Release:	10%{?dist}
a9a20d0
License:	GPLv3
Sinny Kumari 1f53f86
URL:		https://launchpad.net/cloud-utils/
a9a20d0
f3d1617
Source0:	https://launchpad.net/%{name}/trunk/0.31/+download/%{name}-%{version}.tar.gz
a9a20d0
96b0eac
# Don't build the cloud-utils main package on EPEL architectures that don't
96b0eac
# have qemu-img. Which means we need to make it a no-noarch package for EPEL
96b0eac
# for this to work properly.
96b0eac
%define BuildMainPackage 1
96b0eac
%if 0%{?rhel}
d78b10a
# don't build debuginfo packages
Sinny Kumari 1f53f86
%global	debug_package %{nil}
Sinny Kumari 1f53f86
%ifarch	i686 ppc64
Sinny Kumari 1f53f86
%define	BuildMainPackage 0
Sinny Kumari 1f53f86
%endif
Sinny Kumari 1f53f86
%else
a9a20d0
BuildArch:	noarch
Sinny Kumari 1f53f86
%endif
a9a20d0
2e4dd41
Requires:	cloud-utils-growpart
a9a20d0
Requires:	gawk
a9a20d0
Requires:	e2fsprogs
a9a20d0
Requires:	file
f3d1617
Requires:	python3
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 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
2e4dd41
%package growpart
2e4dd41
Summary:	Script for growing a partition
2e4dd41
2e4dd41
Requires:	gawk
cdc44f5
# gdisk is only required for resizing GPT partitions and depends on libicu
cdc44f5
# (25MB). We don't make this a hard requirement to save some space in non-GPT
cdc44f5
# systems.
cdc44f5
#Requires:	gdisk
2e4dd41
Requires:	util-linux
2e4dd41
2e4dd41
2e4dd41
%description growpart
2e4dd41
This package provides the growpart script for growing a partition. It is
2e4dd41
primarily used in cloud images in conjunction with the dracut-modules-growroot
2e4dd41
package to grow the root partition on first boot.
2e4dd41
2e4dd41
a9a20d0
%prep
11b4602
%setup -q
a9a20d0
a9a20d0
%build
a9a20d0
a9a20d0
%install
a9a20d0
b54a90e
# Create the target directories
a9a20d0
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
b54a90e
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
b54a90e
b54a90e
%if %{BuildMainPackage}
b54a90e
# Install binaries and manpages
a9a20d0
cp bin/* $RPM_BUILD_ROOT/%{_bindir}/
b54a90e
cp man/* $RPM_BUILD_ROOT/%{_mandir}/man1/
b54a90e
a9a20d0
# Exclude Ubuntu-specific tools
a9a20d0
rm $RPM_BUILD_ROOT/%{_bindir}/*ubuntu*
f3d1617
f3d1617
# Exclude the cloud-run-instances manpage
f3d1617
rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/cloud-run-instances.*
356b145
356b145
# Exclude euca2ools wrappers and manpages
356b145
rm -f $RPM_BUILD_ROOT/%{_bindir}/cloud-publish-*
356b145
rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/cloud-publish-*
Sinny Kumari 1f53f86
%endif
a9a20d0
b54a90e
# Install the growpart binary and man page
b54a90e
cp bin/growpart $RPM_BUILD_ROOT/%{_bindir}/
b54a90e
cp man/growpart.* $RPM_BUILD_ROOT/%{_mandir}/man1/
a9a20d0
a9a20d0
b54a90e
# Files for the main package
b54a90e
%if %{BuildMainPackage}
a9a20d0
%files
5140ddb
%doc ChangeLog
5140ddb
%{!?_licensedir:%global license %%doc}
5140ddb
%license LICENSE
2e4dd41
%{_bindir}/cloud-localds
2e4dd41
%{_bindir}/write-mime-multipart
2e4dd41
%{_bindir}/ec2metadata
2e4dd41
%{_bindir}/resize-part-image
Sinny Kumari 1f53f86
%{_bindir}/mount-image-callback
Sinny Kumari 1f53f86
%{_bindir}/vcs-run
2e4dd41
%doc %{_mandir}/man1/resize-part-image.*
2e4dd41
%doc %{_mandir}/man1/write-mime-multipart.*
Sinny Kumari 1f53f86
%doc %{_mandir}/man1/cloud-localds.*
Sinny Kumari 1f53f86
%endif
2e4dd41
2e4dd41
b54a90e
# Files for the growpart subpackage
2e4dd41
%files growpart
5140ddb
%doc ChangeLog
5140ddb
%{!?_licensedir:%global license %%doc}
5140ddb
%license LICENSE
2e4dd41
%{_bindir}/growpart
2e4dd41
%doc %{_mandir}/man1/growpart.*
a9a20d0
a9a20d0
a9a20d0
%changelog
9f89483
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.31-10
9f89483
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
9f89483
052707a
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.31-9
052707a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
052707a
6b10190
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.31-8
6b10190
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
6b10190
696d545
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.31-7
696d545
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
696d545
4379bc9
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.31-6
4379bc9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
4379bc9
39064c4
* Thu Oct 24 2019 Juerg Haefliger <juergh@gmail.com> - 0.31-5
39064c4
- Bump the release number to differentiate from the previous version which didn't build.
39064c4
9584970
* Thu Oct 24 2019 Juerg Haefliger <juergh@gmail.com> - 0.31-4
9584970
- Drop euca2ools dependency (retired package) and wrapper scripts [bz#1762325].
9584970
c634f68
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.31-3
c634f68
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c634f68
6916bd0
* Mon Mar 18 2019 Juerg Haefliger <juergh@gmail.com> - 0.31-2
6916bd0
- Add new cloud-utils-0.31.tar.gz sources.
6916bd0
f3d1617
* Mon Mar 18 2019 Juerg Haefliger <juergh@gmail.com> - 0.31-1
f3d1617
- Requires python3 instead of python2 [bz#1530224].
f3d1617
- Drop python2-paramiko dependency (no longer required).
f3d1617
- Drop cloud-run-instances manpage (script no longer included).
f3d1617
- Rebase to upstream release 0.31
f3d1617
- mount-image-callback: mount with -o 'rw' or -o 'ro' (LP: #1663722)
f3d1617
- mount-image-callback: run blockdev and udevadm settle on nbd devices. (LP: #1741096, 1741300)
f3d1617
- mount-image-callback: Drop support for mounting lxd containers. (LP: #1715994)
f3d1617
- growpart: fix bug that stopped GPT disks from being grown past 2TB. (LP: #1762748)
f3d1617
- mount-image-callback: mention --help and -C/--cd-mountpoint in Usage
f3d1617
- growpart: fix bug when resizing a middle partition with sgdisk (LP: #1706751) [Fred De Backer]
f3d1617
- growpart: Resolve symbolic links before operating. [Kevin Locke] (LP: #1744406)
f3d1617
- growpart: fix bug occurring if start sector and size were the same. [Lars Kellogg-Stedman] (LP: #1807171)
f3d1617
- debian/control: drop Suggests on lxc1
f3d1617
- debian/tests/control: add test growpart-start-matches-size.
f3d1617
- White space cleanup.  Remove trailing space and tabs.
f3d1617
758de90
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-5
758de90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
758de90
201d84b
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-4
201d84b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
201d84b
8c53f1d
* Wed Feb 07 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.30-3
8c53f1d
- Update Python 2 dependency declarations to new packaging standards
8c53f1d
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
8c53f1d
bd28fba
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-2
bd28fba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
bd28fba
Sinny Kumari 1f53f86
* Tue Dec 12 2017 Sinny Kumari <sinnykumari@fedoraproject.org> - 0.30-1
Sinny Kumari 1f53f86
- Rebase to upstream release 0.30
Sinny Kumari 1f53f86
- Resolves RHBZ#1515835 - growpart fails to resize partition on aarch64
Sinny Kumari 1f53f86
- Remove patches in spec file because they are already available in 0.30
Sinny Kumari 1f53f86
- Fix rpmlint issues on spec file
Sinny Kumari 1f53f86
- Remove LICENSE file, already shipped with 0.30 source tar
Sinny Kumari 1f53f86
- cloud-run-instances binary has been dropped in 0.28
Sinny Kumari 1f53f86
- mount-image-callback and vcs-run binaries has been introduced in 0.28
Sinny Kumari 1f53f86
3dc4eab
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-18
3dc4eab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3dc4eab
fa4c0f4
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-17
fa4c0f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
fa4c0f4
10dd4f5
* Fri Jun 03 2016 Adam Williamson <awilliam@redhat.com> - 0.27-16
10dd4f5
- backport fix for RHBZ #1327337 (growpart fail with newer util-linux-ng)
10dd4f5
307a7dd
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-15
307a7dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
307a7dd
f127578
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.27-14
f127578
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f127578
Juerg Haefliger 0c00cdf
* Wed Mar 25 2015 Juerg Haefliger <juergh@gmail.com> - 0.27-13
Juerg Haefliger 0c00cdf
- [1197894] sfdisk dropped --show-pt-geometry option
Juerg Haefliger 0c00cdf
5140ddb
* Fri Jul 11 2014 Tom Callaway <spot@fedoraproject.org> - 0.27-12
5140ddb
- fix license handling
5140ddb
0892d8b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.27-11
0892d8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0892d8b
ddc1c87
* Fri Nov 22 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-10
ddc1c87
- [966574] growpart spits out a non-fatal error
ddc1c87
d78b10a
* Fri Aug 16 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-9
d78b10a
- Prevent building of debuginfo packages.
d78b10a
- Fix 32-bit arch type.
d78b10a
96b0eac
* Fri Aug 16 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-8
96b0eac
- Make the package a no-noarch package on EPEL so that the build of the main
96b0eac
  package can be prevented for the arches that don't support it [bz#986809].
96b0eac
2ab1ebb
* Tue Aug 06 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-7
b54a90e
- Build the growpart subpackage on all EPEL architectures [bz#986809].
b54a90e
92e54bb
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.27-6
92e54bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
92e54bb
cdc44f5
* Mon Jun 17 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-5
cdc44f5
- Don't make gdisk a hard requirement for cloud-utils-growpart to save some
cdc44f5
  space on systems that don't use GPT partitions.
cdc44f5
2e4dd41
* Mon Jun 17 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-4
2e4dd41
- Break out the growpart script into its own subpackage to prevent pulling a
2e4dd41
  boatload of unnecessary dependencies into a cloud image.
2e4dd41
14a0f95
* Mon Apr  8 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-3
14a0f95
- 3rd attempt to fix the spec file to only build on x86_64 for EPEL.
14a0f95
Sinny Kumari 1f53f86
* Fri Apr  5 2013 Juerg Haefliger <juergh@gmail.com> - 0.27-2
8f89f9b
- Yet another spec file fix to only build on x86_64 for EPEL.
8f89f9b
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
Sinny Kumari 1f53f86
* Tue 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.