Mixing of macros and native commands in specs.
Matthias Clasen
mclasen at redhat.com
Fri Oct 5 16:17:51 UTC 2007
On Fri, 2007-10-05 at 09:02 +0200, Hans de Goede wrote:
> Peter Lemenkov wrote:
> > Hello All!
> > Just for clarification - is it allowed to mix macros and native
> > command in spec-file? For instance
> >
> > %make
> > make %{?_smp_mflags}
> >
> > %install
> > %{_rm} -rf $RPM_BUILD_ROOT
> > make DESTDIR=%{buildroot} install
> >
> >
>
> Allowed as in the RPM will build, yes, allowed as in what do the guidelines
> say. No, either use all macros or all native commands.
The guidelines don't talk about macros like %{__rm} vs native commands
at all. The only mention of macros is $RPM_BUILD_ROOT vs %{buildroot}.
More information about the fedora-devel-list
mailing list