Re: Building rpm-python from scratch?
Paul Nasrat <[email protected]> Sun, 12 Mar 2006 10:43:39 -0500
| Newsgroups | gmane.linux.redhat.rpm.python |
|---|---|
| Organization | Red Hat, Inc. |
| Message-ID | <[email protected]> |
On Sat, 2006-03-11 at 12:32 -0500, Brad Smith wrote: > Ok, I'm just going to have to ask a dummy rpmbuild question now. Not having root on the RHEL3 > system, I installed the .src.rpm on my laptop and copied the relevant /usr/src/redhat/* directories > from it to ~/src/rpmbuild/ on the RHEL3 box. However... > > [brads@loop rpmbuild]$ rpmbuild -bb --buildroot /home/brads/src/rpmbuild/ SPECS/rpm.spec > error: File /usr/src/redhat/SOURCES/rpm-4.2.3.tar.gz: No such file or directory > > My understanding was that --buildroot told rpmbuild to look in a dir other than /usr/src/redhat. I > also tried setting "%define __prefix /home/brad/src/rpmbuild/" in the spec file, but it's > still trying to build out of /usr/src/redhat, which I don't have access too. Any idea what I'm doing > wrong here? You need to define topdir create ~/.rpmmacros with %_topdir %(echo $HOME)/src/rpmbuild Then just use rpmbuild -bb ~/src/rpmbuild/SPECS/rpm.spec Paul