# # 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.6 Release: 3.1 Summary: GPT partitioning and MBR repair software License: GPL-2.0 Group: Base/System Url: http://rodsbooks.com/gdisk #DL-URL: http://downloads.sf.net/gptfdisk/gptfdisk-0.8.5.tar.gz Source: %name-%version.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build #BuildRequires: gcc-c++ #BuildRequires: ncurses-devel #BuildRequires: xz #BuildRequires: pkgconfig(icu-io) #BuildRequires: pkgconfig(icu-uc) #BuildRequires: pkgconfig(popt) #BuildRequires: pkgconfig(uuid) Patch1: gptfdisk-0.8.6-convenience-1.patch Obsoletes: gdisk < %version-%release Provides: gdisk = %version-%release BuildArch: i486 %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: 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 %patch1 -p1 %build CFLAGS="%optflags" CXXFLAGS="%optflags" make %{?_smp_mflags} POPT=1 %install POPT=1 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 * Fri Jun 22 2012 jengelh@inai.de - Update to new upstream release 0.8.5 * sgdisk: fix bug that caused truncation of 2+ TiB partitions on 32-bit * added type codes for Midnight BSD - Rip out unused gdisk subpackage * Sat Mar 17 2012 dimstar@opensuse.org - Add gptfdisk-gcc47.patch: Fix build with gcc 4.7. * Sun Jan 22 2012 rodsmith@rodsbooks.com - Created spec file for 0.8.2 release