Description of Problem: Trying to "rpm --rebuild spamassassin-2.31-5.src.rpm" on both RH62 and RH72 results in an error that seems pretty generic: ==snip== Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.3283 ... make: *** No rule to make target `pure_vendor_install', needed by `pure_install'. Stop. error: Bad exit status from /var/tmp/rpm-tmp.3283 (%install) ==snip== Version-Release number of selected component (if applicable): spamassassin-2.31-5 How Reproducible: rpm --rebuild spamassassin-2.31-5.src.rpm
the SRPM is for perl 5.8.0 and higher; older perl's do not have support for vendor install dirs. You can make it work by changing: %{__perl} Makefile.PL PREFIX=$RPM_BUILD_ROOT%{prefix} INSTALLDIRS=vendor to %{__perl} Makefile.PL That should get it closer, but rebuilding on non-5.8 perls is unsupported.