dd_rescue/dd_rescue.spec
Marcus Meissner dd1ee54342 Accepting request 150905 from home:garloff:branches:Base:System
- Update to dd_rescue-1.31:
  * Some minor output cleanups.
  * Implementation of safe triple overwrite (options -3 and -4) 
    following BSI GSDS M7.15.
- Update to dd_rescue-1.30:
  * Fix issue with double free (1.29)
  * Fix output to stdout ("-")
  * Rationalize messages a bit.
  * Option to init PRNG from file (e.g. -Z /dev/urandom)
  * Option -W to avoid writes (if output block is identical) 
- Update to dd_rescue-1.29:
  * Correctly handle last bytes before EOF when hardbs == softbs.
  * New option -M (dont extend output file).
  * New option -R (repeated output of one block, auto for dev/zero)
  * New options -z x, -Z x to use userspace pseudo RNG to overwrite
    disks / files with random data.

OBS-URL: https://build.opensuse.org/request/show/150905
OBS-URL: https://build.opensuse.org/package/show/Base:System/dd_rescue?expand=0&rev=10
2013-02-04 08:27:12 +00:00

75 lines
2.6 KiB
RPMSpec

#
# spec file for package dd_rescue
#
# Copyright (c) 2013 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/
#
Name: dd_rescue
Version: 1.31
Release: 0
Summary: Data Copying in the Presence of I/O Errors
License: GPL-2.0 or GPL-3.0
Group: System/Base
Url: http://www.garloff.de/kurt/linux/ddrescue/
Source0: http://garloff.de/kurt/linux/ddrescue/%{name}-%{version}.tar.gz
BuildRequires: libfallocate-devel-static
Requires: bc
Recommends: dd_rhelp
# ddrescue was last used in openSUSE 11.4 (version 1.14_0.0.6)
Provides: ddrescue = %{version}
Obsoletes: ddrescue < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
dd_rescue helps when nothing else can: your disk has crashed and you
try to copy it over to another one. While standard Unix tools like cp,
cat, and dd will "abort" on every I/O error, dd_rescue does not.
dd_rescue has many other goodies; optimization by using large blocks
as long as no errors are in sight and falling back to small ones; reverse
direction copy; splice in-kernel zerocopy; O_DIRECT support; preallocation
with fallocate(); random number writing etc.
%prep
%setup -q -n dd_rescue
# Remove build time references so build-compare can do its work
FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M')
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y')
sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/g" dd_rescue.c
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/g" dd_rescue.c
%build
make RPM_OPT_FLAGS="%{optflags}" libfalloc-static LIBDIR=%{_libdir} %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot} INSTALLDIR=%{buildroot}/%{_bindir} \
INSTASROOT= INSTALLFLAGS=
#UsrMerge
mkdir %{buildroot}/bin
ln -sf %{_bindir}/dd_rescue %{buildroot}/bin
#EndUsrMerge
%files
%defattr(-,root,root,-)
%doc COPYING README.dd_rescue
%{_bindir}/dd_rescue
#UsrMerge
/bin/dd_rescue
#EndUsrMerge
%changelog