From 3e716334ce7c3d281567e000642a28886971b251 Mon Sep 17 00:00:00 2001 From: "Justin M. Forbes" Date: Mon, 2 Apr 2012 16:36:47 -0500 Subject: [PATCH] Fix config since koji preps as noarch --- kernel.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/kernel.spec b/kernel.spec index 6b3128bd4..339f2b57a 100644 --- a/kernel.spec +++ b/kernel.spec @@ -1457,8 +1457,14 @@ done rm -f kernel-%{version}-*debug.config %endif -# now run oldconfig over all the config files -for i in kernel-*-%{_target_cpu}*.config +arch=%{_target_cpu} +# Koji preps as noarch. Pick the config file for the arch. +if [ "%{_target_cpu}" -eq "noarch" ]; then + arch=$(uname -p) +fi + +# now run oldconfig over the config files +for i in kernel-*-$arch-*.config do mv $i .config Arch=`head -1 .config | cut -b 3-` @@ -2283,6 +2289,9 @@ fi # ||----w | # || || %changelog +* Mon Apr 02 2012 Justin M. Forbes - 3.4.0-0.rc1.git0.2 +- Fix config since koji preps as noarch + * Mon Apr 02 2012 Justin M. Forbes - 3.4.0-0.rc1.git0.2 - Disable debugging options.