Add cgdisk and fixparts

This commit is contained in:
Terje Rsten 2011-10-17 12:02:39 +02:00
parent 46ca389a75
commit 5c6d38fbea

View File

@ -1,7 +1,7 @@
Summary: An fdisk-like partitioning tool for GPT disks
Name: gdisk
Version: 0.8.1
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2
URL: http://www.rodsbooks.com/gdisk/
Group: System Environment/Base
@ -19,29 +19,37 @@ tables, and the ability to convert MBR disks to GPT format.
%prep
%setup -q -n gptfdisk-%{version}
chmod 0644 gdisk_test.sh
%build
%{__make} CXXFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64"
%install
%{__rm} -rf %{buildroot}
%{__install} -D -p -m 0755 gdisk %{buildroot}%{_sbindir}/gdisk
%{__install} -p -m 0755 sgdisk %{buildroot}%{_sbindir}/sgdisk
%{__install} -D -p -m 0644 gdisk.8 %{buildroot}%{_mandir}/man8/gdisk.8
%{__install} -p -m 0644 sgdisk.8 %{buildroot}/%{_mandir}/man8/sgdisk.8
for f in gdisk sgdisk cgdisk fixparts ; do
%{__install} -D -p -m 0755 $f %{buildroot}%{_sbindir}/$f
%{__install} -D -p -m 0644 $f.8 %{buildroot}%{_mandir}/man8/$f.8
done
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, -)
%doc COPYING README
%doc COPYING README gdisk_test.sh
%{_sbindir}/gdisk
%{_sbindir}/cgdisk
%{_sbindir}/sgdisk
%{_sbindir}/fixparts
%{_mandir}/man8/gdisk.8*
%{_mandir}/man8/cgdisk.8*
%{_mandir}/man8/sgdisk.8*
%{_mandir}/man8/fixparts.8*
%changelog
* Mon Oct 17 2011 Terje Rosten <terje.rosten@ntnu.no> - 0.8.1-2
- Add cgdisk and fixparts
* Mon Oct 17 2011 Terje Rosten <terje.rosten@ntnu.no> - 0.8.1-1
- 0.8.1
- Add ncurses-devel to buildreq