[gsl/temp_odecrash] run "make check" at build time

Frantisek Kluknavsky fkluknav at fedoraproject.org
Tue Jan 8 09:03:26 UTC 2013


commit c7de40824e8319f3c9b6bb14ced8bc5e6243d0da
Author: Frantisek Kluknavsky <fkluknav at redhat.com>
Date:   Tue Jan 8 10:02:50 2013 +0100

    run "make check" at build time

 gsl.spec |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gsl.spec b/gsl.spec
index aac5fc6..5a21c2c 100644
--- a/gsl.spec
+++ b/gsl.spec
@@ -42,10 +42,12 @@ touch -r THANKS THANKS.aux
 mv THANKS.aux THANKS
 
 %build
-%configure CFLAGS="$CFLAGS -fgnu89-inline"
+%configure CFLAGS="$CFLAGS -fgnu89-inline -ffp-contract=off"
 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
 make %{?_smp_mflags} LDFLAGS="$LDFLAGS -L%{_libdir}/atlas/"
+#export LD_LIBRARY_PATH=%{_sourcedir}/%{name}-%{version}/.libs/:%{_sourcedir}/%{name}-%{version}/cblas/.libs/:$LD_LIBRARY_PATH
+#make check
 
 %install
 make install DESTDIR=$RPM_BUILD_ROOT install='install -p'
@@ -55,6 +57,8 @@ rm -rf $RPM_BUILD_ROOT%{_infodir}/dir
 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 # remove static libraries
 rm -r $RPM_BUILD_ROOT%{_libdir}/*.a
+export LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}:$LD_LIBRARY_PATH
+make check
 
 %post -p /sbin/ldconfig
 


More information about the scm-commits mailing list