> > > > rpmbuild --tb Mail-SpamAssassin-3.000000-pre1.tar.gz > > error: File /root/Mail-SpamAssassin-3.000000.tar.gz: No such file or > > directory > > Oh, yeah... You need to rename the file and get rid of the > -pre1 part. The spec file isn't built for that. :( >
Renaming the file will not help. You need to unpack it, rename the dir, and then recreate the tarball. # tar zxfv Mail-SpamAssassin-3.000000-pre1.tar.gz # mv Mail-SpamAssassin-3.000000-pre1 Mail-SpamAssassin-3.000000 # tar zcfv Mail-SpamAssassin-3.000000-pre1.tar.gz Mail-SpamAssassin-3.000000-pre1 Otherwise it'll complain about not being able to chdir's after it unpacks Mail-SpamAssassin-3.000000.tar.gz as Mail-SpamAssassin-3.000000-pre1. Dallas