diff --git a/components/perf-tools/tau/SPECS/tau.spec b/components/perf-tools/tau/SPECS/tau.spec index 81fb2dd220..d9d81f6cb4 100644 --- a/components/perf-tools/tau/SPECS/tau.spec +++ b/components/perf-tools/tau/SPECS/tau.spec @@ -197,8 +197,10 @@ sed -i "s|$TAUROOT|%{install_path}|g" $(egrep -IR "$TAUROOT" %buildroot%{install # fix tau lib arch location sed -i "s|/x86_64/lib|/lib|g" $(egrep -IR "/x86_64/lib" %buildroot%{install_path}|awk -F : '{print $1}') -# replace hard MPI paths with env var +# replace hard paths with env vars sed -i "s|$MPI_DIR|\$\{MPI_DIR\}|g" $(egrep -IR "$MPI_DIR" %buildroot%{install_path}|awk -F : '{print $1}') +sed -i "s|$PAPI_DIR|\$\{PAPI_DIR\}|g" $(egrep -IR "$PAPI_DIR" %buildroot%{install_path}|awk -F : '{print $1}') +sed -i "s|$PDTOOLKIT_DIR|\$\{PDTOOLKIT_DIR\}|g" $(egrep -IR "$PDTOOLKIT_DIR" %buildroot%{install_path}|awk -F : '{print $1}') # link other bindings pushd %{buildroot}%{install_path}/lib