Try: %_topdir ciao! leam On Sat, Oct 16, 2004 at 04:21:52PM +0530, Brijesh.ksingh@xxxxxxxxx wrote: > Hi, > > I am creating RPM for an application. After reading the "Red Hat RPM > Guide" I understood the syntax of spec file. Now coming to question. > > 1. I have created following directories > # cd /root/project/rpm > # ls -CF > BUILD/ RPMS/ SOURCES/ SPECS/ > > 2. The contents of rpmrc and rpmmarocs file as > # cat /root/.rpmmacros > %topdir /usr/local/src/rpm > > # cat /root/.rpmrc > macrofiles: ~/.rpmmacros:/usr/lib/rpm/macros > > 3. > # rpm --showrc | grep topdir > -14: _builddir %{_topdir}/BUILD > -14: _rpmdir %{_topdir}/RPMS > -14: _sourcedir %{_topdir}/SOURCES > -14: _specdir %{_topdir}/SPECS > -14: _srcrpmdir %{_topdir}/SRPMS > -14: _topdir %{_usrsrc}/redhat > -14: topdir /root/project/rpm > > 3. Trying to build the rpm > # cd /root/project/rpm/SPECS > # rpmbuild -bp callback-1.0.spec > error: File /usr/src/redhat/SOURCES/callback-1.0.tgz: No such file or directory > # > > Why the rpmbuild is looking for source file in /usr/src/redhat/SOURCES > ? How can I tell rpmbuild to use /root/project/rpm to be used for > build the rpms. > > Please help me to solve this problem. > > Host: Red Hat 9.0 _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list