2012-03-09 21:23:17 +01:00
|
|
|
#
|
|
|
|
# spec file for package gptfdisk
|
|
|
|
#
|
2018-03-27 02:16:10 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-03-09 21:23:17 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
2012-06-26 15:46:26 +02:00
|
|
|
|
|
|
|
|
2012-03-09 21:23:17 +01:00
|
|
|
Name: gptfdisk
|
2015-10-27 12:48:36 +01:00
|
|
|
Version: 1.0.1
|
2012-03-09 21:23:17 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: GPT partitioning and MBR repair software
|
2018-03-27 02:16:10 +02:00
|
|
|
License: GPL-2.0-only
|
2013-03-08 10:49:41 +01:00
|
|
|
Group: System/Base
|
2012-03-09 21:23:17 +01:00
|
|
|
Url: http://rodsbooks.com/gdisk
|
|
|
|
|
2014-03-05 15:37:53 +01:00
|
|
|
Source: http://downloads.sf.net/%name/%name-%version.tar.gz
|
2012-06-26 15:46:26 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-03-20 11:27:10 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: pkgconfig(popt)
|
|
|
|
BuildRequires: pkgconfig(uuid)
|
2012-03-09 21:23:17 +01:00
|
|
|
|
2012-06-26 15:46:26 +02:00
|
|
|
Obsoletes: gdisk < %version-%release
|
|
|
|
Provides: gdisk = %version-%release
|
|
|
|
|
2012-03-09 21:23:17 +01:00
|
|
|
%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.
|
|
|
|
|
2014-10-13 20:41:08 +02:00
|
|
|
%package fixparts
|
2012-03-09 21:23:17 +01:00
|
|
|
Summary: A tool for repairing certain types of damage to MBR disks
|
2013-03-08 10:49:41 +01:00
|
|
|
Group: System/Base
|
2012-03-09 21:23:17 +01:00
|
|
|
|
|
|
|
%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
|
2014-10-13 20:41:08 +02:00
|
|
|
%setup -q
|
2012-03-09 21:23:17 +01:00
|
|
|
|
|
|
|
%build
|
2014-10-13 20:41:08 +02:00
|
|
|
CFLAGS="%optflags" CXXFLAGS="%optflags" make %{?_smp_mflags}
|
2012-03-09 21:23:17 +01:00
|
|
|
|
|
|
|
%install
|
2014-10-13 20:41:08 +02:00
|
|
|
b="%buildroot";
|
|
|
|
mkdir -p "$b/%_sbindir" "$b/%_mandir/man8";
|
|
|
|
install -pm0755 fixparts {,c,s}gdisk "$b/%_sbindir/";
|
|
|
|
install -pm0644 *.8 "$b/%_mandir/man8/";
|
2012-03-09 21:23:17 +01:00
|
|
|
|
2013-03-08 10:49:41 +01:00
|
|
|
%check
|
|
|
|
./gdisk_test.sh
|
|
|
|
|
2012-03-09 21:23:17 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2018-03-27 02:16:10 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc NEWS README
|
2012-03-09 21:23:17 +01:00
|
|
|
%_sbindir/gdisk
|
|
|
|
%_sbindir/sgdisk
|
|
|
|
%_sbindir/cgdisk
|
|
|
|
%_mandir/man8/gdisk.8*
|
|
|
|
%_mandir/man8/cgdisk.8*
|
|
|
|
%_mandir/man8/sgdisk.8*
|
|
|
|
|
|
|
|
%files fixparts
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_sbindir/fixparts
|
|
|
|
%_mandir/man8/fixparts.8*
|
|
|
|
|
|
|
|
%changelog
|