Name: cloud-utils-growpart
Version: 0.29
Release: 2%{?dist}.2
License: GPLv3
Group: System Environment/Base
Source0: https://launchpad.net/cloud-utils/trunk/%{version}/+download/cloud-utils-%{version}.tar.gz
URL: https://launchpad.net/cloud-utils
Source1: LICENSE
Patch1: 0002-growpart-fix-bug-when-resizing-a-middle-partition-wi.patch
BuildArch: noarch
Summary: Script for growing a partition
Requires: gawk
Requires: util-linux
# 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
%description
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.
%prep
%setup -q -n cloud-utils-%{version}
%patch1 -p1
%build
%install
cp %{SOURCE1} LICENSE
# Create the target directories
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
# Install the growpart binary and man page
cp bin/growpart $RPM_BUILD_ROOT/%{_bindir}/
cp man/growpart.* $RPM_BUILD_ROOT/%{_mandir}/man1/
%files
%doc ChangeLog LICENSE
%{_bindir}/growpart
%doc %{_mandir}/man1/growpart.*
%changelog
* Tue Jul 09 2019 Miroslav Rezanina <mrezanin@redhat.com> - 0.29-2.el7_6.2
- growpart: fix bug when resizing a middle partition with sgdisk [rhbz#1726564]
- Resolves: rhbz#1726564
(When growing GPT partitions use [start of next - 1] instead of [start of next] as the new end sector.)
* Wed Apr 19 2017 Charalampos Stratakis <cstratak@redhat.com> - 0.29-2
- Import to RHEL 7
Resolves: rhbz#1308711
* Mon Dec 05 2016 Lars Kellogg-Stedman <lars@redhat.com> - 0.29-1
- update to 0.29
- resolves rhbz#1321373
* Tue May 10 2016 Lars Kellogg-Stedman <lars@redhat.com> - 0.28-1
- fix locale related problems in growpart script (rhbz#1327620)
w/ rebase to 0.28
* Tue May 10 2016 Lars Kellogg-Stedman <lars@redhat.com> - 0.27-14
* Tue Mar 18 2014 Lars Kellogg-Stedman <lars@redhat.com> - 0.27-13
- suppress partx usage error
* Tue Jan 14 2014 Lars Kellogg-Stedman <lars@redhat.com> - 0.27-11
- import into RHEL