[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
rpmbuild command line override spec file %define
- From: "Christian Joensson" <christian joensson gmail com>
- To: rpm-list redhat com
- Cc: Tom 'spot' Callaway <tcallawa redhat com>
- Subject: rpmbuild command line override spec file %define
- Date: Mon, 22 May 2006 08:51:46 +0200
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 command 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 I rpmbuild for
--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
than required if build_java is defined to 1...
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?
BTW, I use rpm-build-4.3.2-21...
--
Cheers,
/ChJ
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]