Re: rpmbuild ignoring --macros?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5 Jan 2010, at 14:14, Greg_Swift@xxxxxxxxxxxxxxxxx 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



_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux