From: Wonki Kim Date: Wed, 6 May 2020 10:34:36 +0000 (+0900) Subject: spec: fix build failure in case of gcov enabled X-Git-Tag: submit/tizen/20200506.104119^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b7805720d300ada91da440acf33c7c135be809b;p=platform%2Fcore%2Fuifw%2Faurum.git spec: fix build failure in case of gcov enabled when gcov definition is passed to build command, a package that contains gcoverage information will be generated. previously, there is a bug that causes building failed. this patch fix it Change-Id: I9dbdbc6b250c6086f58cc5e7361734372a32b002 --- diff --git a/packaging/aurum.spec b/packaging/aurum.spec index 5684c8d..1f3987c 100644 --- a/packaging/aurum.spec +++ b/packaging/aurum.spec @@ -117,6 +117,11 @@ ninja \ -e 's%^.*: warning: .*$%\x1b[30;43m&\x1b[m%' +%if 0%{?gcov:1} + mkdir -p gcov-obj + find . -name '*.gcno' -exec cp '{}' gcov-obj ';' +%endif + %check ninja \ @@ -127,11 +132,6 @@ ninja \ -e 's%^.*: error: .*$%\x1b[37;41m&\x1b[m%' \ -e 's%^.*: warning: .*$%\x1b[30;43m&\x1b[m%' -%if 0%{?gcov:1} - mkdir -p gcov-obj - find . -name '*.gcno' -exec cp '{}' gcov-obj ';' -%endif - %install %if 0%{?__hash_signing}