blob: 8beaeaa63d03904adfbf11bcd5abcd09dbed859f [file] [log] [blame]
srs5694bf8950c2011-03-12 01:23:12 -05001Summary: GPT partitioning and MBR repair software
2Name: gptfdisk
Roderick W. Smith84aaff62014-02-17 16:17:11 -05003Version: 0.8.9
srs56943b29c892010-02-21 13:31:46 -05004Release: 1%{?dist}
5License: GPLv2
6URL: http://www.rodsbooks.com/gdisk
7Group: Applications/System
Roderick W. Smith84aaff62014-02-17 16:17:11 -05008Source: http://www.rodsbooks.com/gdisk/gptfdisk-0.8.9.tar.gz
srs56943b29c892010-02-21 13:31:46 -05009BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
10
11%description
srs5694bf8950c2011-03-12 01:23:12 -050012
srs5694a17fe692011-09-10 20:30:20 -040013Partitioning software for GPT disks and to repair MBR disks. The gdisk,
14cgdisk, and sgdisk utilities (in the gdisk package) are GPT-enabled
15partitioning tools; the fixparts utility (in the fixparts package) fixes
16some problems with MBR disks that can be created by buggy partitioning
17software.
srs5694bf8950c2011-03-12 01:23:12 -050018
19%package -n gdisk
20
21Group: Applications/System
22
23Summary: An fdisk-like partitioning tool for GPT disks
24
25%description -n gdisk
srs56943b29c892010-02-21 13:31:46 -050026An fdisk-like partitioning tool for GPT disks. GPT
27fdisk features a command-line interface, fairly direct
28manipulation of partition table structures, recovery
29tools to help you deal with corrupt partition tables,
30and the ability to convert MBR disks to GPT format.
31
32%prep
33%setup -q
34
35%build
srs5694c54e9b42010-05-01 21:04:23 -040036CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_CXX_FLAGS" make
srs56943b29c892010-02-21 13:31:46 -050037
38%install
39rm -rf $RPM_BUILD_ROOT
srs56949ddc14b2010-08-22 22:44:42 -040040mkdir -p $RPM_BUILD_ROOT/usr/sbin
41install -Dp -m0755 gdisk $RPM_BUILD_ROOT/usr/sbin
42install -Dp -m0755 sgdisk $RPM_BUILD_ROOT/usr/sbin
srs5694a17fe692011-09-10 20:30:20 -040043install -Dp -m0755 cgdisk $RPM_BUILD_ROOT/usr/sbin
srs5694bf8950c2011-03-12 01:23:12 -050044install -Dp -m0755 fixparts $RPM_BUILD_ROOT/usr/sbin
srs56943b29c892010-02-21 13:31:46 -050045install -Dp -m0644 gdisk.8 $RPM_BUILD_ROOT/%{_mandir}/man8/gdisk.8
46install -Dp -m0644 sgdisk.8 $RPM_BUILD_ROOT/%{_mandir}/man8/sgdisk.8
srs5694a17fe692011-09-10 20:30:20 -040047install -Dp -m0644 cgdisk.8 $RPM_BUILD_ROOT/%{_mandir}/man8/cgdisk.8
srs5694bf8950c2011-03-12 01:23:12 -050048install -Dp -m0644 fixparts.8 $RPM_BUILD_ROOT/%{_mandir}/man8/fixparts.8
srs56943b29c892010-02-21 13:31:46 -050049
50%clean
51rm -rf $RPM_BUILD_ROOT
52
srs5694bf8950c2011-03-12 01:23:12 -050053%files -n gdisk
srs56943b29c892010-02-21 13:31:46 -050054%defattr(-,root,root -)
srs56948f1b2d62010-05-23 13:07:19 -040055%doc NEWS COPYING README
srs56949ddc14b2010-08-22 22:44:42 -040056/usr/sbin/gdisk
57/usr/sbin/sgdisk
srs5694a17fe692011-09-10 20:30:20 -040058/usr/sbin/cgdisk
srs5694bf8950c2011-03-12 01:23:12 -050059%doc %{_mandir}/man8/gdisk.8*
60%doc %{_mandir}/man8/sgdisk.8*
srs5694a17fe692011-09-10 20:30:20 -040061%doc %{_mandir}/man8/cgdisk.8*
srs5694bf8950c2011-03-12 01:23:12 -050062
63%package -n fixparts
64
65Group: Applications/System
66
67Summary: A tool for repairing certain types of damage to MBR disks
68
69%description -n fixparts
70A program that corrects errors that can creep into MBR-partitioned
71disks. Removes stray GPT data, fixes mis-sized extended partitions,
72and enables changing primary vs. logical partition status. Also
73provides 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
srs56943b29c892010-02-21 13:31:46 -050081
82%changelog
Roderick W. Smith84aaff62014-02-17 16:17:11 -050083* Mon Feb 17 2014 R Smith <rodsmith@rodsbooks.com> - 0.8.9
84- Created spec file for 0.8.9 release