diff --git a/opentrep.spec b/opentrep.spec index 44f2c17..c9307ac 100644 --- a/opentrep.spec +++ b/opentrep.spec @@ -123,21 +123,12 @@ and it is therefore not reliable. %build -mkdir tmpbuild -pushd tmpbuild -%if 0%{?fedora} || 0%{?rhel} > 7 -%cmake .. -%else -%cmake3 .. -%endif +%cmake -%make_build -popd +%cmake_build %install -pushd tmpbuild -%make_install -popd +%cmake_install # From rpm version > 4.9.1, it may no longer be necessary to move the # documentation out of the docdir path, as the %%doc macro no longer