From db5346ac28f08afe6d2c6baf88edf51129940d00 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Sun, 30 Apr 2023 15:06:12 -0400 Subject: [PATCH] Depend on the system patchelf - This avoids generating dependencies on python3dist(patchelf). --- python-meson-python.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python-meson-python.spec b/python-meson-python.spec index 6b9694b..869fa25 100644 --- a/python-meson-python.spec +++ b/python-meson-python.spec @@ -34,6 +34,12 @@ documentation for more details.} %package -n python3-meson-python Summary: %{summary} +# When patchelf is not in the PATH, mesonpy.get_requires_for_build_wheel() adds +# https://pypi.org/project/patchelf/ to the dependencies. We always want to use +# the system patchelf. +BuildRequires: /usr/bin/patchelf +Requires: /usr/bin/patchelf + # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_provides_for_importable_modules %py_provides python3-mesonpy