9c8971
diff -up redhat-rpm-config-9.1.0/macros.configfoo redhat-rpm-config-9.1.0/macros
9c8971
--- redhat-rpm-config-9.1.0/macros.configfoo	2013-04-22 13:42:25.984613491 +0300
9c8971
+++ redhat-rpm-config-9.1.0/macros	2013-04-22 13:43:27.053420367 +0300
9c8971
@@ -33,6 +33,9 @@
9c8971
   CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
9c8971
   FFLAGS="${FFLAGS:-%optflags -I%_fmoddir}" ; export FFLAGS ; \
9c8971
   LDFLAGS="${LDFLAGS:-%__global_ldflags}"; export LDFLAGS; \
9c8971
+  for i in $(find . -name config.guess -o -name config.sub) ; do \
9c8971
+      [ -f /usr/lib/rpm/redhat/$(basename $i) ] && %{__rm} -f $i && %{__cp} -fv /usr/lib/rpm/redhat/$(basename $i) $i ; \
9c8971
+  done ; \
9c8971
   %{_configure} --build=%{_build} --host=%{_host} \\\
9c8971
 	--program-prefix=%{?_program_prefix} \\\
9c8971
 	--disable-dependency-tracking \\\