Accepting request 106896 from Base:System

GPT-based partitioner in the style of fdisk(8), for people who like more control than attainable with GNU parted.

OBS-URL: https://build.opensuse.org/request/show/106896
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gptfdisk?expand=0&rev=1
This commit is contained in:
Stephan Kulow 2012-03-09 20:23:17 +00:00 committed by Git OBS Bridge
commit 1918932fc8
9 changed files with 237 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

6
debian.changelog Normal file
View File

@ -0,0 +1,6 @@
gptfdisk (0.8.2-1) stable; urgency=low
* Initial Release
-- Rod Smith <rodsmith@rodsbooks.com> Sun, 22 Jan 2022 15:11:38 +0100

16
debian.control Normal file
View File

@ -0,0 +1,16 @@
Source: gptfdisk
Section: Applications/System
Priority: extra
Maintainer: Roderick Smith <rodsmith@rodsbooks.com>
Build-Depends: debhelper (>= 4.1.16), build-essential, uuid-dev, libpopt-dev, libicu-dev
Package: gptfdisk
Architecture: any
Depends: ${shlibs:Depends}
Description: GPT partitioning and MBR repair software
Partitioning software for GPT disks and to repair MBR
disks. The gdisk 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.

88
debian.rules Normal file
View File

@ -0,0 +1,88 @@
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This is the debhelper compatibility version to use.
export DH_COMPAT=4
build: build-stamp
build-stamp:
dh_testdir
# Add here commands to compile the package.
make
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
make clean || true
# --- end custom part for cleaning up
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package
# The DESTDIR Has To Be Exactly /usr/src/packages/BUILD/debian/<nameOfPackage>
install -Dp gdisk /usr/src/packages/BUILD/debian/gptfdisk/usr/sbin/gdisk
install -Dp cgdisk /usr/src/packages/BUILD/debian/gptfdisk/usr/sbin/cgdisk
install -Dp sgdisk /usr/src/packages/BUILD/debian/gptfdisk/usr/sbin/sgdisk
install -Dp fixparts /usr/src/packages/BUILD/debian/gptfdisk/usr/sbin/fixparts
install -Dp -m 0644 gdisk.8 /usr/src/packages/BUILD/debian/gptfdisk/usr/share/man/man8/gdisk.8
install -Dp -m 0644 cgdisk.8 /usr/src/packages/BUILD/debian/gptfdisk/usr/share/man/man8/cgdisk.8
install -Dp -m 0644 sgdisk.8 /usr/src/packages/BUILD/debian/gptfdisk/usr/share/man/man8/sgdisk.8
install -Dp -m 0644 fixparts.8 /usr/src/packages/BUILD/debian/gptfdisk/usr/share/man/man8/fixparts.8
install -Dp -m 0644 README /usr/src/packages/BUILD/debian/gptfdisk/usr/share/doc/gptfdisk/README
install -Dp -m 0644 NEWS /usr/src/packages/BUILD/debian/gptfdisk/usr/share/doc/gptfdisk/NEWS
install -Dp -m 0644 COPYING /usr/src/packages/BUILD/debian/gptfdisk/usr/share/doc/gptfdisk/COPYING
# --- end custom part for installing
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
# dh_installdebconf
dh_installdocs
dh_installexamples
dh_installmenu
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_installinit
dh_installcron
dh_installman
dh_installinfo
# dh_undocumented
dh_installchangelogs
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_makeshlibs
dh_installdeb
# dh_perl
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install

3
gptfdisk-0.8.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b1159027ca459661f04bc3bac8e79381895933ee214c4d6dba49b7d27204e5d3
size 155914

4
gptfdisk.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Sun Jan 22 00:00:00 UTC 2012 - rodsmith@rodsbooks.com
- Created spec file for 0.8.2 release

10
gptfdisk.dsc Normal file
View File

@ -0,0 +1,10 @@
Format: 1.0
Source: gptfdisk
Version: 0.8.2-1
Binary: packageName
Maintainer: Roderick Smith <rodsmith@rodsbooks.com>
Architecture: any
Build-Depends: debhelper (>= 4.1.16), libncurses5-dev, build-essential, uuid-dev, libpopt-dev, libicu-dev
Files:
d57283ebb8157ae919762c58419353c8 133282 gptfdisk-0.8.2.tar.gz
2fecf324a32123b08cefc0f047bca5ee 63176 gptfdisk-0.8.2.diff.tar.gz

86
gptfdisk.spec Normal file
View File

@ -0,0 +1,86 @@
#
# spec file for package gptfdisk
#
# Copyright (c) 2012 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.2
Release: 0
Summary: GPT partitioning and MBR repair software
License: GPL-2.0
Group: Applications/System
Url: http://rodsbooks.com/gdisk
Source: http://rodsbooks.com/gdisk/gptfdisk-0.8.2.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: e2fsprogs-devel gcc-c++ libicu-devel libuuid-devel
BuildRequires: ncurses-devel popt-devel
%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 -n gdisk
Summary: An fdisk-like partitioning tool for GPT disks
Group: Applications/System
%description -n gdisk
An fdisk-like partitioning tool for GPT disks. GPT
fdisk features a command-line interface, fairly direct
manipulation of partition table structures, recovery
tools to help you deal with corrupt partition tables,
and the ability to convert MBR disks to GPT format.
%package fixparts
Summary: A tool for repairing certain types of damage to MBR disks
Group: Applications/System
%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
%build
CFLAGS="%optflags" CXXFLAGS="%optflags" make %{?_smp_mflags}
%install
b="%buildroot";
mkdir -p "$b/%_sbindir" "$b/%_mandir/man8";
install -pm0755 fixparts {,c,s}gdisk "$b/%_sbindir/";
install -pm0644 *.8 "$b/%_mandir/man8/";
%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