spec: fix build failure in case of gcov enabled submit/tizen/20200506.104119 submit/tizen/20200506.224620
authorWonki Kim <wonki_.kim@samsung.com>
Wed, 6 May 2020 10:34:36 +0000 (19:34 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Wed, 6 May 2020 10:34:36 +0000 (19:34 +0900)
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

packaging/aurum.spec

index 5684c8d..1f3987c 100644 (file)
@@ -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}