forked from pool/growpart
Robert Schweikert
358dd2307f
+ no license file included in upstream release (https://bugs.launchpad.net/cloud-utils/+bug/1294338) + GPL v3 applies to growpart script, that is all we are distributing at the moment - fix the Group, don't shout - include in SLE 12 (FATE #315990, #315991, and 316167) OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/growpart?expand=0&rev=2
62 lines
1.8 KiB
RPMSpec
62 lines
1.8 KiB
RPMSpec
#
|
|
# spec file for package growpart, ec2metadata
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
Name: growpart
|
|
Version: 0.27
|
|
Release: 0
|
|
License: GPL-3.0
|
|
Summary: Grow a partition
|
|
URL: http://launchpad.net/cloud-util
|
|
Group: System/Management
|
|
Source0: cloud-utils-%{version}.tar.gz
|
|
Patch: licenseGPLv3.patch
|
|
Requires: util-linux
|
|
%if 0%{?suse_version} && 0%{?suse_version} >= 1220
|
|
Requires: gptfdisk
|
|
%endif
|
|
BuildRoot: %{_tmppath}/cloud-utils-%{version}-%{release}-root
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Grow a partition. This is predominantly useful in the cloud when an instance
|
|
is started with a larger root partition than the image size. The root
|
|
partition can be expanded to take up the additional size.
|
|
|
|
%prep
|
|
%setup -q -n cloud-utils-%{version}
|
|
%patch -p1
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}/%{_sbindir}
|
|
mkdir -p %{buildroot}/%{_mandir}/man1
|
|
cp bin/growpart %{buildroot}/%{_sbindir}
|
|
cp man/growpart.1 %{buildroot}/%{_mandir}/man1
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc LICENSE-GPLv3
|
|
%{_sbindir}/growpart
|
|
%{_mandir}/man1/*
|
|
|
|
%changelog
|