2010-11-05 16:21:02 +00:00
|
|
|
#
|
2011-09-05 14:26:36 +00:00
|
|
|
# spec file for package dd_rescue
|
2010-11-05 16:21:02 +00:00
|
|
|
#
|
2013-02-04 08:27:12 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-11-05 16:21:02 +00:00
|
|
|
#
|
2010-11-05 16:21:08 +00:00
|
|
|
# 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.
|
|
|
|
|
2010-11-05 16:21:02 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-02-04 08:27:12 +00:00
|
|
|
|
2010-11-05 16:21:02 +00:00
|
|
|
Name: dd_rescue
|
2013-08-02 21:12:38 +00:00
|
|
|
Version: 1.38
|
2012-03-13 12:08:00 +00:00
|
|
|
Release: 0
|
2010-11-05 16:21:02 +00:00
|
|
|
Summary: Data Copying in the Presence of I/O Errors
|
2012-03-13 12:08:00 +00:00
|
|
|
License: GPL-2.0 or GPL-3.0
|
2011-09-05 14:26:36 +00:00
|
|
|
Group: System/Base
|
2013-02-04 08:27:12 +00:00
|
|
|
Url: http://www.garloff.de/kurt/linux/ddrescue/
|
2012-05-26 19:15:42 +00:00
|
|
|
Source0: http://garloff.de/kurt/linux/ddrescue/%{name}-%{version}.tar.gz
|
2012-03-13 12:08:00 +00:00
|
|
|
BuildRequires: libfallocate-devel-static
|
2011-09-05 14:26:36 +00:00
|
|
|
Requires: bc
|
2012-03-13 12:08:00 +00:00
|
|
|
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
|
2011-09-05 14:26:36 +00:00
|
|
|
|
2010-11-05 16:21:02 +00:00
|
|
|
%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,
|
2013-02-04 08:27:12 +00:00
|
|
|
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.
|
2010-11-05 16:21:02 +00:00
|
|
|
|
|
|
|
%prep
|
2012-03-13 12:08:00 +00:00
|
|
|
%setup -q -n dd_rescue
|
2011-09-05 14:26:36 +00:00
|
|
|
|
|
|
|
# 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
|
2010-11-05 16:21:08 +00:00
|
|
|
|
2010-11-05 16:21:02 +00:00
|
|
|
%build
|
2011-09-05 14:26:36 +00:00
|
|
|
make RPM_OPT_FLAGS="%{optflags}" libfalloc-static LIBDIR=%{_libdir} %{?_smp_mflags}
|
2010-11-05 16:21:02 +00:00
|
|
|
|
|
|
|
%install
|
2012-02-08 16:35:06 +00:00
|
|
|
make install DESTDIR=%{buildroot} INSTALLDIR=%{buildroot}/%{_bindir} \
|
|
|
|
INSTASROOT= INSTALLFLAGS=
|
2012-03-13 12:08:00 +00:00
|
|
|
|
2012-02-08 16:35:06 +00:00
|
|
|
#UsrMerge
|
|
|
|
mkdir %{buildroot}/bin
|
|
|
|
ln -sf %{_bindir}/dd_rescue %{buildroot}/bin
|
|
|
|
#EndUsrMerge
|
2011-10-05 12:36:13 +00:00
|
|
|
|
2013-08-02 21:12:38 +00:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
2010-11-05 16:21:02 +00:00
|
|
|
%files
|
2011-09-05 14:26:36 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING README.dd_rescue
|
2012-02-08 16:35:06 +00:00
|
|
|
%{_bindir}/dd_rescue
|
|
|
|
#UsrMerge
|
2010-11-05 16:21:02 +00:00
|
|
|
/bin/dd_rescue
|
2012-02-08 16:35:06 +00:00
|
|
|
#EndUsrMerge
|
2013-05-27 08:47:33 +00:00
|
|
|
%doc %{_mandir}/man1/dd_rescue.1%{ext_man}
|
2010-11-05 16:21:02 +00:00
|
|
|
|
|
|
|
%changelog
|