gptfdisk/gptfdisk.spec

82 lines
2.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package gptfdisk
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: gptfdisk
Version: 1.0.9
Release: 0
Summary: GPT partitioning and MBR repair software
License: GPL-2.0-only
Group: System/Base
Accepting request 809051 from home:glaubitz:branches:filesystems - Update to 1.0.5 * Fixed typos and minor formatting issues in man pages * Changed number of columns in type code output ("sgdisk -L" and equivalents in gdisk and cgdisk) from 3 to 2, since some descriptions are long enough that they're ambiguous with three columns. * Makefile change: Add $(LDLIBS) support to enable clean static builds (for libintl). * You can now put the 0xEE partition last in a hybrid MBR using sgdisk. (Previously, this was possible with gdisk but not with sgdisk.) See the sgdisk man page for details. * Added numerous type codes for Container Linux, Veracrypt, and Freedesktop.org's Discoverable Partitions Specification * Partition type name searches are now case-insensitive. * It's now possible to quit out of partition type name searches by typing "q". * When changing a partition type code, the default is now the current type code, not a platform-specific type code. * The UEFI GPT fdisk project (https://sourceforge.net/projects/uefigptfdisk/) hasn't been updated since 2016, and is now broken; binaries don't compile with modern GCC toolchains, and even when dropping back to Ubuntu 14.04, which worked for GPT fdisk 1.0.4, the resulting binary hangs on launch. Therefore, I'm dropping support for the EFI build of gdisk, at least unless and until UEFI GPT fdisk is fixed. * Apple no longer supports building i386 or "fat" binaries in XCode (or if they do, they're making it hard), so I've removed that support. GPT fdisk macOS binaries are now x86-64 only. Similarly, building now seems to require macOS 10.9 or later, so that's now the minimum macOS version. I've also re-built my Mac build environment and tweaked Makefile.mac appropriately. OBS-URL: https://build.opensuse.org/request/show/809051 OBS-URL: https://build.opensuse.org/package/show/filesystems/gptfdisk?expand=0&rev=13
2020-05-28 14:08:42 +02:00
URL: http://rodsbooks.com/gdisk
Source: https://downloads.sf.net/%name/%name-%version.tar.gz
BuildRequires: gcc-c++
BuildRequires: ncurses-devel
BuildRequires: pkgconfig(popt)
BuildRequires: pkgconfig(uuid)
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
%autosetup -p1
%build
CFLAGS="%optflags" CXXFLAGS="%optflags" %make_build
%install
b="%buildroot"
mkdir -p "$b/%_sbindir" "$b/%_mandir/man8"
install -pm0755 fixparts {,c,s}gdisk "$b/%_sbindir/"
install -pm0644 *.8 "$b/%_mandir/man8/"
%check
./gdisk_test.sh
%files
%license COPYING
%doc NEWS README
%_sbindir/gdisk
%_sbindir/sgdisk
%_sbindir/cgdisk
%_mandir/man8/gdisk.8*
%_mandir/man8/cgdisk.8*
%_mandir/man8/sgdisk.8*
%files fixparts
%_sbindir/fixparts
%_mandir/man8/fixparts.8*
%changelog