From: John Saalwaechter Date: Mon, 1 Feb 2010 00:18:58 +0000 (-0800) Subject: scripts: use %_tmppath in "make rpm-pkg" X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=880df92fa0bb2ebaf057ea1cc1e309b351fd73bc;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git scripts: use %_tmppath in "make rpm-pkg" The mkspec script hardcodes "/var/tmp" into the generated rpm spec file's BuildRoot. The user, however, may have a custom setting for %_tmppath, which should be used in BuildRoot. This patch changes mkspec's BuildRoot output to appropriately use %_tmppath. Signed-off-by: John Saalwaechter Signed-off-by: Michal Marek --- diff --git a/scripts/package/mkspec b/scripts/package/mkspec index 47bdd2f99b78..16ae0dd746e1 100755 --- a/scripts/package/mkspec +++ b/scripts/package/mkspec @@ -39,7 +39,7 @@ if ! $PREBUILT; then echo "Source: kernel-$__KERNELRELEASE.tar.gz" fi -echo "BuildRoot: /var/tmp/%{name}-%{PACKAGE_VERSION}-root" +echo "BuildRoot: %{_tmppath}/%{name}-%{PACKAGE_VERSION}-root" echo "Provides: $PROVIDES" echo "%define __spec_install_post /usr/lib/rpm/brp-compress || :" echo "%define debug_package %{nil}"