1Summary: GPT partitioning and MBR repair software 2Name: gptfdisk 3Version: 1.0.4 4 5Release: 1%{?dist} 6License: GPLv2 7URL: http://www.rodsbooks.com/gdisk 8Group: Applications/System 9Source: http://www.rodsbooks.com/gdisk/gptfdisk-1.0.4.tar.gz 10BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) 11 12%description 13 14Partitioning 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. 19 20%package -n gdisk 21 22Group: Applications/System 23 24Summary: An fdisk-like partitioning tool for GPT disks 25 26%description -n gdisk 27An 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 37CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_CXX_FLAGS" make 38 39%install 40rm -rf $RPM_BUILD_ROOT 41mkdir -p $RPM_BUILD_ROOT/usr/sbin 42install -Dp -m0755 gdisk $RPM_BUILD_ROOT/usr/sbin 43install -Dp -m0755 sgdisk $RPM_BUILD_ROOT/usr/sbin 44install -Dp -m0755 cgdisk $RPM_BUILD_ROOT/usr/sbin 45install -Dp -m0755 fixparts $RPM_BUILD_ROOT/usr/sbin 46install -Dp -m0644 gdisk.8 $RPM_BUILD_ROOT/%{_mandir}/man8/gdisk.8 47install -Dp -m0644 sgdisk.8 $RPM_BUILD_ROOT/%{_mandir}/man8/sgdisk.8 48install -Dp -m0644 cgdisk.8 $RPM_BUILD_ROOT/%{_mandir}/man8/cgdisk.8 49install -Dp -m0644 fixparts.8 $RPM_BUILD_ROOT/%{_mandir}/man8/fixparts.8 50 51%clean 52rm -rf $RPM_BUILD_ROOT 53 54%files -n gdisk 55%defattr(-,root,root -) 56%doc NEWS COPYING README 57/usr/sbin/gdisk 58/usr/sbin/sgdisk 59/usr/sbin/cgdisk 60%doc %{_mandir}/man8/gdisk.8* 61%doc %{_mandir}/man8/sgdisk.8* 62%doc %{_mandir}/man8/cgdisk.8* 63 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 82 83%changelog 84* Thu Jul 5 2018 R Smith <rodsmith@rodsbooks.com> - 1.0.4 85- Created spec file for 1.0.4 release 86