Jan Engelhardt
e3b1fd9747
- Update to 1.20 OBS-URL: https://build.opensuse.org/request/show/330568 OBS-URL: https://build.opensuse.org/package/show/Base:System/gnu_ddrescue?expand=0&rev=15
68 lines
2.0 KiB
RPMSpec
68 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package gnu_ddrescue
|
|
#
|
|
# Copyright (c) 2015 SUSE LINUX 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/
|
|
#
|
|
|
|
|
|
Name: gnu_ddrescue
|
|
Version: 1.20
|
|
Release: 0
|
|
Summary: Data Copying in the Presence of I/O Errors
|
|
License: GPL-2.0+
|
|
Group: System/Base
|
|
Url: http://gnu.org/software/ddrescue/ddrescue.html
|
|
|
|
Source: http://ftp.gnu.org/gnu/ddrescue/ddrescue-%version.tar.lz
|
|
Source2: http://ftp.gnu.org/gnu/ddrescue/ddrescue-%version.tar.lz.sig
|
|
Source3: %name.keyring
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: lzip
|
|
PreReq: %install_info_prereq
|
|
|
|
%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.
|
|
|
|
%prep
|
|
%setup -qn ddrescue-%version
|
|
|
|
%build
|
|
# not autoconf, but at least it behaves (nearly) like it.
|
|
%configure --enable-linux CFLAGS="%optflags" CXXFLAGS="%optflags"
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make install DESTDIR="%buildroot";
|
|
|
|
%post
|
|
%install_info --info-dir=%_infodir %_infodir/ddrescue.info.gz
|
|
|
|
%preun
|
|
%install_info_delete --info-dir=%_infodir %_infodir/ddrescue.info.gz
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%_bindir/*
|
|
%_mandir/man*/*
|
|
%doc %_infodir/ddrescue*
|
|
%doc COPYING NEWS README
|
|
|
|
%changelog
|