error: Macro % has illegal name (%define) ?

Patrick <[email protected]>
Newsgroups gmane.linux.redhat.rpm.general
Message-ID <[email protected]>
Hi all,

If I try to run the following script on a Fedora 7 box with rpm version
4.4.2.1.

#!/bin/bash
cd ~/redhat/SPECS
BUILDOPTS_libsupertone='--define "_smp_mflags -j1"'
rpmbuild -ba --target=i386 libsupertone.spec ${BUILDOPTS_libsupertone}

I get this error:

error: Macro % has illegal name (%define)
error: Macro % has illegal name (%define)
error: Macro % has illegal name (%define)
-j1": unknown option

Google gave no solution. Anyone know how I can make this work?

Thanks and regards,
Patrick
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.