From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 Description of problem: I didn't know where else to submit a bug report for RPM so I just put it here and hope it finds its way to whoever needs it. I downloaded RPM from jbj.org and installed it with the /usr prefix, and the macros file placed at /usr/lib/rpm.macros has a a bit of an oversight in it. The configuration and install was error free, however when building RPMs, rpmbuild looks under /usr/src/redhat/SOURCES for the tar package. on line 221 in /usr/lib/rpm/macros, it is: %_topdir %{_usrsrc}/redhat and I believe it should be: %_topdir %{_usrsrc}/%{_vendor} When building on distros other than Red Hat/Fedora, it might be clearer to have the buildtree have the distro's name instead of red hat's Version-Release number of selected component (if applicable): rpm-4.4 How reproducible: Always Steps to Reproduce: 1. Download tarball 2. untar and configure 3. install to /usr 4. check /usr/lib/rpm/macros Actual Results: Builds of RPMs failed as it is always unable to locate the tarball witohut a symlink being created. Expected Results: RPM to look underneat the /usr/src directory it created during the install instead of always and only /usr/src/redhat Additional info: I like pepsi.
Upstream rpm has changed to %{_usrsrc}/rpm
well then the rpm installation needs to create /usr/src/rpm instead of /usr/src/%{_vendor} /usr/src/%{_vendor} is created at install time and unless the %{_srcdir} matches it the rpm builds are still going to fail unless they create a symlink called "rpm" pointing to the /usr/src/%{_vendor} directory.
Please test rpm from upstream site: http://wraptastic.org/pub/i386-linux/SRPMS