e17b220
Summary: A program for recovering corrupt partition tables
e17b220
Name:    gpart
a21f596
Version: 0.1h
a35ddad
Release: 13%{?dist}
e17b220
License: GPLv2+
e17b220
Group:   Applications/System
e17b220
URL:     http://www.stud.uni-hannover.de/user/76201/gpart/
e17b220
Source0: http://www.stud.uni-hannover.de/user/76201/%{name}/%{name}-%{version}.tar.gz
e17b220
e17b220
Patch0: %{name}-0.1h-varname.patch
e17b220
Patch1: %{name}-0.1h-cflags.patch
e17b220
Patch2: %{name}-0.1h-errno.patch
e17b220
Patch3: %{name}-0.1h-syscall.patch
e17b220
Patch4: %{name}-0.1h-largefile.patch
e17b220
Patch5: %{name}-0.1h-makefile.patch
a21f596
07ce6d6
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
e17b220
BuildRequires: glibc-kernheaders
e17b220
a35ddad
ExclusiveArch: %{ix86}
a21f596
a21f596
%description
a21f596
Gpart is a small tool which tries to guess what partitions are on a PC
a21f596
type harddisk in case the primary partition table was damaged.
a21f596
a21f596
%prep
a21f596
%setup -q
2b68b13
%patch0 -p1 -b .varname
2b68b13
%patch1 -p1 -b .cflags
2b68b13
%patch2 -p1 -b .errno
2b68b13
%patch3 -p1 -b .syscall
2b68b13
%patch4 -p1 -b .largefile
07ce6d6
%patch5 -p1 -b .makefile
a21f596
a21f596
%build
a35ddad
make %{?_smp_mflags}
a21f596
a21f596
%install
a35ddad
rm -rf %{buildroot}
a35ddad
mkdir -p %{buildroot}%{_bindir}
a35ddad
mkdir -p %{buildroot}%{_mandir}/man8
a35ddad
install -m 0755 src/%{name} %{buildroot}%{_bindir}/%{name}
a35ddad
install -m 0644 man/%{name}.8 %{buildroot}%{_mandir}/man8/%{name}.8
a21f596
a21f596
%clean
a35ddad
rm -rf %{buildroot}
a21f596
a21f596
%files
e17b220
%defattr(-,root,root,-)
a21f596
%doc COPYING Changes LSM README
e17b220
%{_bindir}/%{name}
a35ddad
%{_mandir}/man8/%{name}.8*
a21f596
a21f596
%changelog
a35ddad
* Fri May 21 2010 David Cantrell <dcantrell@redhat.com> - 0.1h-13
a35ddad
- Spec file cleanups to comply with current packaging policies
a35ddad
e9d11da
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1h-12
e9d11da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e9d11da
b6b2874
* Sat Feb 28 2009 manuel "lonely wolf" wolfshant <wolfy@fedoraproject.org> - 0.1h-11
b6b2874
- replacing %%exclusive arch i386 with %%{ix86}
b6b2874
faa875c
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1h-10
faa875c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
faa875c
a02e4ba
* Fri Feb 08 2008 David Cantrell <dcantrell@redhat.com> - 0.1h-9
a02e4ba
- Rebuild for gcc-4.3
a02e4ba
e17b220
* Sat Dec 01 2007 David Cantrell <dcantrell@redhat.com> - 0.1h-8
e17b220
- Merge review (#225853)
e17b220
7a640c2
* Tue Aug 21 2007 David Cantrell <dcantrell@redhat.com> - 0.1h-7
7a640c2
- Rebuild
7a640c2
ce67629
* Thu Aug 02 2007 David Cantrell <dcantrell@redhat.com> - 0.1h-6
ce67629
- License field updated to GPLv2+
ce67629
07ce6d6
* Sat Feb 03 2007 David Cantrell <dcantrell@redhat.com> - 0.1h-5
07ce6d6
- Fix spec file problems with merge review (#225853)
07ce6d6
2b68b13
* Sun Oct 22 2006 David Cantrell <dcantrell@redhat.com> - 0.1h-4
2b68b13
- Compile with large file support (#211746)
2b68b13
be49cdd
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.1h-3.1
be49cdd
- rebuild
be49cdd
61412dd
* Tue Jun 06 2006 Chris Lumens <clumens@redhat.com> 0.1h-3
61412dd
- Fix building on i386 by using the right syscall stuff.
61412dd
3e604a8
* Tue Jun 06 2006 Jesse Keating <jkeating@redhat.com> - 0.1h-2
3e604a8
- Added missing BR glibc-kernheaders
3e604a8
bba41bf
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.1h-1.2
bba41bf
- rebuilt for new gcc4.1 snapshot and glibc changes
bba41bf
91a3756
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
91a3756
- rebuilt
91a3756
2b3d14a
* Wed Jun 10 2005 Chris Lumens <clumens@redhat.com> 0.1h-1
a21f596
- Initial build.