Adjust check section position 79/209979/1
authorHwankyu Jhun <h.jhun@samsung.com>
Sun, 14 Jul 2019 23:54:35 +0000 (08:54 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Sun, 14 Jul 2019 23:54:35 +0000 (08:54 +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: I8b1240dc82080a56665c326866f117ed94039525
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
packaging/component-based.spec

index 92e934cfa07eaa74d9e0a71dd3cafd3ca70d829b..75c7065d1dcab73529e57e4105d1e1787d8f3a94 100644 (file)
@@ -113,15 +113,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}
@@ -131,6 +122,15 @@ zip -r component-based.zip component-based.out
 install -m 0644 component-based.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
+
 %preun
 
 %post