History

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.

John Saalwaechter committed 16 years ago

Commit 880df921 parent 0139f1d1 file · +1 −1Browse files

Unified · Split

scripts/package/mkspec+1−1
@@ -39,7 +39,7 @@ if ! $PREBUILT; then · 38 unmodified lines
3939 echo "Source: kernel-$__KERNELRELEASE.tar.gz"
4040 fi
4141
42−echo "BuildRoot: /var/tmp/%{name}-%{PACKAGE_VERSION}-root"
42+echo "BuildRoot: %{_tmppath}/%{name}-%{PACKAGE_VERSION}-root"
4343 echo "Provides: $PROVIDES"
4444 echo "%define __spec_install_post /usr/lib/rpm/brp-compress || :"
4545 echo "%define debug_package %{nil}"