Commit 880df92f authored by John Saalwaechter's avatar John Saalwaechter Committed by Michal Marek

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: default avatarJohn Saalwaechter <saalwaechter@gmail.com>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent 0139f1d9
...@@ -39,7 +39,7 @@ if ! $PREBUILT; then ...@@ -39,7 +39,7 @@ if ! $PREBUILT; then
echo "Source: kernel-$__KERNELRELEASE.tar.gz" echo "Source: kernel-$__KERNELRELEASE.tar.gz"
fi fi
echo "BuildRoot: /var/tmp/%{name}-%{PACKAGE_VERSION}-root" echo "BuildRoot: %{_tmppath}/%{name}-%{PACKAGE_VERSION}-root"
echo "Provides: $PROVIDES" echo "Provides: $PROVIDES"
echo "%define __spec_install_post /usr/lib/rpm/brp-compress || :" echo "%define __spec_install_post /usr/lib/rpm/brp-compress || :"
echo "%define debug_package %{nil}" echo "%define debug_package %{nil}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment