e17b220
Summary: A program for recovering corrupt partition tables
e17b220
Name:    gpart
a21f596
Version: 0.1h
David Cantrell 3e5f6d2
Release: 20%{?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
David Cantrell 38d6c45
Patch6: %{name}-0.1h-x86_64.patch
David Cantrell 3e5f6d2
Patch7: %{name}-0.1h-O_CREAT.patch
a21f596
07ce6d6
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
e17b220
BuildRequires: glibc-kernheaders
e17b220
David Cantrell 6991b81
ExclusiveArch: %{ix86} x86_64
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
David Cantrell 38d6c45
%patch6 -p1 -b .x86_64
David Cantrell 3e5f6d2
%patch7 -p1 -b .O_CREAT
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
David Cantrell 3e5f6d2
* Wed Aug 14 2013 David Cantrell <dcantrell@redhat.com> - 0.1h-20
David Cantrell 3e5f6d2
- Build gpart with RPM_OPT_FLAGS and fix O_CREAT usage in
David Cantrell 3e5f6d2
  make_mbr_backup() function in gpart.c (#977147)
David Cantrell 3e5f6d2
fae067c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1h-19
fae067c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
fae067c
David Cantrell 6991b81
* Mon Jun 17 2013 David Cantrell <dcantrell@redhat.com> - 0.1h-18
David Cantrell 6991b81
- Add x86_64 to the ExclusiveArch listing
David Cantrell 38d6c45
- Patch gm_ntfs.h so it works on x86_64
David Cantrell 6991b81
0ac84c4
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1h-17
0ac84c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0ac84c4
8958723
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1h-16
8958723
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8958723
b20dd59
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1h-15
b20dd59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b20dd59
a035956
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1h-14
a035956
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a035956
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
7136231
* Fri Jun 10 2005 Chris Lumens <clumens@redhat.com> 0.1h-1
a21f596
- Initial build.