]>
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 |
f4b709ce | 4 | Version: 0.8.7 |
9e80b5e4 | 5 | Release: 2 |
e057bdb6 ER |
6 | License: GPL v2 |
7 | Group: Base | |
e057bdb6 | 8 | Source0: http://downloads.sourceforge.net/gptfdisk/gptfdisk-%{version}.tar.gz |
f4b709ce | 9 | # Source0-md5: 005b45c0b37c37a99024704fdb2ee610 |
cae4a82d | 10 | Patch0: %{name}-link.patch |
f2927066 | 11 | URL: http://www.rodsbooks.com/gdisk/ |
e057bdb6 | 12 | BuildRequires: libicu-devel |
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} | |
cae4a82d | 35 | %patch0 -p1 |
e057bdb6 ER |
36 | |
37 | %build | |
38 | %{__make} \ | |
39 | CXX="%{__cxx}" \ | |
cae4a82d | 40 | CXXFLAGS="%{rpmcxxflags} %{rpmcppflags} -D_FILE_OFFSET_BITS=64 -DUSE_UTF16 -I/usr/include/ncurses" |
e057bdb6 ER |
41 | |
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} | |
8b98eefa ER |
45 | install -p gdisk sgdisk fixparts $RPM_BUILD_ROOT%{_sbindir} |
46 | cp -p gdisk.8 sgdisk.8 fixparts.8 $RPM_BUILD_ROOT%{_mandir}/man8 | |
e057bdb6 ER |
47 | |
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
8b98eefa ER |
53 | %doc README NEWS |
54 | %attr(755,root,root) %{_sbindir}/fixparts | |
e057bdb6 ER |
55 | %attr(755,root,root) %{_sbindir}/gdisk |
56 | %attr(755,root,root) %{_sbindir}/sgdisk | |
8b98eefa | 57 | %{_mandir}/man8/fixparts.8* |
e057bdb6 ER |
58 | %{_mandir}/man8/gdisk.8* |
59 | %{_mandir}/man8/sgdisk.8* |