Hi, Check https://en.opensuse.org/openSUSE:Packaging_Python and the documentation for python-rpm-macros. Am 04.01.21 um 13:27 schrieb Mathias Homann:
And some more fun:
"Nothing provides STOP-devel" ... what is that supposed to mean and what do I do about it?
That's a an error message from OBS the obs prjconf version of `%python_module` and only works for the build service resolver.
The python package follows the singlespec rules...
You need to `BuildRequire: python-rpm-macros`, which overrides the OBS definition.
I'm trying to get a python package to build for Tumbleweed, and the macro %{py_requires} is gone - what do I use instead?
I see that https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros still mentions py_requires, but it is horribly outdated. Removing that entry from the wiki. The macro was obsoleted in 2017 [1] You can remove the usage, or replace by - `BuildRequires: %pythons` if you need the full standardlib instead of just python-base - `BuildRequires: %{python_module devel}` if you need to compile against the Python headers
Cheers MH
Cheers Ben [1] https://github.com/rpm-software-management/spec-cleaner/issue/206