From b30985b47ef87024a33961d924be619d0075446a Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 7 Aug 2020 15:11:10 +0200 Subject: [PATCH] adaptations for CMake out-of-tree builds See: https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds --- cmark.spec | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/cmark.spec b/cmark.spec index d3bac55..dab0ab5 100644 --- a/cmark.spec +++ b/cmark.spec @@ -50,23 +50,19 @@ This package provides the cmark library. %build -mkdir build -cd build -%cmake %{?_without_tests:-DCMARK_TESTS=OFF} .. -make %{?_smp_mflags} +%cmake %{?_without_tests:-DCMARK_TESTS=OFF} +%cmake_build %install -cd build -make install DESTDIR=%{buildroot} +%cmake_install rm %{buildroot}%{_libdir}/libcmark.a %check %if %{with tests} -cd build -make test +%cmake_build --target test %endif