Mailinglist Archive: opensuse-packaging (116 mails)

< Previous Next >
[opensuse-packaging] Re: No %if inside %with?
On 12/11/2017 12:41 PM, Andreas Schwab wrote:
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.
Yes. In `osc chroot`:

abuild@host:~> rpmspec -E "%ifpython2"
%if "python2" == "python2"
abuild@host:~> rpmspec -E "%ifpython3"
%if "python2" == "python3"

Sebastian

< Previous Next >