Adjust check section position 78/209978/1
authorHwankyu Jhun <h.jhun@samsung.com>
Sun, 14 Jul 2019 23:50:57 +0000 (08:50 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Sun, 14 Jul 2019 23:50:57 +0000 (08:50 +0900)
Some profile doesn't support %check section. It causes the build error
issue. To solve the issue, this patch adjusts %check section position.

Change-Id: I06fe9fd24da51103fac4c42d9637c04a0d9cecab
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
packaging/tidl.spec

index 1927162..4af9951 100644 (file)
@@ -49,10 +49,6 @@ MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
 %cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
 %__make %{?_smp_mflags}
 
-%install
-rm -rf %{buildroot}
-%make_install
-
 %check
 ctest --output-on-failure %{?_smp_mflags}
 %if 0%{?gcov:1}
@@ -60,6 +56,10 @@ lcov -c --ignore-errors graph --no-external -q -d . -o gcov.info
 genhtml gcov.info
 %endif
 
+%install
+rm -rf %{buildroot}
+%make_install
+
 %preun
 
 %post