From 6b0a3e15ffd23c0dc8c052e2634dc883c6715a3d Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Mon, 15 Jul 2019 08:38:25 +0900 Subject: [PATCH] Adjust check section position 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 --- packaging/bundle.spec | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packaging/bundle.spec b/packaging/bundle.spec index 3e5fdaf..b28c025 100644 --- a/packaging/bundle.spec +++ b/packaging/bundle.spec @@ -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 -- 2.7.4