diff --git a/sagemath.spec b/sagemath.spec index 2ba3cac..6c0dd07 100644 --- a/sagemath.spec +++ b/sagemath.spec @@ -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