blob: af2619374911214b4faa228492e7d2311fe0b3fb [file] [log] [blame]
srs5694bf8950c2011-03-12 01:23:12 -05001Summary: GPT partitioning and MBR repair software
2Name: gptfdisk
Aurimas Liutikasbdbab022017-03-07 09:50:36 -08003Version: 0.8.10
Roderick W. Smith946866e2014-03-02 13:33:44 -05004
srs56943b29c892010-02-21 13:31:46 -05005Release: 1%{?dist}
6License: GPLv2
7URL: http://www.rodsbooks.com/gdisk
8Group: Applications/System
Aurimas Liutikasbdbab022017-03-07 09:50:36 -08009Source: http://www.rodsbooks.com/gdisk/gptfdisk-0.8.10.tar.gz
srs56943b29c892010-02-21 13:31:46 -050010BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
11
12%description
srs5694bf8950c2011-03-12 01:23:12 -050013
srs5694a17fe692011-09-10 20:30:20 -040014Partitioning software for GPT disks and to repair MBR disks. The gdisk,
15cgdisk, and sgdisk utilities (in the gdisk package) are GPT-enabled
16partitioning tools; the fixparts utility (in the fixparts package) fixes
17some problems with MBR disks that can be created by buggy partitioning
18software.
srs5694bf8950c2011-03-12 01:23:12 -050019
20%package -n gdisk
21
22Group: Applications/System
23
24Summary: An fdisk-like partitioning tool for GPT disks
25
26%description -n gdisk
srs56943b29c892010-02-21 13:31:46 -050027An fdisk-like partitioning tool for GPT disks. GPT
28fdisk features a command-line interface, fairly direct
29manipulation of partition table structures, recovery
30tools to help you deal with corrupt partition tables,
31and the ability to convert MBR disks to GPT format.
32
33%prep
34%setup -q
35
36%build
srs5694c54e9b42010-05-01 21:04:23 -040037CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_CXX_FLAGS" make
srs56943b29c892010-02-21 13:31:46 -050038
39%install
40rm -rf $RPM_BUILD_ROOT
srs56949ddc14b2010-08-22 22:44:42 -040041mkdir -p $RPM_BUILD_ROOT/usr/sbin
42install -Dp -m0755 gdisk $RPM_BUILD_ROOT/usr/sbin
43install -Dp -m0755 sgdisk $RPM_BUILD_ROOT/usr/sbin
srs5694a17fe692011-09-10 20:30:20 -040044install -Dp -m0755 cgdisk $RPM_BUILD_ROOT/usr/sbin
srs5694bf8950c2011-03-12 01:23:12 -050045install -Dp -m0755 fixparts $RPM_BUILD_ROOT/usr/sbin
srs56943b29c892010-02-21 13:31:46 -050046install -Dp -m0644 gdisk.8 $RPM_BUILD_ROOT/%{_mandir}/man8/gdisk.8
47install -Dp -m0644 sgdisk.8 $RPM_BUILD_ROOT/%{_mandir}/man8/sgdisk.8
srs5694a17fe692011-09-10 20:30:20 -040048install -Dp -m0644 cgdisk.8 $RPM_BUILD_ROOT/%{_mandir}/man8/cgdisk.8
srs5694bf8950c2011-03-12 01:23:12 -050049install -Dp -m0644 fixparts.8 $RPM_BUILD_ROOT/%{_mandir}/man8/fixparts.8
srs56943b29c892010-02-21 13:31:46 -050050
51%clean
52rm -rf $RPM_BUILD_ROOT
53
srs5694bf8950c2011-03-12 01:23:12 -050054%files -n gdisk
srs56943b29c892010-02-21 13:31:46 -050055%defattr(-,root,root -)
srs56948f1b2d62010-05-23 13:07:19 -040056%doc NEWS COPYING README
srs56949ddc14b2010-08-22 22:44:42 -040057/usr/sbin/gdisk
58/usr/sbin/sgdisk
srs5694a17fe692011-09-10 20:30:20 -040059/usr/sbin/cgdisk
srs5694bf8950c2011-03-12 01:23:12 -050060%doc %{_mandir}/man8/gdisk.8*
61%doc %{_mandir}/man8/sgdisk.8*
srs5694a17fe692011-09-10 20:30:20 -040062%doc %{_mandir}/man8/cgdisk.8*
srs5694bf8950c2011-03-12 01:23:12 -050063
64%package -n fixparts
65
66Group: Applications/System
67
68Summary: A tool for repairing certain types of damage to MBR disks
69
70%description -n fixparts
71A program that corrects errors that can creep into MBR-partitioned
72disks. Removes stray GPT data, fixes mis-sized extended partitions,
73and enables changing primary vs. logical partition status. Also
74provides 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
srs56943b29c892010-02-21 13:31:46 -050082
83%changelog
Aurimas Liutikasbdbab022017-03-07 09:50:36 -080084* Sun Mar 2 2014 R Smith <rodsmith@rodsbooks.com> - 0.8.10
85- Created spec file for 0.8.10 release