From aa1d9aace4594d71e6804142c4293fac5620b429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Mon, 10 Jul 2023 12:56:47 +0100 Subject: [PATCH] Switch to using %autosetup for patches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel P. Berrangé --- yajl.spec | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/yajl.spec b/yajl.spec index c052e1a..b6c92e9 100644 --- a/yajl.spec +++ b/yajl.spec @@ -19,10 +19,10 @@ URL: http://lloyd.github.com/yajl/ # https://github.com/lloyd/yajl/releases/tag/2.1.0 # Source0: %{name}-%{version}.tar.gz -Patch1: %{name}-%{version}-pkgconfig-location.patch -Patch2: %{name}-%{version}-pkgconfig-includedir.patch -Patch3: %{name}-%{version}-test-location.patch -Patch4: %{name}-%{version}-dynlink-binaries.patch +Patch: %{name}-%{version}-pkgconfig-location.patch +Patch: %{name}-%{version}-pkgconfig-includedir.patch +Patch: %{name}-%{version}-test-location.patch +Patch: %{name}-%{version}-dynlink-binaries.patch BuildRequires: gcc BuildRequires: cmake @@ -45,11 +45,7 @@ This sub-package provides the libraries and includes necessary for developing against the YAJL library %prep -%setup -q -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 +%autosetup -p1 %build # NB, we are not using upstream's 'configure'/'make'