Commit 880df92fa0bb2ebaf057ea1cc1e309b351fd73bc
Committed by
Michal Marek
1 parent
0139f1d953
Exists in
master
and in
39 other branches
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 <saalwaechter@gmail.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
scripts/package/mkspec
... | ... | @@ -39,7 +39,7 @@ |
39 | 39 | echo "Source: kernel-$__KERNELRELEASE.tar.gz" |
40 | 40 | fi |
41 | 41 | |
42 | -echo "BuildRoot: /var/tmp/%{name}-%{PACKAGE_VERSION}-root" | |
42 | +echo "BuildRoot: %{_tmppath}/%{name}-%{PACKAGE_VERSION}-root" | |
43 | 43 | echo "Provides: $PROVIDES" |
44 | 44 | echo "%define __spec_install_post /usr/lib/rpm/brp-compress || :" |
45 | 45 | echo "%define debug_package %{nil}" |