3701ac4
Name:           ddrescue
a6c144c
Version:        1.13
a6c144c
Release:        1%{?dist}
3701ac4
Summary:        Data recovery tool trying hard to rescue data in case of read errors
3701ac4
Group:          Applications/System
78685f1
License:        GPLv3+
3701ac4
URL:            http://www.gnu.org/software/ddrescue/ddrescue.html
a6c144c
Source0:        http://ftp.gnu.org/gnu/ddrescue/ddrescue-%{version}.tar.gz
a6c144c
# Patch correct location of binary to run tests
a6c144c
Patch0:         ddrescue-1.13-testsuite.patch
3701ac4
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
a6c144c
Requires(post): info
a6c144c
Requires(preun): info
3701ac4
3701ac4
%description
3701ac4
GNU ddrescue is a data recovery tool. It copies data from one file or block
a6c144c
device (hard disc, cd-rom, etc) to another, trying hard to rescue data in 
3701ac4
case of read errors. GNU ddrescue does not truncate the output file if not
3701ac4
asked to. So, every time you run it on the same output file, it tries to 
3701ac4
fill in the gaps.
3701ac4
3701ac4
%prep
3701ac4
%setup -q
a6c144c
%patch0 -p1 -b .test
3701ac4
3701ac4
%build
490ab5c
# not a real autotools configure script, flags need to be passed specially
490ab5c
%configure CFLAGS="%{optflags}" CXXFLAGS="%{optflags}"
3701ac4
make %{?_smp_mflags}
3701ac4
3701ac4
%install
3701ac4
rm -rf %{buildroot}
3701ac4
make install DESTDIR=%{buildroot}
71b2d5e
rm -f %{buildroot}%{_infodir}/dir
3701ac4
3701ac4
%clean
3701ac4
rm -rf %{buildroot}
3701ac4
a6c144c
%check
a6c144c
cd testsuite
a6c144c
./check.sh
3701ac4
3701ac4
%post
3701ac4
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
3701ac4
3701ac4
%preun
3701ac4
if [ $1 = 0 ]; then
3701ac4
    /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
3701ac4
fi
3701ac4
3701ac4
%files
3701ac4
%defattr(-,root,root,-)
3701ac4
%doc AUTHORS ChangeLog COPYING NEWS README
3701ac4
%{_bindir}/ddrescue
a6c144c
%{_mandir}/man1/ddrescue.1*
3701ac4
%{_infodir}/%{name}.info*
3701ac4
3701ac4
%changelog
a6c144c
* Thu Nov 18 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.13-1
a6c144c
- Update to 1.13.
a6c144c
a871a97
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8-6
a871a97
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a871a97
490ab5c
* Wed Apr 22 2009 Ville Skyttä <ville.skytta@iki.fi> - 1.8-5
490ab5c
- Build with $RPM_OPT_FLAGS (#497152).
490ab5c
f0938d3
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8-4
f0938d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f0938d3
78685f1
* Wed Jul 16 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.8-3
78685f1
- fix license tag
78685f1
71b2d5e
* Mon Feb 25 2008 Andreas Thienemann <athienem@redhat.com> - 1.8-2
71b2d5e
- Fix info-page installation
71b2d5e
3701ac4
* Mon Feb 25 2008 Andreas Thienemann <athienem@redhat.com> - 1.8-1
3701ac4
- Initial fedora release of GNU ddrescue