Mailinglist Archive: opensuse-buildservice (148 mails)

< Previous Next >
[opensuse-buildservice] Re: Macro arch dependant
  • From: Andreas Schwab <schwab@xxxxxxxxxxxxxx>
  • Date: Sat, 14 Sep 2013 19:28:31 +0200
  • Message-id: <87zjrf5n40.fsf@igel.home>
guillaume.gardet@xxxxxxx writes:

is it possible to add a macro which is arch dependant?

I would like to add a %ifarch inside macro list, but it does not seem to
work. What is the right way to define a macro, only for one arch?

Do you mean in the prjconf? Use something like this:

%ifarch foo
Macros:
%foo 1
:Macros
%endif

Andreas.

--
Andreas Schwab, schwab@xxxxxxxxxxxxxx
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References