rpmbuild ignoring --macros?

Andy Armstrong andy at hexten.net
Tue Jan 5 14:32:44 UTC 2010

On 5 Jan 2010, at 14:14, Greg_Swift at aotx.uscourts.gov wrote:
> I just skimmed through the man page for rpmbuild and --macros is not an
> option, atleast not on RHEL5 or Fedora8. I dont have access to one of my
> newer boxes to check otherwise at the moment.  I also did not see a way of
> accessing a file other than the standard ones.

Ah - OK thanks. My rpmbuild definitely accepts --macros but doesn't appear to do anything with it, however...

> PACKAGE := $(shell basename *.spec .spec)
> RPMBUILD = rpmbuild --define "_topdir %(pwd)/rpm-build" \
>        --define "_builddir %{_topdir}" \
>        --define "_rpmdir %(pwd)/rpms" \
>        --define "_srcrpmdir %{_rpmdir}" \
>        --define "_sourcedir  %{_topdir}"

...that does the job just fine.

Thanks again :)

Andy Armstrong, Hexten

More information about the Rpm-list mailing list