Summary: A program for recovering corrupt partition tables
Name: gpart
Version: 0.1h
Release: 10%{?dist}
License: GPLv2+
Group: Applications/System
URL: http://www.stud.uni-hannover.de/user/76201/gpart/
Source0: http://www.stud.uni-hannover.de/user/76201/%{name}/%{name}-%{version}.tar.gz
Patch0: %{name}-0.1h-varname.patch
Patch1: %{name}-0.1h-cflags.patch
Patch2: %{name}-0.1h-errno.patch
Patch3: %{name}-0.1h-syscall.patch
Patch4: %{name}-0.1h-largefile.patch
Patch5: %{name}-0.1h-makefile.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: glibc-kernheaders
ExclusiveArch: i386
%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
%patch5 -p1 -b .makefile
%build
%{__make} %{?_smp_mflags}
%install
%{__rm} -rf %{buildroot}
%{__mkdir} -p %{buildroot}%{_bindir}
%{__mkdir} -p %{buildroot}%{_mandir}/man8
%{__install} -m 0755 src/%{name} %{buildroot}%{_bindir}/%{name}
%{__install} -m 0644 man/%{name}.8 %{buildroot}%{_mandir}/man8/%{name}.8
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc COPYING Changes LSM README
%{_bindir}/%{name}
%{_mandir}/man8/%{name}.8.gz
%changelog
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1h-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Fri Feb 08 2008 David Cantrell <dcantrell@redhat.com> - 0.1h-9
- Rebuild for gcc-4.3
* Sat Dec 01 2007 David Cantrell <dcantrell@redhat.com> - 0.1h-8
- Merge review (#225853)
* Tue Aug 21 2007 David Cantrell <dcantrell@redhat.com> - 0.1h-7
- Rebuild
* Thu Aug 02 2007 David Cantrell <dcantrell@redhat.com> - 0.1h-6
- License field updated to GPLv2+
* Sat Feb 03 2007 David Cantrell <dcantrell@redhat.com> - 0.1h-5
- Fix spec file problems with merge review (#225853)
* 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.