Hi,
I've a nice rpm build structure, which I usually use to build my rpm's. But for one application I want to be able to do 'make rpm' and the rpm should be build entirely inside that applications directory. What should I do to get that far? I coulnd't find any documents on the internet about such a case. Can anyone here help me with that?
Thanks in advance,
Remco Poelstra
Remco Poelstra writes:
Hi,
I've a nice rpm build structure, which I usually use to build my rpm's. But for one application I want to be able to do 'make rpm' and the rpm should be build entirely inside that applications directory. What should I do to get that far? I coulnd't find any documents on the internet about such a case. Can anyone here help me with that?
echo "%_topdir `pwd`" >.rpmmacros mkdir RPMS SRPMS SOURCES SPECS BUILD
Now, run rpmbuild from the current directory.
Sam Varshavchik wrote:
echo "%_topdir `pwd`" >.rpmmacros mkdir RPMS SRPMS SOURCES SPECS BUILD
Now, run rpmbuild from the current directory.
But that will overwrite my current .rpmmacros file, which I need for the 'normal' rpm build structure that I use. Isn't there a more non-destructive way? :) Preferably it should work on other users systems too. I think it's bad to make assumptions on there .rpmmacros file....
Thanks for your reply,
Remco Poelstra
Remco Poelstra writes:
Sam Varshavchik wrote:
echo "%_topdir `pwd`" >.rpmmacros mkdir RPMS SRPMS SOURCES SPECS BUILD
Now, run rpmbuild from the current directory.
But that will overwrite my current .rpmmacros file, which I need for the 'normal' rpm build structure that I use.
Big deal. Create a subdirectory, and do this inside it.
On Sun, Jun 05, 2005 at 05:44:07PM -0400, Sam Varshavchik wrote:
But that will overwrite my current .rpmmacros file, which I need for the 'normal' rpm build structure that I use.
Big deal. Create a subdirectory, and do this inside it.
Or redefine the path where rpmmacros are looked for to include a file in your build directory.
Remco Poelstra wrote,
Sam Varshavchik wrote:
echo "%_topdir `pwd`" >.rpmmacros mkdir RPMS SRPMS SOURCES SPECS BUILD
Now, run rpmbuild from the current directory.
But that will overwrite my current .rpmmacros file, which I need for the 'normal' rpm build structure that I use. Isn't there a more non-destructive way? :)
How about,
rpmbuild --define="_topdir `pwd`" ...
Cheers,
Miles