Fix gcov build error 60/307560/2 accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_x tizen accepted/tizen/unified/20240313.134823 accepted/tizen/unified/20240313.135752 accepted/tizen/unified/20240315.032912 accepted/tizen/unified/dev/20240620.004606 accepted/tizen/unified/x/20240314.073350
authorDohyun Pyun <dh79.pyun@samsung.com>
Tue, 12 Mar 2024 04:17:41 +0000 (13:17 +0900)
committerDohyun Pyun <dh79.pyun@samsung.com>
Tue, 12 Mar 2024 08:48:58 +0000 (17:48 +0900)
Change-Id: Ie73294785e70a94ef776be3a9b5b5c682b0a90b7
Signed-off-by: Dohyun Pyun <dh79.pyun@samsung.com>
packaging/capi-network-thread.spec

index 5ff2bda..833756a 100644 (file)
@@ -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