Blame SPECS/cloud-utils.spec

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