Generate python(abi) Requires for any files in pythonX.Y directory

It does not matter if the package installs .py, .so or different files.

Packages that simply drop a .pth file to site-packages or even only carry dist-info folder
still need to Require the package that owns /usr/lib(64)/pythonX.Y.
This commit is contained in:
Miro Hrončok 2026-05-14 19:27:24 +02:00 committed by churchyard
commit c88849770b
3 changed files with 14 additions and 1 deletions

View file

@ -28,4 +28,4 @@
end
}
%__python_path ^((%{?!flatpak:/usr}%{?flatpak:/app}/lib(64)?/python[[:digit:]]+\\.[[:digit:]]+/.*\\.(py[oc]?|so))|(%{_bindir}/python[[:digit:]]+\\.[[:digit:]]+))$
%__python_path ^((%{?!flatpak:/usr}%{?flatpak:/app}/lib(64)?/python[[:digit:]]+\\.[[:digit:]]+/.+)|(%{_bindir}/python[[:digit:]]+\\.[[:digit:]]+))$