From 7f9b53d52481eb92f3d8b17b3ce58bd114fa31b8 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Thu, 22 Aug 2024 14:32:11 +0200 Subject: [PATCH] Modernize %prep section Newer rpm releases obsoleted a couple of things and now centpkg is failing on those deprecations and prevent building anything. error: %patchN is obsolete, use %patch N (or %patch -P N): %patch0 -p1 Resolves: RHEL-55291 --- nvme-cli.spec | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/nvme-cli.spec b/nvme-cli.spec index 3f69ed4..df2c654 100644 --- a/nvme-cli.spec +++ b/nvme-cli.spec @@ -37,13 +37,7 @@ Requires: util-linux nvme-cli provides NVM-Express user space tooling for Linux. %prep -#%%setup -qn %%{name}-%%{commit0} -%setup -q - -%patch0 -p1 -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 +%autosetup -p1 -n %{name}-%{version} %build %meson -Dudevrulesdir=%{_udevrulesdir} -Dsystemddir=%{_unitdir} -Ddocs=all -Ddocs-build=true -Dhtmldir=%{_pkgdocdir}