Try hard to not reference buildroot

This commit is contained in:
pcpa 2016-08-21 19:47:05 -04:00
parent f6cb1ebaaa
commit 379c28fb7d

View file

@ -731,6 +731,7 @@ export SAGE_ROOT=%{buildroot}%{SAGE_ROOT}
export SAGE_LOCAL=%{buildroot}%{SAGE_LOCAL}
# Avoid buildroot in gcc command line (use _builddir instead)
export SAGE_SRC="$PWD/src"
export SAGE_INC=%{_includedir}
export SAGE_FORTRAN=%{_bindir}/gfortran
export SAGE_FORTRAN_LIB=`gfortran --print-file-name=libgfortran.so`
export DESTDIR=%{buildroot}
@ -839,6 +840,7 @@ export SAGE_ROOT=%{buildroot}%{SAGE_ROOT}
export SAGE_LOCAL=%{buildroot}%{SAGE_LOCAL}
# Avoid buildroot in gcc command line (use _builddir instead)
export SAGE_SRC="$PWD/src"
export SAGE_INC=%{_includedir}
#export SAGE_SRC=#%#{buildroot}#%#{SAGE_SRC}
export SAGE_SHARE=%{buildroot}%{SAGE_SHARE}
export SAGE_ETC=%{buildroot}%{SAGE_ETC}
@ -1318,6 +1320,10 @@ chmod +x %{buildroot}%{SAGE_LOCAL}/bin/sage-list-packages
# last install command
rm -fr $DOT_SAGE
# FIXME remove this after first build
# get package built first, then disable it
export QA_SKIP_BUILD_ROOT=1
########################################################################
%post core
/sbin/ldconfig