resetting manifest requested domain to floor
[platform/upstream/gptfdisk.git] / current.spec
1 Summary: GPT partitioning and MBR repair software
2 Name: gptfdisk
3 Version: 0.8.5
4 Release: 1%{?dist}
5 License: GPLv2
6 URL: http://www.rodsbooks.com/gdisk
7 Group: Applications/System
8 Source: http://www.rodsbooks.com/gdisk/gptfdisk-0.8.5.tar.gz
9 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
10
11 %description
12
13 Partitioning software for GPT disks and to repair MBR disks. The gdisk,
14 cgdisk, and sgdisk utilities (in the gdisk package) are GPT-enabled
15 partitioning tools; the fixparts utility (in the fixparts package) fixes
16 some problems with MBR disks that can be created by buggy partitioning
17 software.
18
19 %package -n gdisk
20
21 Group: Applications/System
22
23 Summary: An fdisk-like partitioning tool for GPT disks
24
25 %description -n gdisk
26 An fdisk-like partitioning tool for GPT disks. GPT
27 fdisk features a command-line interface, fairly direct
28 manipulation of partition table structures, recovery
29 tools to help you deal with corrupt partition tables,
30 and the ability to convert MBR disks to GPT format.
31
32 %prep
33 %setup -q
34
35 %build
36 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_CXX_FLAGS" make
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 mkdir -p $RPM_BUILD_ROOT/usr/sbin
41 install -Dp -m0755 gdisk $RPM_BUILD_ROOT/usr/sbin
42 install -Dp -m0755 sgdisk $RPM_BUILD_ROOT/usr/sbin
43 install -Dp -m0755 cgdisk $RPM_BUILD_ROOT/usr/sbin
44 install -Dp -m0755 fixparts $RPM_BUILD_ROOT/usr/sbin
45 install -Dp -m0644 gdisk.8 $RPM_BUILD_ROOT/%{_mandir}/man8/gdisk.8
46 install -Dp -m0644 sgdisk.8 $RPM_BUILD_ROOT/%{_mandir}/man8/sgdisk.8
47 install -Dp -m0644 cgdisk.8 $RPM_BUILD_ROOT/%{_mandir}/man8/cgdisk.8
48 install -Dp -m0644 fixparts.8 $RPM_BUILD_ROOT/%{_mandir}/man8/fixparts.8
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files -n gdisk
54 %defattr(-,root,root -)
55 %doc NEWS COPYING README
56 /usr/sbin/gdisk
57 /usr/sbin/sgdisk
58 /usr/sbin/cgdisk
59 %doc %{_mandir}/man8/gdisk.8*
60 %doc %{_mandir}/man8/sgdisk.8*
61 %doc %{_mandir}/man8/cgdisk.8*
62
63 %package -n fixparts
64
65 Group: Applications/System
66
67 Summary: A tool for repairing certain types of damage to MBR disks
68
69 %description -n fixparts
70 A program that corrects errors that can creep into MBR-partitioned
71 disks. Removes stray GPT data, fixes mis-sized extended partitions,
72 and enables changing primary vs. logical partition status. Also
73 provides a few additional partition manipulation features.
74
75 %files -n fixparts
76 %defattr(-,root,root -)
77 %doc NEWS COPYING README
78 /usr/sbin/fixparts
79 %doc %{_mandir}/man8/fixparts.8*
80
81
82 %changelog
83 * Wed May 30 2012 R Smith <rodsmith@rodsbooks.com> - 0.8.5
84 - Created spec file for 0.8.5 release