Home | History | Annotate | Download | only in gptfdisk
      1 Summary: GPT partitioning and MBR repair software
      2 Name: gptfdisk
      3 Version: 0.8.10
      4 
      5 Release: 1%{?dist}
      6 License: GPLv2
      7 URL: http://www.rodsbooks.com/gdisk
      8 Group: Applications/System
      9 Source: http://www.rodsbooks.com/gdisk/gptfdisk-0.8.10.tar.gz
     10 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
     11 
     12 %description
     13 
     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.
     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
     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
     37 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_CXX_FLAGS" make
     38 
     39 %install
     40 rm -rf $RPM_BUILD_ROOT
     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
     44 install -Dp -m0755 cgdisk $RPM_BUILD_ROOT/usr/sbin
     45 install -Dp -m0755 fixparts $RPM_BUILD_ROOT/usr/sbin
     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
     48 install -Dp -m0644 cgdisk.8 $RPM_BUILD_ROOT/%{_mandir}/man8/cgdisk.8
     49 install -Dp -m0644 fixparts.8 $RPM_BUILD_ROOT/%{_mandir}/man8/fixparts.8
     50 
     51 %clean
     52 rm -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 
     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 
     82 
     83 %changelog
     84 * Sun Mar 2 2014 R Smith <rodsmith@rodsbooks.com> - 0.8.10
     85 - Created spec file for 0.8.10 release
     86