Here is a new version of bdist_rpm. bdist_rpm now builds in build/rpm using `rpm -ba` so it no longer requires the spec file to be in the source distribution and can be completely built by non-root users. Here are the current options:
--spec-only - only generates a spec file --source-only - only build a source RPM --binary-only - only build a binary RPW --use-bzip2 - makes source distribution using bzip2 --no-clean - does not clean build/rpm/BUILD after building RPM
--arch has been temporarily disabled since 'rpm -ba --target=' does not seem to work with 'rpm -ba --define'. I will be trying to find out why on the RPM list.
`./setup.py clean` does not yet take care of 'build/rpm'.
When used with the --spec-only option the spec file is placed in redhat/, otherwise it is placed in /build/rpm/SPECS.