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.
Showing the changes to scripts/package (1 of 1 file). Show all
Unified · Split
| @@ -39,7 +39,7 @@ if ! $PREBUILT; then · 38 unmodified lines | |||
| 39 | echo "Source: kernel-$__KERNELRELEASE.tar.gz" | 39 | echo "Source: kernel-$__KERNELRELEASE.tar.gz" |
| 40 | fi | 40 | fi |
| 41 | 41 | ||
| 42 | echo "BuildRoot: /var/tmp/%{name}-%{PACKAGE_VERSION}-root" | 42 | echo "BuildRoot: %{_tmppath}/%{name}-%{PACKAGE_VERSION}-root" |
| 43 | echo "Provides: $PROVIDES" | 43 | echo "Provides: $PROVIDES" |
| 44 | echo "%define __spec_install_post /usr/lib/rpm/brp-compress || :" | 44 | echo "%define __spec_install_post /usr/lib/rpm/brp-compress || :" |
| 45 | echo "%define debug_package %{nil}" | 45 | echo "%define debug_package %{nil}" |