Switch to using %autosetup for patches

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2023-07-10 12:56:47 +01:00
parent fc88a8c50a
commit aa1d9aace4

View File

@ -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'