Michael Schwendt said: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Tue, 22 Apr 2003 11:05:39 -0400 (EDT), William Hooper wrote: > >> For example, I use Leafnode, which is distributed as a tar.bz2 file. >> The >> author does included a spec file, so I can just do: >> >> # rpmbuild -tb leafnode-<version>.tar.bz2 >> >> When trying as a user now I get: >> >> [whooper@xxxxxxxx whooper]$ rpmbuild -tb >> /harddrive2/storage/downloads/linux/leafnode-1.9.37.rel.tar.bz2 >> error: Failed to rename >> /home/whooper/rpmbuild/SOURCES/%{name}-%{version}/rpm-spec.3oomkl to >> /home/whooper/rpmbuild/SOURCES/%{name}-%{version}/rpm-spec.3oomkl: No >> such >> file or directory: No such file or directory > > This is a side-effect of having individual source directories in the > SOURCES directory. > > Either change %_sourcedir to > > %_sourcedir %{_topdir} > > in your ~/.rpmmacros or create the necessary directory manually. > Then rpmbuild -ta will work. You are correct. Thanks! I actually changed it to %_sourcedir %{_topdir}/SOURCES instead of %_sourcedir %{_topdir}/SOURCES/%{name}-%{version} after replying to Mike Vanecek's message because RPM didn't clean up by removing the name-version directory automatically. After thinking about it, the behavior of leaving the directory makes sense, I just don't need to have the extra directory created in the first place. I would have been wondering why it suddenly worked had I tried it again! -- William Hooper