From: Dohyun Pyun Date: Tue, 12 Mar 2024 04:17:41 +0000 (+0900) Subject: Fix gcov build error X-Git-Tag: accepted/tizen/9.0/unified/20241030.234753^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen;p=platform%2Fcore%2Fapi%2Fthread.git Fix gcov build error Change-Id: Ie73294785e70a94ef776be3a9b5b5c682b0a90b7 Signed-off-by: Dohyun Pyun --- diff --git a/packaging/capi-network-thread.spec b/packaging/capi-network-thread.spec index 5ff2bda..833756a 100644 --- a/packaging/capi-network-thread.spec +++ b/packaging/capi-network-thread.spec @@ -1,7 +1,7 @@ Name: capi-network-thread Summary: Network Thread Framework -Version: 0.8.0 -Release: 1 +Version: 0.9.0 +Release: 2 Group: Connectivity/API License: Apache-2.0 Source0: %{name}-%{version}.tar.gz @@ -19,10 +19,6 @@ BuildRequires: pkgconfig(capi-system-info) BuildRequires: pkgconfig(gtest) BuildRequires: cmake -%if 0%{?gcov:1} -BuildRequires: lcov -%endif - %description Network Thread Framework @@ -44,14 +40,6 @@ Requires: %{name} = %{version}-%{release} %description test This package is for Network Thread Framework CAPI test application -%if 0%{?gcov:1} -%package gcov -Summary: Coverage Data of %{name} - -%description gcov -The %{name}-gcov package contains gcov objects -%endif - %prep %setup -q cp %{SOURCE1001} %{SOURCE1002} . @@ -71,12 +59,6 @@ export FFLAGS+=" -DARCH64" %endif %build -%if 0%{?gcov:1} -export CFLAGS+=" -fprofile-arcs -ftest-coverage" -export CXXFLAGS+=" -fprofile-arcs -ftest-coverage" -export FFLAGS+=" -fprofile-arcs -ftest-coverage" -export LDFLAGS+=" -lgcov" -%endif %cmake @@ -84,36 +66,15 @@ MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` %cmake . \ -DFULLVER=%{version} \ -DMAJORVER=${MAJORVER} \ -%if 0%{?gcov:1} - -DUNITTEST=ON \ -%endif -DBIN_DIR:PATH=%{_bindir} make %{?jobs:-j%jobs} -%if 0%{?gcov:1} -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 -%if 0%{?gcov:1} -LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./tests/unittest/thread-unittest -%endif - -%if 0%{?gcov:1} -lcov -c --ignore-errors graph --no-external -b . -d . -o %{name}.info -genhtml %{name}.info -o out --legend --show-details -%endif %post -p /sbin/ldconfig @@ -135,11 +96,3 @@ genhtml %{name}.info -o out --legend --show-details %files test %manifest %{name}.manifest %attr(777,network_fw,network_fw) %{_bindir}/thread-test -%if 0%{?gcov:1} -%attr(777,network_fw,network_fw) %{_bindir}/thread-unittest -%endif - -%if 0%{?gcov:1} -%files gcov -%{_datadir}/gcov/obj/* -%endif