1 Summary: An fdisk-like partitioning tool for GPT disks
7 URL: http://www.rodsbooks.com/gdisk/
8 Source0: http://downloads.sourceforge.net/gptfdisk/gptfdisk-%{version}.tar.gz
9 # Source0-md5: 31deeb7acb5104d56ba2ddeafd907513
10 BuildRequires: libicu-devel
11 BuildRequires: libstdc++-devel
12 BuildRequires: libuuid-devel
13 BuildRequires: popt-devel
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 An fdisk-like partitioning tool for GPT disks. GPT fdisk features a
18 command-line interface, fairly direct manipulation of partition table
19 structures, recovery tools to help you deal with corrupt partition
20 tables, and the ability to convert MBR disks to GPT format.
23 %setup -q -n gptfdisk-%{version}
28 CXXFLAGS="%{rpmcxxflags} -D_FILE_OFFSET_BITS=64"
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
33 install -p gdisk sgdisk fixparts $RPM_BUILD_ROOT%{_sbindir}
34 cp -p gdisk.8 sgdisk.8 fixparts.8 $RPM_BUILD_ROOT%{_mandir}/man8
37 rm -rf $RPM_BUILD_ROOT
40 %defattr(644,root,root,755)
42 %attr(755,root,root) %{_sbindir}/fixparts
43 %attr(755,root,root) %{_sbindir}/gdisk
44 %attr(755,root,root) %{_sbindir}/sgdisk
45 %{_mandir}/man8/fixparts.8*
46 %{_mandir}/man8/gdisk.8*
47 %{_mandir}/man8/sgdisk.8*