scripts/*.in: s|/usr/lib/rpm/|@RPMCONFIGDIR@/|g

This commit is contained in:
Дмитрий Левин 2007-09-29 14:36:59 +00:00
parent 5e023d62c1
commit 5b9096b561
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ cd "$RPM_BUILD_ROOT"
if [ -n "$RPM_PYTHON" -a -x "$RPM_PYTHON" ] && [ `find -type f -name \*.py |wc -l` -gt 0 ]; then
echo "Bytecompiling python modules in $PWD using $RPM_PYTHON"
$RPM_PYTHON /usr/lib/rpm/python.compileall.py "--select=$RPM_PYTHON_COMPILE_METHOD" "--exclude=$RPM_PYTHON_COMPILE_EXCLUDE" "--include=$RPM_PYTHON_COMPILE_INCLUDE" "--deep=$RPM_PYTHON_COMPILE_DEEP" ${RPM_PYTHON_COMPILE_SKIP_X:+--skip_x} ${RPM_PYTHON_COMPILE_CLEAN:+--clean} "--prefix=$RPM_BUILD_ROOT"
$RPM_PYTHON @RPMCONFIGDIR@/python.compileall.py "--select=$RPM_PYTHON_COMPILE_METHOD" "--exclude=$RPM_PYTHON_COMPILE_EXCLUDE" "--include=$RPM_PYTHON_COMPILE_INCLUDE" "--deep=$RPM_PYTHON_COMPILE_DEEP" ${RPM_PYTHON_COMPILE_SKIP_X:+--skip_x} ${RPM_PYTHON_COMPILE_CLEAN:+--clean} "--prefix=$RPM_BUILD_ROOT"
echo "Bytecompiling python modules with optimization in $PWD using $RPM_PYTHON -O"
$RPM_PYTHON -O /usr/lib/rpm/python.compileall.py "--select=$RPM_PYTHON_COMPILE_METHOD" "--exclude=$RPM_PYTHON_COMPILE_EXCLUDE" "--include=$RPM_PYTHON_COMPILE_INCLUDE" "--deep=$RPM_PYTHON_COMPILE_DEEP" ${RPM_PYTHON_COMPILE_SKIP_X:+--skip_x} ${RPM_PYTHON_COMPILE_CLEAN:+--clean} "--prefix=$RPM_BUILD_ROOT"
$RPM_PYTHON -O @RPMCONFIGDIR@/python.compileall.py "--select=$RPM_PYTHON_COMPILE_METHOD" "--exclude=$RPM_PYTHON_COMPILE_EXCLUDE" "--include=$RPM_PYTHON_COMPILE_INCLUDE" "--deep=$RPM_PYTHON_COMPILE_DEEP" ${RPM_PYTHON_COMPILE_SKIP_X:+--skip_x} ${RPM_PYTHON_COMPILE_CLEAN:+--clean} "--prefix=$RPM_BUILD_ROOT"
fi

View File

@ -4,7 +4,7 @@
# commands, such as found in shell scripts, to rpm dependencies.
#
# Usage:
# . /usr/lib/rpm/find-package
# . @RPMCONFIGDIR@/find-package
# FindPackage src [path...] [command...]
#
# Arguments: