[fedora-india] How to override %configure macros prefix without editing macro files?

Lakshmipathi.G lakshmipathi.g at gmail.com
Tue Jan 11 09:26:38 UTC 2011


Thanks  Rakesh,I'm okay with /opt .Yes,Saurabh adding  --define with
rpmbuild works. Looks like better solution for my requirement. But it seems
like there is no option to override _prefix of %configure macro inside .spec
file. Right?

If I could find solution like that ,anyone could built it using simple
"rpmbuild -ba"  without worrying about editing .rpmmacros file or  defining
macro at command line because it's defined at spec. file. If you came across
such solution - please let me know. For now I'll go with rpmbuild --define
option.


On Tue, Jan 11, 2011 at 12:47 PM, Lakshmipathi.G
<lakshmipathi.g at gmail.com>wrote:

> Hi -
> I want to override this %configure macro's default --prefix=/usr .  I like
> to change --prefix to /opt.  Do we have anyway to change this --prefix
> without adding value to ~/.rpmmacros  or other files. I don't want to create
> relocatable package. Just default rpm install should go to /opt.
>
> --
> ----
> Cheers,
> Lakshmipathi.G
> FOSS Programmer.
> www.giis.co.in
>



-- 
----
Cheers,
Lakshmipathi.G
FOSS Programmer.
www.giis.co.in
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/india/attachments/20110111/e0595a0a/attachment.html 


More information about the india mailing list