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

Lakshmipathi.G lakshmipathi.g at gmail.com
Tue Jan 11 10:00:50 UTC 2011


i just added
%define _prefix /opt/%{name}/%{version}
into the spec  file its worked :) Thanks for the help.

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

> 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
>



-- 
----
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/34f49679/attachment.html 


More information about the india mailing list