gptfdisk/gptfdisk.spec
Jan Engelhardt 4ebbf60ec8 Accepting request 898986 from home:polslinux:branches:filesystems
- Update to 1.0.8
  * Fixed double byte swap operation on writes of partition name data on
    big-endian systems; this is in addition to the double byte swap fix on
    reading partition label data fixed in 1.0.7. (Thanks to Erik Larsson for
    both fixes.)
  * Added feature to gdisk and sgdisk to enable swapping the byte order of
    partition names, so as to correct disks already affected by the preceding
    bug. This option is 'b' on the experts' menu in gdisk and
    -b/--byte-swap-name in sgdisk. This seems advanced/obscure enough that I
    don't want to clutter cgdisk's menu with this option, so I haven't added
    it there.
  * Added type code for the Barebox boot loader (0xbb00;
    4778ED65-BF42-45FA-9C5B-287A1DC4AAB1).
  * Fixed bug that caused spurious warnings about the partition table
    header claiming an invalid size of partition entries when reading
    some MBR disks.
  * Added ARM64 as an architecture for the Mac builds of gdisk and fixparts.
    The official GPT fdisk binaries of these files for macOS are now
    "universal" x86-64/ARM64 binaries, so they will run natively on the new M1
    (ARM64) Macs. The sgdisk and cgdisk binaries, though, remain built only
    for x86-64, because they rely on libraries that are not easily built in
    "universal" form.
  * Fixed double byte swap operation on partition label data on big-endian
    CPUs. This resulted in partition names becoming gibberish on such CPUs.
  * Added three new type codes:
    - 0x0701 - Microsoft Storage Replica
    - 0x0702 - ArcaOS Type 1
    - 0x8401 - Storage Performance Development Kit (SPDK) block device
- Drop fix-spurious-warnings.patch

OBS-URL: https://build.opensuse.org/request/show/898986
OBS-URL: https://build.opensuse.org/package/show/filesystems/gptfdisk?expand=0&rev=20
2021-06-10 11:37:32 +00:00

82 lines
2.3 KiB
RPMSpec

#
# spec file for package gptfdisk
#
# Copyright (c) 2021 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.8
Release: 0
Summary: GPT partitioning and MBR repair software
License: GPL-2.0-only
Group: System/Base
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