rpmbuild command line override spec file %define

"Christian Joensson" <[email protected]> Mon, 22 May 2006 08:32:18 +0200
Newsgroups gmane.linux.aurora.devel
Message-ID <[email protected]>
Just a quickie here...

in gcc-3.4.4-2.fc3.src.rpm, the spec file has two entries I would like
to override with rpmbuild copmmand line arguments. the two spec file
directives are:

%define build_ada 1

and

%define build_java 1

the former, I need to --define 'build_ada 0' when rpmbuild
--target=sparc64 because I have no sparc64 capable Ada compiler
installed on my system.

the latter, I would like to --define 'build_java 0' when I rpmbuild
for --target=sparc64 to keep the build effort at a lower build time
then with it enabled...

so, I ask if the appropriate thing to do is this:

rpmbuild -ba /usr/src/redhat/SPECS/gcc34.spec --define 'build_ada 0'
--define 'build_java 0' --target=sparc64

or if something else is required?


-- 
Cheers,

/ChJ
_______________________________________________
Aurora-sparc-devel mailing list
[email protected]
http://lists.auroralinux.org/mailman/listinfo/aurora-sparc-devel
Aurora FAQ: http://www.ecs.soton.ac.uk/~mas01r/aurorafaq.html