Accepted submit request 52034 from user coolo OBS-URL: https://build.opensuse.org/request/show/52034 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dd_rescue?expand=0&rev=1
88 lines
2.2 KiB
RPMSpec
88 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package ddrescue (Version 1.23_0.0.6)
|
|
#
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# This file and all modifications and additions to the pristine
|
|
# package are under the same license as the package itself.
|
|
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
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
|
|
Autoreqprov: on
|
|
Requires: bc
|
|
BuildRequires: libfallocate-devel-static
|
|
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
|
|
Patch4: dd_rhelp_EOF.diff
|
|
Patch5: dd_rhelp_Summary.diff
|
|
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
|
|
%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
|
|
* Fri Oct 15 1999 - garloff@suse.de
|
|
- Initial release: 0.98.
|