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
39echo "Source: kernel-$__KERNELRELEASE.tar.gz"39echo "Source: kernel-$__KERNELRELEASE.tar.gz"
40fi40fi
41 41
42echo "BuildRoot: /var/tmp/%{name}-%{PACKAGE_VERSION}-root"42echo "BuildRoot: %{_tmppath}/%{name}-%{PACKAGE_VERSION}-root"
43echo "Provides: $PROVIDES"43echo "Provides: $PROVIDES"
44echo "%define __spec_install_post /usr/lib/rpm/brp-compress || :"44echo "%define __spec_install_post /usr/lib/rpm/brp-compress || :"
45echo "%define debug_package %{nil}"45echo "%define debug_package %{nil}"