This is what I've got at this point:
ln -s Mail-SpamAssassin-3.0.0-pre2.tar.bz2 Mail-SpamAssassin-3.000000.tar.bz2
rpmbuild -ta --define 'release 0.2pre2' --define 'srcext .bz2' Mail-SpamAssassin-3.000000.tar.bz2
This gets as far as extracting the spec file but fails to find the BUILD/Mail-SpamAssassin-3.000000 subdirectory to build in.
I can successfully build if I link the tarball to SOURCES/Mail-SpamAssassin-3.0.0.tar.bz2 and apply this change to spamassassin.spec:
--- spamassassin.spec.000 2004-07-10 05:29:30.602990000 -0700 +++ spamassassin.spec 2004-07-10 05:34:50.893159458 -0700 @@ -3,8 +3,9 @@ # namely, making the tools RPM for masses, sql, and tools, and # the perl-Mail-SpamAssassin rpm for the modules only.
-%define real_version 3.000000
+#%define real_version 3.000000
%define version 3.0.0
+%define real_version %{version}%define _unpackaged_files_terminate_build 0 %define _missing_doc_files_terminate_build 0
