2010-11-05 16:21:02 +00:00
|
|
|
#
|
2010-11-05 16:21:08 +00:00
|
|
|
# spec file for package dd_rescue (Version 1.23_0.0.6)
|
2010-11-05 16:21:02 +00:00
|
|
|
#
|
2010-11-05 16:21:08 +00:00
|
|
|
# Copyright (c) 2010 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2010-11-05 16:21:08 +00:00
|
|
|
|
2010-11-05 16:21:02 +00:00
|
|
|
Name: dd_rescue
|
|
|
|
%define ddrescuever 1.23
|
|
|
|
%define ddrhelpver 0.0.6
|
|
|
|
Version: 1.23_0.0.6
|
|
|
|
Release: 1
|
|
|
|
License: GNU General Public License (GPL) v2 or v3
|
|
|
|
Group: System/Base
|
|
|
|
#Provides: ddrescue = 1.23
|
|
|
|
#Obsoletes: ddrescue < 1.15
|
2010-11-05 16:21:08 +00:00
|
|
|
AutoReqProv: on
|
2010-11-05 16:21:02 +00:00
|
|
|
Requires: bc
|
2010-11-05 16:21:08 +00:00
|
|
|
BuildRequires: libfallocate-devel-static
|
2010-11-05 16:21:02 +00:00
|
|
|
Summary: Data Copying in the Presence of I/O Errors
|
|
|
|
Source: http://www.garloff.de/kurt/linux/ddrescue/dd_rescue-%{ddrescuever}.tar.gz
|
|
|
|
Source1: dd_rhelp-%{ddrhelpver}.tar.gz
|
|
|
|
#Patch: dd_rescue-%{version}.diff
|
|
|
|
Patch2: dd_rhelp_src.diff
|
|
|
|
Patch3: ddresc-112.diff
|
2010-11-05 16:21:08 +00:00
|
|
|
Patch4: dd_rhelp_EOF.diff
|
|
|
|
Patch5: dd_rhelp_Summary.diff
|
2010-11-05 16:21:02 +00:00
|
|
|
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 wail "abort" on every I/O error, dd_rescue does not.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Kurt Garloff <garloff@suse.de>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -n dd_rescue -b1
|
|
|
|
#%patch -p1
|
|
|
|
cd ../dd_rhelp-%{ddrhelpver}
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
for name in FAQ NEWS README THANKS TODO; do
|
|
|
|
cp -p $name ${name}.dd_rhelp
|
|
|
|
done
|
2010-11-05 16:21:08 +00:00
|
|
|
|
2010-11-05 16:21:02 +00:00
|
|
|
%build
|
|
|
|
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" libfalloc-static LIBDIR=%{_libdir}
|
|
|
|
cd ../dd_rhelp-%{ddrhelpver}
|
|
|
|
# Ubuntu needs this
|
|
|
|
%if 0%{?xubuntu_version} != 0
|
|
|
|
automake --add-missing
|
|
|
|
%endif
|
|
|
|
autoreconf
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT INSTASROOT= INSTALLFLAGS=
|
|
|
|
cd ../dd_rhelp-%{ddrhelpver}
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT bindir=/bin
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/bin/dd_rescue
|
|
|
|
/bin/dd_rhelp
|
|
|
|
%doc README.dd_rescue
|
|
|
|
%doc ../dd_rhelp-%{ddrhelpver}/*.dd_rhelp
|
|
|
|
%doc ../dd_rhelp-%{ddrhelpver}/doc
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
rm -rf $RPM_BUILD_DIR/dd_rescue
|
|
|
|
|
|
|
|
%changelog
|