Mailinglist Archive: opensuse-packaging (116 mails)

< Previous Next >
[opensuse-packaging] Re: No %if inside %with?
  • From: Andreas Schwab <schwab@xxxxxxx>
  • Date: Mon, 11 Dec 2017 12:41:54 +0100
  • Message-id: <mvmpo7lo5j1.fsf@suse.de>
On Dez 10 2017, Sebastian <sebix@xxxxxxxx> wrote:

%if %{with tests}
%check
export LANG=C.UTF-8
%ifpython2
python2 setup.py test -s test2
%endif
%ifpython3
python3 setup.py test -s test3
%endif
%endif

Are both %ifpython2 and %ifpython3 defined macros? If either is
undefined then the rpm parser will not see the %if that is presumably
supposed to be hidden behind that.

Andreas.

--
Andreas Schwab, SUSE Labs, schwab@xxxxxxx
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References