--- lib/rpmrc.c 2012/10/16 16:37:34 1.1 +++ lib/rpmrc.c 2012/10/16 16:38:10 @@ -1091,7 +1091,7 @@ # if defined(__linux__) && defined(__powerpc__) { int powerlvl; - if (sscanf(rpmat.platform, "power%d", &powerlvl) == 1 && powerlvl > 6) + if (!rstreq(un.machine, "ppc") && sscanf(rpmat.platform, "power%d", &powerlvl) == 1 && powerlvl > 6) strcpy(un.machine, "ppc64p7"); } # endif /* ppc64*-linux */