Go back to using autosetup

This way, we do not have to remember to individually apply unconditional patches.

[skip changelog]
This commit is contained in:
Benjamin A. Beasley 2024-06-10 19:41:34 -04:00 committed by Pavel Simovec
parent 61ba804b5b
commit b2a8e3678e

View File

@ -21,7 +21,7 @@ Source: %{pypi_source meson_python}
# Downstream-only patch to remove the patchelf dependency (and corresponding # Downstream-only patch to remove the patchelf dependency (and corresponding
# functionality), controlled by the patchelf build conditional # functionality), controlled by the patchelf build conditional
Patch2: meson_python-remove-patchelf.patch Patch100: meson_python-remove-patchelf.patch
BuildArch: noarch BuildArch: noarch
@ -62,11 +62,10 @@ Requires: /usr/bin/patchelf
%prep %prep
%setup -n meson_python-%{version} -q %autosetup -n meson_python-%{version} -N
%patch 0 -p1 %autopatch -M 99 -p1
%patch 1 -p1
%if %{without patchelf} %if %{without patchelf}
%patch 2 -p1 %patch 100 -p1
%endif %endif
# build: used only by skipped PEP 518 test # build: used only by skipped PEP 518 test
# pytest-cov: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters # pytest-cov: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters