Fix config since koji preps as noarch

This commit is contained in:
Justin M. Forbes 2012-04-02 16:36:47 -05:00
parent 9bf060eb5e
commit 3e716334ce
1 changed files with 11 additions and 2 deletions

View File

@ -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 <jforbes@redhat.com> - 3.4.0-0.rc1.git0.2
- Fix config since koji preps as noarch
* Mon Apr 02 2012 Justin M. Forbes <jforbes@redhat.com> - 3.4.0-0.rc1.git0.2
- Disable debugging options.