[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: rpmbuild command line override spec file %define
- From: "Christian Joensson" <christian joensson gmail com>
- To: "RPM Package Manager" <rpm-list redhat com>
- Cc: Tom 'spot' Callaway <tcallawa redhat com>
- Subject: Re: rpmbuild command line override spec file %define
- Date: Mon, 22 May 2006 15:57:16 +0200
On 5/22/06, Aaron Richton <richton jla rutgers edu> wrote:
> the former, I need to --define 'build_ada 0' when I rpmbuild for
> --target=sparc64 because I have no sparc64 capable Ada compiler
> installed on my system.
If you want to codify "sparc64 is bad for ada", try something like:
# FIXME: somebody should make ada for sparcv9
%ifarch sparc64
%define build_ada 0
%else
%define build_ada 1
%endif
which may or may not get cumbersome depending on how many platforms
do(n't) support ada. You can replace 0/1 with the examples from other
replies to accept --without or what have you.
thanks for your reply, however, I wanted to override a %define in the
spec file, that was not possible, so, the --without change to the spec
file was to me a suitable little fix in the specfile that I figured
was small enough (oneliner) that I could learn to like...
--
Cheers,
/ChJ
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]