File gpart.spec of Package gpart
#
# spec file for package gpart
#
# Copyright (c) 2013 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: gpart
Version: 0.1h
Release: 0
Summary: Tool That Can Guess a Lost Partition Table
License: GPL-2.0+
Group: System/Filesystems
Url: http://www.brzitwa.de/mb/gpart/index.html
Source: http://fossies.org/linux/misc/old/%{name}-%{version}.tar.gz
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
%description
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.
Authors:
--------
mb@ichabod.han.de
%prep
%setup -q
%patch
%patch1
%patch2
%patch3
%patch4
%patch5
%build
make CC="%{__cc}" CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -DVERSION=\\\"%version\\\"" %{?_smp_mflags}
%install
make prefix=$RPM_BUILD_ROOT/usr install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc COPYING Changes INSTALL LSM README
/usr/bin/gpart
/usr/share/man/man8/gpart.8.gz
%changelog