Am 09.10.23 um 08:59 schrieb Johannes Kastl:
Hi all,
can someone help me find my error in packaging python-nautikos?
https://build.opensuse.org/package/show/home:ojkastl_buildservice:Branch_dev...
The %pyproject_install macro fails as it cannot find the python-versioned executable in /usr/bin/:
[ 13s] RPM build errors: [ 13s] File not found: /home/abuild/rpmbuild/BUILDROOT/python-nautikos-0.3.4-1.1.x86_64/usr/bin/nautikos-3.9
I must have missed something (or something inside upstream's settings is broken). I have added the update-alternatives commands as documented in the wiki.
Which wiki page? You used the wrong macro. https://en.opensuse.org/openSUSE:Packaging_Python#update-alternatives The "If not" clause for *|%prepare_alternative something|* refers to the rare case when you would create nautikos-3.9 and the other flavors yourself. The wording is a bit misleading. https://build.opensuse.org/request/show/1116384 17 https://build.opensuse.org/request/show/1116384#diff_0_n17-%prepare_alternative nautikos 18 https://build.opensuse.org/request/show/1116384#diff_0_n18+%python_clone -a %{buildroot}%{_bindir}/nautikos
Thanks in advance! Johannes