Add redhat-test target, and migrate the RPM_PACKAGEV stuff from 3.0 branch.