|
|
|
@ -139,7 +139,7 @@
|
|
|
|
|
%l_bash %{l_prefix}/lib/openpkg/bash |
|
|
|
|
|
|
|
|
|
# provide smart paths to tools |
|
|
|
|
%l_tool_locate() %(if [ ".%{expand:%%{?with_%1}}" != . ]; then tool="%{expand:%%{with_%1}}"; elif [ -f "%{l_bindir}/%1" ]; then tool="%{l_bindir}/%1"; else tool="%1"; fi; echo $tool) |
|
|
|
|
%l_tool_locate() %(if [ ".%{expand:%%{?with_%1}}" != . ]; then tool="%{expand:%%{with_%1}}"; elif [ -f "%{l_bindir}/%1" ]; then tool="%{l_bindir}/%1"; elif [ -f "%{l_prefix}/lib/openpkg/%1" ]; then tool="%{l_prefix}/lib/openpkg/%1"; else tool="%1"; fi; echo $tool) |
|
|
|
|
%l_gzip %{l_tool_locate gzip} |
|
|
|
|
%l_bzip2 %{l_tool_locate bzip2} |
|
|
|
|
%l_tar %{l_tool_locate tar} |
|
|
|
|