mirror of
https://src.fedoraproject.org/rpms/sagemath.git
synced 2025-04-22 19:55:54 -04:00
Try hard to not reference buildroot
This commit is contained in:
parent
f6cb1ebaaa
commit
379c28fb7d
1 changed files with 6 additions and 0 deletions
|
@ -731,6 +731,7 @@ export SAGE_ROOT=%{buildroot}%{SAGE_ROOT}
|
||||||
export SAGE_LOCAL=%{buildroot}%{SAGE_LOCAL}
|
export SAGE_LOCAL=%{buildroot}%{SAGE_LOCAL}
|
||||||
# Avoid buildroot in gcc command line (use _builddir instead)
|
# Avoid buildroot in gcc command line (use _builddir instead)
|
||||||
export SAGE_SRC="$PWD/src"
|
export SAGE_SRC="$PWD/src"
|
||||||
|
export SAGE_INC=%{_includedir}
|
||||||
export SAGE_FORTRAN=%{_bindir}/gfortran
|
export SAGE_FORTRAN=%{_bindir}/gfortran
|
||||||
export SAGE_FORTRAN_LIB=`gfortran --print-file-name=libgfortran.so`
|
export SAGE_FORTRAN_LIB=`gfortran --print-file-name=libgfortran.so`
|
||||||
export DESTDIR=%{buildroot}
|
export DESTDIR=%{buildroot}
|
||||||
|
@ -839,6 +840,7 @@ export SAGE_ROOT=%{buildroot}%{SAGE_ROOT}
|
||||||
export SAGE_LOCAL=%{buildroot}%{SAGE_LOCAL}
|
export SAGE_LOCAL=%{buildroot}%{SAGE_LOCAL}
|
||||||
# Avoid buildroot in gcc command line (use _builddir instead)
|
# Avoid buildroot in gcc command line (use _builddir instead)
|
||||||
export SAGE_SRC="$PWD/src"
|
export SAGE_SRC="$PWD/src"
|
||||||
|
export SAGE_INC=%{_includedir}
|
||||||
#export SAGE_SRC=#%#{buildroot}#%#{SAGE_SRC}
|
#export SAGE_SRC=#%#{buildroot}#%#{SAGE_SRC}
|
||||||
export SAGE_SHARE=%{buildroot}%{SAGE_SHARE}
|
export SAGE_SHARE=%{buildroot}%{SAGE_SHARE}
|
||||||
export SAGE_ETC=%{buildroot}%{SAGE_ETC}
|
export SAGE_ETC=%{buildroot}%{SAGE_ETC}
|
||||||
|
@ -1318,6 +1320,10 @@ chmod +x %{buildroot}%{SAGE_LOCAL}/bin/sage-list-packages
|
||||||
# last install command
|
# last install command
|
||||||
rm -fr $DOT_SAGE
|
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
|
%post core
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue