From b2a8e3678eb2db65d39633b1ee343567280b3c76 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Mon, 10 Jun 2024 19:41:34 -0400 Subject: [PATCH] Go back to using autosetup This way, we do not have to remember to individually apply unconditional patches. [skip changelog] --- python-meson-python.spec | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/python-meson-python.spec b/python-meson-python.spec index 63b53ab..7f9ba05 100644 --- a/python-meson-python.spec +++ b/python-meson-python.spec @@ -21,7 +21,7 @@ Source: %{pypi_source meson_python} # Downstream-only patch to remove the patchelf dependency (and corresponding # functionality), controlled by the patchelf build conditional -Patch2: meson_python-remove-patchelf.patch +Patch100: meson_python-remove-patchelf.patch BuildArch: noarch @@ -62,11 +62,10 @@ Requires: /usr/bin/patchelf %prep -%setup -n meson_python-%{version} -q -%patch 0 -p1 -%patch 1 -p1 +%autosetup -n meson_python-%{version} -N +%autopatch -M 99 -p1 %if %{without patchelf} -%patch 2 -p1 +%patch 100 -p1 %endif # build: used only by skipped PEP 518 test # pytest-cov: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters