srs5694 | bf8950c | 2011-03-12 01:23:12 -0500 | [diff] [blame] | 1 | Summary: GPT partitioning and MBR repair software |
| 2 | Name: gptfdisk |
Roderick W. Smith | 84aaff6 | 2014-02-17 16:17:11 -0500 | [diff] [blame] | 3 | Version: 0.8.9 |
srs5694 | 3b29c89 | 2010-02-21 13:31:46 -0500 | [diff] [blame] | 4 | Release: 1%{?dist} |
| 5 | License: GPLv2 |
| 6 | URL: http://www.rodsbooks.com/gdisk |
| 7 | Group: Applications/System |
Roderick W. Smith | 84aaff6 | 2014-02-17 16:17:11 -0500 | [diff] [blame] | 8 | Source: http://www.rodsbooks.com/gdisk/gptfdisk-0.8.9.tar.gz |
srs5694 | 3b29c89 | 2010-02-21 13:31:46 -0500 | [diff] [blame] | 9 | BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) |
| 10 | |
| 11 | %description |
srs5694 | bf8950c | 2011-03-12 01:23:12 -0500 | [diff] [blame] | 12 | |
srs5694 | a17fe69 | 2011-09-10 20:30:20 -0400 | [diff] [blame] | 13 | Partitioning software for GPT disks and to repair MBR disks. The gdisk, |
| 14 | cgdisk, and sgdisk utilities (in the gdisk package) are GPT-enabled |
| 15 | partitioning tools; the fixparts utility (in the fixparts package) fixes |
| 16 | some problems with MBR disks that can be created by buggy partitioning |
| 17 | software. |
srs5694 | bf8950c | 2011-03-12 01:23:12 -0500 | [diff] [blame] | 18 | |
| 19 | %package -n gdisk |
| 20 | |
| 21 | Group: Applications/System |
| 22 | |
| 23 | Summary: An fdisk-like partitioning tool for GPT disks |
| 24 | |
| 25 | %description -n gdisk |
srs5694 | 3b29c89 | 2010-02-21 13:31:46 -0500 | [diff] [blame] | 26 | An fdisk-like partitioning tool for GPT disks. GPT |
| 27 | fdisk features a command-line interface, fairly direct |
| 28 | manipulation of partition table structures, recovery |
| 29 | tools to help you deal with corrupt partition tables, |
| 30 | and the ability to convert MBR disks to GPT format. |
| 31 | |
| 32 | %prep |
| 33 | %setup -q |
| 34 | |
| 35 | %build |
srs5694 | c54e9b4 | 2010-05-01 21:04:23 -0400 | [diff] [blame] | 36 | CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_CXX_FLAGS" make |
srs5694 | 3b29c89 | 2010-02-21 13:31:46 -0500 | [diff] [blame] | 37 | |
| 38 | %install |
| 39 | rm -rf $RPM_BUILD_ROOT |
srs5694 | 9ddc14b | 2010-08-22 22:44:42 -0400 | [diff] [blame] | 40 | mkdir -p $RPM_BUILD_ROOT/usr/sbin |
| 41 | install -Dp -m0755 gdisk $RPM_BUILD_ROOT/usr/sbin |
| 42 | install -Dp -m0755 sgdisk $RPM_BUILD_ROOT/usr/sbin |
srs5694 | a17fe69 | 2011-09-10 20:30:20 -0400 | [diff] [blame] | 43 | install -Dp -m0755 cgdisk $RPM_BUILD_ROOT/usr/sbin |
srs5694 | bf8950c | 2011-03-12 01:23:12 -0500 | [diff] [blame] | 44 | install -Dp -m0755 fixparts $RPM_BUILD_ROOT/usr/sbin |
srs5694 | 3b29c89 | 2010-02-21 13:31:46 -0500 | [diff] [blame] | 45 | install -Dp -m0644 gdisk.8 $RPM_BUILD_ROOT/%{_mandir}/man8/gdisk.8 |
| 46 | install -Dp -m0644 sgdisk.8 $RPM_BUILD_ROOT/%{_mandir}/man8/sgdisk.8 |
srs5694 | a17fe69 | 2011-09-10 20:30:20 -0400 | [diff] [blame] | 47 | install -Dp -m0644 cgdisk.8 $RPM_BUILD_ROOT/%{_mandir}/man8/cgdisk.8 |
srs5694 | bf8950c | 2011-03-12 01:23:12 -0500 | [diff] [blame] | 48 | install -Dp -m0644 fixparts.8 $RPM_BUILD_ROOT/%{_mandir}/man8/fixparts.8 |
srs5694 | 3b29c89 | 2010-02-21 13:31:46 -0500 | [diff] [blame] | 49 | |
| 50 | %clean |
| 51 | rm -rf $RPM_BUILD_ROOT |
| 52 | |
srs5694 | bf8950c | 2011-03-12 01:23:12 -0500 | [diff] [blame] | 53 | %files -n gdisk |
srs5694 | 3b29c89 | 2010-02-21 13:31:46 -0500 | [diff] [blame] | 54 | %defattr(-,root,root -) |
srs5694 | 8f1b2d6 | 2010-05-23 13:07:19 -0400 | [diff] [blame] | 55 | %doc NEWS COPYING README |
srs5694 | 9ddc14b | 2010-08-22 22:44:42 -0400 | [diff] [blame] | 56 | /usr/sbin/gdisk |
| 57 | /usr/sbin/sgdisk |
srs5694 | a17fe69 | 2011-09-10 20:30:20 -0400 | [diff] [blame] | 58 | /usr/sbin/cgdisk |
srs5694 | bf8950c | 2011-03-12 01:23:12 -0500 | [diff] [blame] | 59 | %doc %{_mandir}/man8/gdisk.8* |
| 60 | %doc %{_mandir}/man8/sgdisk.8* |
srs5694 | a17fe69 | 2011-09-10 20:30:20 -0400 | [diff] [blame] | 61 | %doc %{_mandir}/man8/cgdisk.8* |
srs5694 | bf8950c | 2011-03-12 01:23:12 -0500 | [diff] [blame] | 62 | |
| 63 | %package -n fixparts |
| 64 | |
| 65 | Group: Applications/System |
| 66 | |
| 67 | Summary: A tool for repairing certain types of damage to MBR disks |
| 68 | |
| 69 | %description -n fixparts |
| 70 | A program that corrects errors that can creep into MBR-partitioned |
| 71 | disks. Removes stray GPT data, fixes mis-sized extended partitions, |
| 72 | and enables changing primary vs. logical partition status. Also |
| 73 | provides a few additional partition manipulation features. |
| 74 | |
| 75 | %files -n fixparts |
| 76 | %defattr(-,root,root -) |
| 77 | %doc NEWS COPYING README |
| 78 | /usr/sbin/fixparts |
| 79 | %doc %{_mandir}/man8/fixparts.8* |
| 80 | |
srs5694 | 3b29c89 | 2010-02-21 13:31:46 -0500 | [diff] [blame] | 81 | |
| 82 | %changelog |
Roderick W. Smith | 84aaff6 | 2014-02-17 16:17:11 -0500 | [diff] [blame] | 83 | * Mon Feb 17 2014 R Smith <rodsmith@rodsbooks.com> - 0.8.9 |
| 84 | - Created spec file for 0.8.9 release |