File ddrescue.spec of Package ddrescue
Summary: Data recovery tool
Name: ddrescue
Version: 1.11
Release: 1
License: GPL
Group: Applications/System
URL: http://www.gnu.org/software/ddrescue/ddrescue.html
Source: http://savannah.gnu.org/download/ddrescue/ddrescue-%{version}.tar.bz2
#Patch0: %{name}-1.8-headers.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
PreReq: %install_info_prereq
BuildRequires: gcc-c++
%if %{suse_version} > 1020
BuildRequires: licenses
Requires: licenses
%endif
%description
GNU ddrescue is a data recovery tool. It copies data from one file or block
device (hard disc, cdrom, etc) to another, trying hard to rescue data in
case of read errors.
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.
The basic operation of ddrescue is fully automatic. That is, you don't have
to wait for an error, stop the program, read the log, run it in reverse mode,
etc.
%prep
%setup -q
#%patch0 -p0
%build
%configure CXXFLAGS="$CXXFLAGS -W" CFLAGS="$CFLAGS -W"
%{__make} %{?_smp_mflags}
%check
%{__make} check
%install
%{__make} install DESTDIR="%{buildroot}"
%{__install} -Dp -m0644 doc/ddrescue.1 %{buildroot}%{_mandir}/man1/ddrescue.1
gzip -v %{buildroot}%{_mandir}/man1/ddrescue.1
gzip -v %{buildroot}%{_infodir}/ddrescue.info
test -e COPYING.orig || cp COPYING COPYING.orig
tr -d '\r' < COPYING.orig > COPYING
%if %{suse_version} > 1020
md5=$(md5sum COPYING | %__sed 's/ .*//')
if test -f "/usr/share/doc/licenses/md5/${md5}"; then
ln -sf "/usr/share/doc/licenses/md5/${md5}" COPYING
fi
%endif
%post
%install_info --info-dir=%{_infodir} %{_infodir}/ddrescue.info.gz
%preun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/ddrescue.info.gz
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, 0755)
%doc AUTHORS ChangeLog COPYING NEWS README
%doc %{_infodir}/ddrescue.info.*
%doc %{_mandir}/man1/ddrescue.1*
%{_bindir}/ddrescue
%changelog
* Thu Oct 22 2009 David Haller <dnh@opensuse.org> 1.11-1
- Updated to release 1.11
* Tue Feb 26 2008 Dag Wieers <dag@wieers.com> - 1.8-1 - 6087+/dag
- Updated to release 1.8.
* Mon Jan 7 2008 Dag Wieers <dag@wieers.com> - 1.7-1
- Updated to release 1.7.
* Fri Nov 16 2007 Dag Wieers <dag@wieers.com> - 1.6-1
- Updated to release 1.6.
* Mon Jul 2 2007 Dag Wieers <dag@wieers.com> - 1.5-1
- Updated to release 1.5.
* Wed Jun 20 2007 Dag Wieers <dag@wieers.com> - 1.4-1
- Updated to release 1.4.
* Tue Dec 19 2006 Dag Wieers <dag@wieers.com> - 1.3-1
- Updated to release 1.3.
* Thu Dec 8 2005 Dag Wieers <dag@wieers.com> - 1.0-2
- Added epoch to override Fedora Extras ddrescue (which really is dd_rescue).
* Fri Jul 15 2005 Dag Wieers <dag@wieers.com> - 1.0-1
- Initial package. (using DAR)