summaryrefslogtreecommitdiff
path: root/current.spec
blob: 373769b6a6ee60152b51218a9d15d86f45895201 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Summary: An fdisk-like partitioning tool for GPT disks
Name: gdisk
Version: 0.6.6
Release: 1%{?dist}
License: GPLv2
URL: http://www.rodsbooks.com/gdisk
Group: Applications/System
Source: http://www.rodsbooks.com/gdisk/gdisk-0.6.6.tgz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

%description
An fdisk-like partitioning tool for GPT disks. GPT
fdisk features a command-line interface, fairly direct
manipulation of partition table structures, recovery
tools to help you deal with corrupt partition tables,
and the ability to convert MBR disks to GPT format.

%prep
%setup -q

%build
CFLAGS="$RPM_OPT_FLAGS" "$RPM_OPT_CXX_FLAGS" make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/sbin
install -Dp -m0755 gdisk $RPM_BUILD_ROOT/sbin
install -Dp -m0755 sgdisk $RPM_BUILD_ROOT/sbin
install -Dp -m0644 gdisk.8 $RPM_BUILD_ROOT/%{_mandir}/man8/gdisk.8
install -Dp -m0644 sgdisk.8 $RPM_BUILD_ROOT/%{_mandir}/man8/sgdisk.8

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root -)
%doc CHANGELOG COPYING README
/sbin/gdisk
/sbin/sgdisk
%doc %{_mandir}/man8*

%changelog
* Sun Mar 21 2010 R Smith <rodsmith@rodsbooks.com> - 0.6.6
- Created spec file for 0.6.6 release