File gpart.spec of Package gpart

# spec file for package gpart
# Copyright (c) 2011 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

# norootforbuild

Name:           gpart
License:        GPL-2.0+
Group:          System/Filesystems
AutoReqProv:    on
Version:        0.1h
Release:        627
Summary:        Tool That Can Guess a Lost Partition Table
Source:         %{name}-%{version}.tar.bz2
Patch:          %{name}-%{version}.diff
Patch1:         %{name}-%{version}-array_overflow.diff
Patch2:         %{name}-%{version}-array_overflow2.diff
Patch3:         %{name}-%{version}-kernel_syscall.diff
Patch4:         %{name}-%{version}.log.patch
Patch5:         %{name}-%{version}-glibc_2.7_open.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Gpart is a small tool that tries to guess what partitions are on a PC
type hard disk in case the primary partition table was damaged. Gpart
supports, among others, partitions formatted as ext2, FAT 12/16/32,
ReiserFS, NTFS, and HPFS. Read the file
/usr/share/doc/packages/gpart/README and the gpart man page before
using gpart.


%setup -q

make CC="%{__cc}" CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -DVERSION=\\\"%version\\\"" %{?_smp_mflags}

make prefix=$RPM_BUILD_ROOT/usr install



openSUSE Build Service is sponsored by