diff --git a/glpk.spec b/glpk.spec index 18718e8..231446b 100644 --- a/glpk.spec +++ b/glpk.spec @@ -71,6 +71,9 @@ the GLPK (GNU Linear Programming Kit) libraries. %build export LIBS=-ldl %configure +# Die die die, rpath. +sed -i -e 's|hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|' libtool +sed -i -e 's|LD_RUN_PATH||' libtool make %{?_smp_mflags} %install @@ -80,6 +83,7 @@ make install prefix=$RPM_BUILD_ROOT%{_prefix} \ includedir=$RPM_BUILD_ROOT%{_includedir} %check +export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$RPM_BUILD_ROOT%{_libdir}" make check ## Clean up directories that are included in docs rm -Rf examples/{.deps,.libs,Makefile*,glpsol,glpsol.o} doc/*.tex @@ -119,6 +123,7 @@ rm -rf $RPM_BUILD_ROOT * Fri Feb 14 2014 Conrad Meyer - 4.53 - Bump to latest upstream 4.53 - Drop glp_get_it_cnt() patch; now present in glpk.h, glpapi06.c +- Kill rpath * Tue Oct 22 2013 Conrad Meyer - 4.52.1-2 - Add patch to backport glp_get_it_cnt() to 4.52.1 per bug #999609