]> git.pld-linux.org Git - packages/gdisk.git/blob - gdisk.spec
rel 2; uuid and segv fixees from gentoo
[packages/gdisk.git] / gdisk.spec
1 Summary:        An fdisk-like partitioning tool for GPT disks
2 Summary(pl.UTF-8):      Podobne do fdiska narzędzie do partycjonowania dysków GPT
3 Name:           gdisk
4 Version:        1.0.9
5 Release:        2
6 License:        GPL v2
7 Group:          Base
8 Source0:        https://downloads.sourceforge.net/gptfdisk/gptfdisk-%{version}.tar.gz
9 # Source0-md5:  01c11ecfa454096543562e3068530e01
10 Patch0:         gptfdisk-1.0.9-libuuid.patch
11 Patch1:         gptfdisk-1.0.9-popt_segv.patch
12 URL:            http://www.rodsbooks.com/gdisk/
13 BuildRequires:  libstdc++-devel
14 BuildRequires:  libuuid-devel
15 BuildRequires:  ncurses-devel
16 BuildRequires:  popt-devel
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
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.
32
33 %prep
34 %setup -q -n gptfdisk-%{version}
35 %patch0 -p1
36 %patch1 -p1
37
38 %build
39 %{__make} \
40         CXX="%{__cxx}" \
41         CXXFLAGS="%{rpmcxxflags} %{rpmcppflags} -D_FILE_OFFSET_BITS=64"
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
46
47 install fixparts *gdisk $RPM_BUILD_ROOT%{_sbindir}
48 install -p *.8 $RPM_BUILD_ROOT%{_mandir}/man8
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc NEWS README *.html
56 %attr(755,root,root) %{_sbindir}/cgdisk
57 %attr(755,root,root) %{_sbindir}/fixparts
58 %attr(755,root,root) %{_sbindir}/gdisk
59 %attr(755,root,root) %{_sbindir}/sgdisk
60 %{_mandir}/man8/cgdisk.8*
61 %{_mandir}/man8/fixparts.8*
62 %{_mandir}/man8/gdisk.8*
63 %{_mandir}/man8/sgdisk.8*
This page took 0.045985 seconds and 3 git commands to generate.