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