f84e8b
Name:		cloud-utils-growpart
5dea86
Version:	0.31
5dea86
Release:	1%{?dist}
f84e8b
License:	GPLv3
f84e8b
Group:		System Environment/Base
5dea86
Source0:	cloud-utils-0.31.tar.gz
f84e8b
URL:		https://launchpad.net/cloud-utils
f84e8b
Source1:	LICENSE
f84e8b
f84e8b
BuildArch:	noarch
f84e8b
f84e8b
Summary:	Script for growing a partition
f84e8b
f84e8b
Requires:	gawk
f84e8b
Requires:	util-linux
f84e8b
# gdisk is only required for resizing GPT partitions and depends on libicu
f84e8b
# (25MB). We don't make this a hard requirement to save some space in non-GPT
f84e8b
# systems.
f84e8b
#Requires:	gdisk
f84e8b
f84e8b
%description
f84e8b
This package provides the growpart script for growing a partition. It is
f84e8b
primarily used in cloud images in conjunction with the dracut-modules-growroot
f84e8b
package to grow the root partition on first boot.
f84e8b
f84e8b
%prep
9e6b0a
%autosetup -n cloud-utils-%{version} -p1
f84e8b
f84e8b
%build
f84e8b
f84e8b
%install
f84e8b
cp %{SOURCE1} LICENSE
f84e8b
f84e8b
# Create the target directories
f84e8b
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
f84e8b
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
f84e8b
f84e8b
# Install the growpart binary and man page
f84e8b
cp bin/growpart $RPM_BUILD_ROOT/%{_bindir}/
f84e8b
cp man/growpart.* $RPM_BUILD_ROOT/%{_mandir}/man1/
f84e8b
f84e8b
%files
f84e8b
%doc ChangeLog LICENSE
f84e8b
%{_bindir}/growpart
f84e8b
%doc %{_mandir}/man1/growpart.*
f84e8b
f84e8b
%changelog
5dea86
* Tue Jun 23 2020 Miroslav Rezanina <mrezanin@redhat.com> - 0.31-1
5dea86
- Rebase to 0.31 [bz#1846246]
5dea86
- Resolves: #bz#1846246
5dea86
  (cloud-util-growpart rebase to 0.31)
5dea86
9e6b0a
* Wed Sep 04 2019 Miroslav Rezanina <mrezanin@redhat.com> - 0.29-3
9e6b0a
- Fix growpart error when partition size matches partition offset
9e6b0a
- Resolves: rhbz#1666854
9e6b0a
  (growpart fails when partition start sector is the same as partition size)
9e6b0a
f84e8b
* Wed Apr 19 2017 Charalampos Stratakis <cstratak@redhat.com> - 0.29-2
f84e8b
- Import to RHEL 7
f84e8b
Resolves: rhbz#1308711
f84e8b
f84e8b
* Mon Dec 05 2016 Lars Kellogg-Stedman <lars@redhat.com> - 0.29-1
f84e8b
- update to 0.29
f84e8b
- resolves rhbz#1321373
f84e8b
f84e8b
* Tue May 10 2016 Lars Kellogg-Stedman <lars@redhat.com> - 0.28-1
f84e8b
- fix locale related problems in growpart script (rhbz#1327620)
f84e8b
  w/ rebase to 0.28
f84e8b
f84e8b
* Tue May 10 2016 Lars Kellogg-Stedman <lars@redhat.com> - 0.27-14
f84e8b
f84e8b
* Tue Mar 18 2014 Lars Kellogg-Stedman <lars@redhat.com> - 0.27-13
f84e8b
- suppress partx usage error
f84e8b
f84e8b
* Tue Jan 14 2014 Lars Kellogg-Stedman <lars@redhat.com> - 0.27-11
f84e8b
- import into RHEL
f84e8b