Remove gcov rpm package 57/285257/1
authorpyun <dh79.pyun@samsung.com>
Thu, 8 Dec 2022 07:09:40 +0000 (16:09 +0900)
committerpyun <dh79.pyun@samsung.com>
Thu, 8 Dec 2022 07:13:07 +0000 (16:13 +0900)
iotcon module is not longer managed.
So removes gcov package also.

Change-Id: If3409cc7bd5ddadaeb3703d6e24155fc20ccf7e0
Signed-off-by: pyun <dh79.pyun@samsung.com>
packaging/iotcon.spec

index f5b4d2a..f9e64f7 100644 (file)
@@ -15,9 +15,6 @@ BuildRequires:  pkgconfig(vconf)
 BuildRequires:  pkgconfig(iotivity)
 BuildRequires:  pkgconfig(uuid)
 BuildRequires:  pkgconfig(cynara-client)
-%if 0%{?gcov:1}
-BuildRequires: lcov
-%endif
 
 Requires(post): /usr/bin/chgrp, /usr/bin/chmod, /usr/bin/chsmack
 
@@ -43,25 +40,11 @@ Requires:   %{name} = %{version}
 %description test
 Tizen IoT Connectivity Test Programs
 
-%if 0%{?gcov:1}
-%package gcov
-Summary:  TizenIoT Connectivity library(gcov)
-Group:    Connectivit/Testing
-%description gcov
-gcov objects for coverage test
-%endif
-
 %prep
 %setup -q
 
 
 %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
 
 %if "%{?profile}" == "tv"
 %define PRODUCT_TV 1
@@ -73,25 +56,12 @@ MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
 %cmake . -DMAJORVER=${MAJORVER} \
        -DFULLVER=%{version} \
        -DBIN_INSTALL_DIR:PATH=%{_bindir} \
-       -DPRODUCT_TV=%{PRODUCT_TV} \
-       -DBUILD_GCOV=%{?gcov:1}%{!?gcov:0}
-
-%if 0%{?gcov:1}
-make %{?jobs:-j%jobs}
-
-mkdir -p gcov-obj
-find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
-%endif
+       -DPRODUCT_TV=%{PRODUCT_TV}
 
 %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
-
 %post
 /sbin/ldconfig
 
@@ -117,8 +87,3 @@ install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
 %defattr(-,root,root,-)
 %{_bindir}/iotcon-test-*
 %license LICENSE.APLv2
-
-%if 0%{?gcov:1}
-%files gcov
-%{_datadir}/gcov/obj/*
-%endif