Yes, the python-XXX is for packages that uses the %python_subpackages macro [1], that creates requirements for each flavor. Without using that macro you need to use the correct versioned python packages in other case the rpm will depend on python-XXX, that's usually python2 and possibly won't exist.
For consistency and unless I'm misreading the wiki, the Requires and Recommends lines should be python-XXX rather than python3-XXX
python-rpm-macros will rewrite them to match
%pythons
flavors.That may be the case for library packages that build for multiple python versions.
For applications that aim to be portable between Leap and Tumbleweed there is no clear answer, unfortunately.
Yes, the python-XXX is for packages that uses the
%python_subpackages
macro [1], that creates requirements for each flavor. Without using that macro you need to use the correct versioned python packages in other case the rpm will depend on python-XXX, that's usually python2 and possibly won't exist.[1] https://en.opensuse.org/openSUSE:Packaging_Python#%python_subpackages
Thanks for the explanation. I'll accept the SR.
@michals Please change the %python_module BR to
python3-
and use %python3_build / %python3_install