Blob Blame History Raw
Summary:  A program for recovering corrupt partition tables.
Name: gpart
Version: 0.1h
Release: 4%{?dist}
ExclusiveArch: i386
Source: http://www.stud.uni-hannover.de/user/76201/%{name}/%{name}-%{version}.tar.gz
Patch0: gpart-0.1h-varname.patch
Patch1: gpart-0.1h-cflags.patch
Patch2: gpart-0.1h-errno.patch
Patch3: gpart-0.1h-syscall.patch
Patch4: gpart-0.1h-largefile.patch
BuildRequires: glibc-kernheaders

Buildroot: %{_tmppath}/%{name}-root
License: GPL
Group: Applications/System

%description
Gpart is a small tool which tries to guess what partitions are on a PC
type harddisk in case the primary partition table was damaged.

%prep
%setup -q
%patch0 -p1 -b .varname
%patch1 -p1 -b .cflags
%patch2 -p1 -b .errno
%patch3 -p1 -b .syscall
%patch4 -p1 -b .largefile

%build
make

%install
rm -rf $RPM_BUILD_ROOT
make bindir=${RPM_BUILD_ROOT}/usr/bin mandir=${RPM_BUILD_ROOT}/usr/share/man install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING Changes LSM README
/usr/bin/gpart
%{_mandir}/*/*

%changelog
* Sun Oct 22 2006 David Cantrell <dcantrell@redhat.com> - 0.1h-4
- Compile with large file support (#211746)

* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.1h-3.1
- rebuild

* Tue Jun 06 2006 Chris Lumens <clumens@redhat.com> 0.1h-3
- Fix building on i386 by using the right syscall stuff.

* Tue Jun 06 2006 Jesse Keating <jkeating@redhat.com> - 0.1h-2
- Added missing BR glibc-kernheaders

* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.1h-1.2
- rebuilt for new gcc4.1 snapshot and glibc changes

* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
- rebuilt

* Wed Jun 10 2005 Chris Lumens <clumens@redhat.com> 0.1h-1
- Initial build.