LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   configure path for dependent rpm packages for building source rpm package (https://www.linuxquestions.org/questions/linux-newbie-8/configure-path-for-dependent-rpm-packages-for-building-source-rpm-package-4175452230/)

embeddedlinuxforall 03-01-2013 06:36 AM

configure path for dependent rpm packages for building source rpm package
 
Hi all,
I am trying to cross compile rpm source rpm packages to create rpm package.
I am using following command :
rpmbuild -bi --target=armv7l <spec.file>

However the spec file looks for some dependent packages. I already have these packages but I dont know where exactly does the rpm looks for these packages?(The path).
When I executed rpm build command , it created a directory rpmbuild in home and sub folder like BUIL, BUILDROOT, RPMS, SRPMS, SOURCES etc

Please help me.
Thanks

bigrigdriver 03-01-2013 11:39 AM

Welcome to LQ.

It's been a while since I used an .rpm based distro, but I'll try to answer your question.

If I remember correctly, rpm uses /etc/rpmrc (or an rpmrc somewhere in /etc) which directs rpm to reference a database of installed rpms. The database is in /var/lib/rpm. I don't remember where the rpms themselves are stored.

Quote:

When I executed rpm build command , it created a directory rpmbuild in home and sub folder like BUIL, BUILDROOT, RPMS, SRPMS, SOURCES etc
Rpm expects to find the source tarball and any necessary patches in SOURCES; the .spec file in SPECS. When the build runs to completion, the finished rpm will be in RPMS.


All times are GMT -5. The time now is 06:16 PM.