From 9735479051a1c0b0bf00aa40c1fe239d1762da868187138d821981f5c445d139 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Wed, 4 Mar 2020 12:18:09 +0000 Subject: [PATCH] - Use cmake macros OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=65 --- cppcheck.changes | 5 +++++ cppcheck.spec | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/cppcheck.changes b/cppcheck.changes index 2671966..414dcff 100644 --- a/cppcheck.changes +++ b/cppcheck.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 4 12:17:56 UTC 2020 - Martin Pluskal + +- Use cmake macros + ------------------------------------------------------------------- Wed Mar 4 11:32:52 UTC 2020 - Danny Al-Gaaf diff --git a/cppcheck.spec b/cppcheck.spec index ad5ffa8..e618271 100644 --- a/cppcheck.spec +++ b/cppcheck.spec @@ -78,11 +78,11 @@ doesn't see. -DBUILD_GUI=ON \ -DBUILD_TESTS=ON \ -DHAVE_RULES=yes -%make_jobs +%cmake_build # does not work with CMake, directly call provided Makefile from source directory cd .. -make man \ +%make_build man \ DB2MAN=%{_datadir}/xml/docbook/stylesheet/nwalsh/current/manpages/docbook.xsl # use python3 as interpreter @@ -90,7 +90,7 @@ sed -i "s|env python|python3|g" htmlreport/cppcheck-htmlreport %check export CXXFLAGS="%{optflags}" -%make_jobs check +%ctest %install install -Dpm 0755 build/bin/cppcheck \