gptfdisk/gptfdisk.spec

97 lines
2.7 KiB
RPMSpec

#
# spec file for package gptfdisk
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: gptfdisk
Version: 0.8.10
Release: 0
Summary: GPT partitioning and MBR repair software
License: GPL-2.0
Group: System/Base
Url: http://rodsbooks.com/gdisk
Source: http://downloads.sf.net/%name/%name-%version.tar.gz
Source1: gptfdisk-autoconfiscation.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
BuildRequires: ncurses-devel
BuildRequires: xz
%if 0%{?suse_version} > 1140
BuildRequires: pkgconfig(popt)
BuildRequires: pkgconfig(uuid)
%else
BuildRequires: libuuid-devel
BuildRequires: pkgconfig
BuildRequires: popt-devel
%endif
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: pkgconfig
Obsoletes: gdisk < %version-%release
Provides: gdisk = %version-%release
%description
Partitioning software for GPT disks and to repair MBR disks. The
gdisk, cgdisk, and sgdisk utilities (in the gdisk package) are
GPT-enabled partitioning tools; the fixparts utility (in the fixparts
package) fixes some problems with MBR disks that can be created by
buggy partitioning software.
%package fixparts
Summary: A tool for repairing certain types of damage to MBR disks
Group: System/Base
%description fixparts
A program that corrects errors that can creep into MBR-partitioned
disks. Removes stray GPT data, fixes mis-sized extended partitions,
and enables changing primary vs. logical partition status. Also
provides a few additional partition manipulation features.
%prep
%setup -q -a1
rm -f Makefile
%build
autoreconf -fi
%configure
make %{?_smp_mflags}
%install
make DESTDIR=%{_buildroot} install
%check
./gdisk_test.sh
%files
%defattr(-,root,root)
%doc NEWS COPYING README
%_sbindir/gdisk
%_sbindir/sgdisk
%_sbindir/cgdisk
%_mandir/man8/gdisk.8*
%_mandir/man8/cgdisk.8*
%_mandir/man8/sgdisk.8*
%files fixparts
%defattr(-,root,root)
%doc NEWS COPYING README
%_sbindir/fixparts
%_mandir/man8/fixparts.8*
%changelog