Adjust check section position 75/209975/1
authorHwankyu Jhun <h.jhun@samsung.com>
Sun, 14 Jul 2019 23:45:24 +0000 (08:45 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Sun, 14 Jul 2019 23:45:24 +0000 (08:45 +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: I6d92aab6d516b135ad3f2f7caa121afec02f44d1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
packaging/capi-appfw-app-control.spec

index 8df0236eb26dc058d3f37b992e86ffdacdc58947..2e838e3c3a12201d8f75195510deae53a75b9fa5 100644 (file)
@@ -75,15 +75,6 @@ mkdir -p gcov-obj
 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 --output-on-failure %{?_smp_mflags}
 %if 0%{?gcov:1}
@@ -93,6 +84,15 @@ zip -r app_control.zip app_control.out
 install -m 0644 app_control.zip %{buildroot}%{_datadir}/gcov/app_control.zip
 %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 -p /sbin/ldconfig
 %postun -p /sbin/ldconfig