From 3d32f58e8187d247f28bb2ef8ac97dffe6dc3dee Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Sun, 5 Jul 2020 20:05:47 +0200 Subject: [PATCH] Improve compatibility with new CMake macro Signed-off-by: Igor Raits --- yajl.spec | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/yajl.spec b/yajl.spec index d7a0e63..22e69e6 100644 --- a/yajl.spec +++ b/yajl.spec @@ -1,3 +1,6 @@ +%undefine __cmake_in_source_build +%global _vpath_builddir build + Name: yajl Version: 2.1.0 Release: 14%{?dist} @@ -52,16 +55,12 @@ necessary for developing against the YAJL library # NB, we are not using upstream's 'configure'/'make' # wrapper, instead we use cmake directly to better # align with Fedora standards -mkdir build -cd build -%cmake .. -make VERBOSE=1 %{?_smp_mflags} +%cmake +%cmake_build %install -rm -rf $RPM_BUILD_ROOT -cd build -make install DESTDIR=$RPM_BUILD_ROOT +%cmake_install # No static libraries