]>
Commit | Line | Data |
---|---|---|
e057bdb6 | 1 | Summary: An fdisk-like partitioning tool for GPT disks |
cae4a82d | 2 | Summary(pl.UTF-8): Podobne do fdiska narzędzie do partycjonowania dysków GPT |
e057bdb6 | 3 | Name: gdisk |
d719b390 | 4 | Version: 1.0.9 |
fd9d721d | 5 | Release: 2 |
e057bdb6 ER |
6 | License: GPL v2 |
7 | Group: Base | |
742be05f | 8 | Source0: https://downloads.sourceforge.net/gptfdisk/gptfdisk-%{version}.tar.gz |
d719b390 | 9 | # Source0-md5: 01c11ecfa454096543562e3068530e01 |
fd9d721d AM |
10 | Patch0: gptfdisk-1.0.9-libuuid.patch |
11 | Patch1: gptfdisk-1.0.9-popt_segv.patch | |
f2927066 | 12 | URL: http://www.rodsbooks.com/gdisk/ |
8b98eefa | 13 | BuildRequires: libstdc++-devel |
e057bdb6 | 14 | BuildRequires: libuuid-devel |
f2927066 | 15 | BuildRequires: ncurses-devel |
e057bdb6 | 16 | BuildRequires: popt-devel |
e057bdb6 ER |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
cae4a82d JB |
20 | GPT fdisk (gdisk) is an fdisk-like partitioning tool for GPT disks. |
21 | It features a command-line interface, fairly direct manipulation of | |
22 | partition table structures, recovery tools to help you deal with | |
23 | corrupt partition tables, and the ability to convert MBR disks to GPT | |
24 | format. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | GPT fdisk (gdisk) to podobne do fdiska narzędzie do partycjonowania | |
28 | dysków GPT. Ma interfejs linii poleceń, w miarę bezpośrednie operacje | |
29 | na strukturach tablicy partycji, narzędzia pomagające przy naprawie | |
30 | uszkodzonych tablic partycji oraz możliwość konwersji dysków MBR do | |
31 | formatu GPT. | |
e057bdb6 ER |
32 | |
33 | %prep | |
34 | %setup -q -n gptfdisk-%{version} | |
fd9d721d AM |
35 | %patch0 -p1 |
36 | %patch1 -p1 | |
e057bdb6 ER |
37 | |
38 | %build | |
39 | %{__make} \ | |
40 | CXX="%{__cxx}" \ | |
a8485950 | 41 | CXXFLAGS="%{rpmcxxflags} %{rpmcppflags} -D_FILE_OFFSET_BITS=64" |
e057bdb6 ER |
42 | |
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} | |
a8485950 TP |
46 | |
47 | install fixparts *gdisk $RPM_BUILD_ROOT%{_sbindir} | |
48 | install -p *.8 $RPM_BUILD_ROOT%{_mandir}/man8 | |
e057bdb6 ER |
49 | |
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
a8485950 | 55 | %doc NEWS README *.html |
9c73dbf8 | 56 | %attr(755,root,root) %{_sbindir}/cgdisk |
8b98eefa | 57 | %attr(755,root,root) %{_sbindir}/fixparts |
9c73dbf8 JB |
58 | %attr(755,root,root) %{_sbindir}/gdisk |
59 | %attr(755,root,root) %{_sbindir}/sgdisk | |
60 | %{_mandir}/man8/cgdisk.8* | |
8b98eefa | 61 | %{_mandir}/man8/fixparts.8* |
9c73dbf8 JB |
62 | %{_mandir}/man8/gdisk.8* |
63 | %{_mandir}/man8/sgdisk.8* |