Found the problem. The spec file was using "./configure". Replacing that with "%configure" caused it to use the correct libdir variable. It also revealed some more warnings at compile time, so I need to go poke through those.