[Aurora-sparc-devel] rpmbuild command line override spec file %define

Christian Joensson christian.joensson at gmail.com
Mon May 22 02:32:18 EDT 2006


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


More information about the Aurora-sparc-devel mailing list