Re: rpmrc file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks.

%_topdir  in ~/.rmpmacros did not work for me. Any other suggestion.

I can rebuild the rpm using the following cmd

# rpmbuild --define "_topdir /root/project/rpm" -ba callback-1.0-1.spec

--Brijesh

On Sat, 16 Oct 2004 07:51:41 -0400, leam@xxxxxxxxx <leam@xxxxxxxxx> wrote:
> 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
> 


-- 
Regards,
Brijesh <brijesh.ksingh@xxxxxxxxx>

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux