From 1e5d8477083ff4fba337647f4079c99376f66d05 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Mon, 15 Jul 2019 08:50:57 +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: I06fe9fd24da51103fac4c42d9637c04a0d9cecab Signed-off-by: Hwankyu Jhun --- packaging/tidl.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packaging/tidl.spec b/packaging/tidl.spec index 1927162..4af9951 100644 --- a/packaging/tidl.spec +++ b/packaging/tidl.spec @@ -49,10 +49,6 @@ MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` %cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER} %__make %{?_smp_mflags} -%install -rm -rf %{buildroot} -%make_install - %check ctest --output-on-failure %{?_smp_mflags} %if 0%{?gcov:1} @@ -60,6 +56,10 @@ lcov -c --ignore-errors graph --no-external -q -d . -o gcov.info genhtml gcov.info %endif +%install +rm -rf %{buildroot} +%make_install + %preun %post -- 2.7.4