rpmbuild tries to cd into $RPM_PACKAGE_NAME-$RPM_PACKAGE_VERSION

"Erez Zilber" <[email protected]> Mon, 11 Aug 2008 14:03:36 +0300
Newsgroups gmane.linux.redhat.rpm.general
Message-ID <[email protected]>
Hi,

When I run rpmbuild --rebuild on a src rpm, it opens the tar file and
tries to cd into it. I see that it runs "cd
$RPM_PACKAGE_NAME-$RPM_PACKAGE_VERSION. Can I change it so it will run
"cd $RPM_PACKAGE_NAME"? How?

Thanks,
Erez