From 81d1a4835b3acf5d5275e359b8e71bb79ce2d467 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Thu, 30 Jul 2020 14:25:19 +0200 Subject: [PATCH] Use %cmake_build/%cmake_install --- podofo.spec | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/podofo.spec b/podofo.spec index 9c5e331..b98317e 100644 --- a/podofo.spec +++ b/podofo.spec @@ -121,16 +121,12 @@ rm cmake/modules/FindZLIB.cmake %build -%if %{?el7:1}%{!?el7:0} -%cmake3 -DPODOFO_BUILD_SHARED=1 \ -%else -%cmake -DPODOFO_BUILD_SHARED=1 \ -%endif +%cmake \ %if 0%{?__isa_bits} == 64 -DWANT_LIB64=1 \ %endif -. -%make_build +-DPODOFO_BUILD_SHARED=1 +%cmake_build # build the docs doxygen @@ -140,7 +136,7 @@ find doc/html -exec touch -r %{SOURCE0} {} \; %install -%make_install +%cmake_install %check