Adjust check section position 73/209973/2
authorHwankyu Jhun <h.jhun@samsung.com>
Sun, 14 Jul 2019 23:38:25 +0000 (08:38 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Sun, 14 Jul 2019 23:44:22 +0000 (08:44 +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: Ia7e5b3411ee6544e5695724f0f67e5daacaacd04
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
packaging/bundle.spec

index 3e5fdaf..b28c025 100644 (file)
@@ -71,14 +71,6 @@ mkdir -p gcov-obj
 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}
@@ -88,6 +80,14 @@ zip -r bundle.zip bundle.out bundle.info
 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