Jan Engelhardt 2019-03-08 21:00:41 +00:00 committed by Git OBS Bridge
parent 10cbedf31f
commit e2ef948910

View File

@ -23,13 +23,13 @@ Summary: Data Copying in the Presence of I/O Errors
License: GPL-2.0-or-later License: GPL-2.0-or-later
Group: System/Base Group: System/Base
URL: http://gnu.org/software/ddrescue/ddrescue.html URL: http://gnu.org/software/ddrescue/ddrescue.html
Source: http://ftp.gnu.org/gnu/ddrescue/ddrescue-%{version}.tar.lz Source: http://ftp.gnu.org/gnu/ddrescue/ddrescue-%version.tar.lz
Source2: http://ftp.gnu.org/gnu/ddrescue/ddrescue-%{version}.tar.lz.sig Source2: http://ftp.gnu.org/gnu/ddrescue/ddrescue-%version.tar.lz.sig
Source3: %{name}.keyring Source3: %name.keyring
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: lzip BuildRequires: lzip
# FIXME: use proper Requires(pre/post/preun/...) # FIXME: use proper Requires(pre/post/preun/...)
PreReq: %{install_info_prereq} PreReq: %install_info_prereq
%description %description
GNU ddrescue is a data recovery tool. It copies data from one file or GNU ddrescue is a data recovery tool. It copies data from one file or
@ -40,26 +40,26 @@ It is more memory and time efficient than dd_rescue+dd_rhelp on disks
with more than a few hundred bad sectors. with more than a few hundred bad sectors.
%prep %prep
%setup -q -n ddrescue-%{version} %setup -q -n ddrescue-%version
%build %build
# not autoconf, but at least it behaves (nearly) like it. # not autoconf, but at least it behaves (nearly) like it.
%configure --enable-linux CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" %configure --enable-linux CFLAGS="%optflags" CXXFLAGS="%optflags"
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make install DESTDIR="%{buildroot}"; %make_install
%post %post
%install_info --info-dir=%{_infodir} %{_infodir}/ddrescue.info.gz %install_info --info-dir=%_infodir %_infodir/ddrescue.info.gz
%preun %preun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/ddrescue.info.gz %install_info_delete --info-dir=%_infodir %_infodir/ddrescue.info.gz
%files %files
%{_bindir}/* %_bindir/*
%{_mandir}/man*/* %_mandir/man*/*
%{_infodir}/ddrescue* %_infodir/ddrescue*
%license COPYING %license COPYING
%doc NEWS README %doc NEWS README