[dd_rescue] - fix build on non-x86 64-bit arches

Dan Horák sharkcz at fedoraproject.org
Wed Aug 27 17:08:39 UTC 2014


commit eecda0b36774896070d36bb11367807492dab4a8
Author: Dan Horák <dan at danny.cz>
Date:   Wed Aug 27 19:08:40 2014 +0200

    - fix build on non-x86 64-bit arches

 dd_rescue.spec |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/dd_rescue.spec b/dd_rescue.spec
index 8b6caa8..7edff9f 100644
--- a/dd_rescue.spec
+++ b/dd_rescue.spec
@@ -2,7 +2,7 @@
 
 Name:           dd_rescue
 Version:        1.45
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Fault tolerant "dd" utility for rescuing data from bad media
 Group:          Applications/System
 # No version specified
@@ -27,16 +27,17 @@ recovery.
 %prep
 %setup -q -n %{name}
 %setup -q -n %{name} -a 1 -D -T
+autoreconf -vif
 
 %build
-make RPM_OPT_FLAGS="%{optflags}" %{?_smp_mflags} LIBDIR=%{_libdir}
+make RPM_OPT_FLAGS="%{optflags}" %{?_smp_mflags} LIB=%{_lib}
 cp -p README.dd_rescue README
 cp -p dd_rhelp-%{rhelp_version}/README README.dd_rhelp
 cp -p dd_rhelp-%{rhelp_version}/FAQ FAQ.dd_rhelp
 
 %install
 rm -rf %{buildroot}
-make install DESTDIR=%{buildroot} INSTALLDIR=%{buildroot}/%{_bindir} INSTASROOT="" INSTALLFLAGS="" LIBDIR=%{_libdir}
+make install DESTDIR=%{buildroot} INSTALLDIR=%{buildroot}/%{_bindir} INSTASROOT="" INSTALLFLAGS="" LIB=%{_lib}
 install -D -m 755 dd_rhelp-%{rhelp_version}/dd_rhelp %{buildroot}%{_bindir}/dd_rhelp
 
 %clean
@@ -55,6 +56,9 @@ rm -rf %{buildroot}
 %{_libdir}/libddr_null.so
 
 %changelog
+* Wed Aug 27 2014 Dan Horák <dan[at]danny.cz> - 1.45-4
+- fix build on non-x86 64-bit arches
+
 * Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.45-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 


More information about the scm-commits mailing list