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