File dd_rhelp.spec of Package dd_rhelp

# spec file for package dd_rhelp
# Copyright (c) 2020 SUSE LLC
# 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

Name:           dd_rhelp
Version:        0.3.0
Release:        0
Summary:        Bash Helper Script That Handles dd_rescue
License:        GPL-2.0-or-later
Group:          System/Base
Patch1:         dd_rhelp_EOF.diff
Patch2:         dd_rhelp_Summary.diff
Patch3:         dd_rhelp.test.diff
Patch4:         dd_r_version.diff
BuildRequires:  bc
BuildRequires:  dd_rescue
# dd_rhelp (version 0.1.2) was splitted from dd_rescue after openSUSE 12.1 (at dd_rescue version 1.25)
Requires:       dd_rescue > 1.24_0.1.2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

dd_rhelp is a bash helper script that handles dd_rescue. dd_rescue roughly acts
as the dd linux command with the caracteristic to NOT stop when it falls on

dd_rhelp intelligently controls dd_rescue to first copy all blocks from areas
that work and only then tries to approach the bad spots from both sides.

%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1


mkdir -p %{buildroot}%{_bindir}
install -Dpm 0755 dd_rhelp %{buildroot}%{_bindir}

%if !0%{?usrmerged}
mkdir %{buildroot}/bin
ln -sf %{_bindir}/dd_rhelp %{buildroot}/bin


%doc COPYING ChangeLog FAQ NEWS README THANKS TODO doc/example.txt
%if !0%{?usrmerged}

openSUSE Build Service is sponsored by