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