On Mon, Dec 11, 2017 at 6:41 AM, Andreas Schwab
On Dez 10 2017, Sebastian
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.
I actually elect to use the following construct instead: %if "%{python_flavor}" == "python2" .. %endif %if "%{python_flavor}" == "python3" .. %endif The rpm spec parser doesn't barf then... -- 真実はいつも一つ!/ Always, there's only one truth! -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org