2011-04-06 12:51:45 +02:00
|
|
|
#
|
2011-04-06 12:51:56 +02:00
|
|
|
# spec file for package gnu_ddrescue
|
|
|
|
#
|
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2011-04-06 12:51:45 +02:00
|
|
|
#
|
2011-04-06 12:51:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: gnu_ddrescue
|
|
|
|
Version: 1.14
|
|
|
|
Release: 1
|
|
|
|
Group: System/Base
|
|
|
|
Summary: Data Copying in the Presence of I/O Errors
|
2011-12-06 18:15:06 +01:00
|
|
|
License: GPL-3.0
|
2011-04-06 12:51:56 +02:00
|
|
|
Url: http://www.gnu.org/software/ddrescue/ddrescue.html
|
2011-04-06 12:51:45 +02:00
|
|
|
|
|
|
|
#Source: ftp://ftp.informatik.rwth-aachen.de/pub/gnu/ddrescue/ddrescue-1.14.tar.gz
|
2011-04-06 12:51:56 +02:00
|
|
|
Source: ddrescue-%version.tar.xz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: gcc-c++ xz
|
|
|
|
PreReq: %install_info_prereq
|
2011-04-06 12:51:45 +02:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
It is more memory and time efficient than dd_rescue+dd_rhelp on disks
|
|
|
|
with more than a few hundred bad sectors.
|
|
|
|
|
|
|
|
|
|
|
|
Author(s):
|
|
|
|
----------
|
|
|
|
Antonio Diaz Diaz
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -qn ddrescue-%version
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR="%buildroot";
|
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --info-dir=%_infodir %_infodir/ddrescue.info.gz
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%install_info_delete --info-dir=%_infodir %_infodir/ddrescue.info.gz
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_bindir/*
|
|
|
|
%_mandir/man*/*
|
|
|
|
%doc %_infodir/ddrescue*
|
|
|
|
|
|
|
|
%changelog
|