rpkg: Add NVR and target cpu to config.cache name template
authorBjörn Esser <[email protected]>
Sat, 15 Feb 2025 10:32:15 +0000 (15 11:32 +0100)
committerBjörn Esser <[email protected]>
Sat, 15 Feb 2025 10:32:15 +0000 (15 11:32 +0100)
libxcrypt.spec.rpkg

index 42a5bce..448598e 100644 (file)
 
 # Create config.cache to speedup the run of
 # the configure script for the compat package.
-%global config_cache %(mktemp -tu %{name}-XXXXXXXXXXXXXXXX-config.cache)
+%global nvrt_str %{name}-%{version}-%{release}.%{_target_cpu}
+%global mktemplate %{nvrt_str}-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+%global config_cache %(mktemp -tu %{mktemplate}-config.cache)
 
 
 # Common configure options.