Name: ddrescue Version: 1.29.1 Release: %autorelease Summary: Data recovery tool trying hard to rescue data in case of read errors License: GPL-3.0-or-later URL: http://www.gnu.org/software/ddrescue/ddrescue.html Source0: http://ftpmirror.gnu.org/ddrescue/ddrescue-%{version}.tar.lz Source1: http://ftpmirror.gnu.org/ddrescue/ddrescue-%{version}.tar.lz.sig BuildRequires: gcc-c++ BuildRequires: make BuildRequires: lzip %description GNU ddrescue is a data recovery tool. It copies data from one file or block device (hard disc, cd-rom, etc) to another, trying hard to rescue data in case of read errors. GNU ddrescue does not truncate the output file if not asked to. So, every time you run it on the same output file, it tries to fill in the gaps. %prep # rpmbuild doesn't support lzip format #setup -q %setup -q -T -c cd .. lzip -d -c %{SOURCE0} > ddrescue-%{version}.tar tar xf ddrescue-%{version}.tar rm ddrescue-%{version}.tar %build # not a real autotools configure script, flags need to be passed specially %configure CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" make %{?_smp_mflags} %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} rm -f %{buildroot}%{_infodir}/dir %check make check %files %doc AUTHORS ChangeLog COPYING NEWS README %{_bindir}/ddrescue %{_bindir}/ddrescuelog %{_mandir}/man1/ddrescue.1* %{_mandir}/man1/ddrescuelog.1* %{_infodir}/%{name}.info* %changelog %autochangelog