commit 1918932fc8a5421298ac94651353deae3af7c692bff3b208e67c50591b2d8fed Author: Stephan Kulow Date: Fri Mar 9 20:23:17 2012 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/debian.changelog b/debian.changelog new file mode 100644 index 0000000..0756636 --- /dev/null +++ b/debian.changelog @@ -0,0 +1,6 @@ +gptfdisk (0.8.2-1) stable; urgency=low + + * Initial Release + + -- Rod Smith Sun, 22 Jan 2022 15:11:38 +0100 + diff --git a/debian.control b/debian.control new file mode 100644 index 0000000..2c204d5 --- /dev/null +++ b/debian.control @@ -0,0 +1,16 @@ +Source: gptfdisk +Section: Applications/System +Priority: extra +Maintainer: Roderick Smith +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. diff --git a/debian.rules b/debian.rules new file mode 100644 index 0000000..f37d8eb --- /dev/null +++ b/debian.rules @@ -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/ + 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 diff --git a/gptfdisk-0.8.2.tar.gz b/gptfdisk-0.8.2.tar.gz new file mode 100644 index 0000000..d09b388 --- /dev/null +++ b/gptfdisk-0.8.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b1159027ca459661f04bc3bac8e79381895933ee214c4d6dba49b7d27204e5d3 +size 155914 diff --git a/gptfdisk.changes b/gptfdisk.changes new file mode 100644 index 0000000..96075eb --- /dev/null +++ b/gptfdisk.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sun Jan 22 00:00:00 UTC 2012 - rodsmith@rodsbooks.com + +- Created spec file for 0.8.2 release diff --git a/gptfdisk.dsc b/gptfdisk.dsc new file mode 100644 index 0000000..407427d --- /dev/null +++ b/gptfdisk.dsc @@ -0,0 +1,10 @@ +Format: 1.0 +Source: gptfdisk +Version: 0.8.2-1 +Binary: packageName +Maintainer: Roderick Smith +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 diff --git a/gptfdisk.spec b/gptfdisk.spec new file mode 100644 index 0000000..d20bcf7 --- /dev/null +++ b/gptfdisk.spec @@ -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