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: I34001afa6df26973885e474e1cd430d104be788d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
%endif
-%install
-rm -rf %{buildroot}
-%make_install
-
-%if 0%{?gcov:1}
-mkdir -p %{buildroot}%{_datadir}/gcov/obj
-install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
-%endif
-
-
%check
ctest -V
%if 0%{?gcov:1}
install -m 0644 widget-viewer.zip %{buildroot}%{_datadir}/gcov/
%endif
+%install
+rm -rf %{buildroot}
+%make_install
+
+%if 0%{?gcov:1}
+mkdir -p %{buildroot}%{_datadir}/gcov/obj
+install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
+%endif
%post -n %{name} -p /sbin/ldconfig
%postun -n %{name} -p /sbin/ldconfig