From: Wootak Jung Date: Mon, 27 Jun 2022 22:52:46 +0000 (+0900) Subject: Remove gcov rpm X-Git-Tag: submit/tizen/20220627.234713^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_7.0_unified;p=platform%2Fcore%2Fapi%2Ftelephony.git Remove gcov rpm Do not make gcov rpm if excluded from the coverage Change-Id: I14a48ed4916b6bac162e5e402d47be83117f1269 --- diff --git a/packaging/capi-telephony.spec b/packaging/capi-telephony.spec index 7b567ab..b0e220b 100644 --- a/packaging/capi-telephony.spec +++ b/packaging/capi-telephony.spec @@ -21,10 +21,6 @@ BuildRequires: pkgconfig(cynara-creds-self) BuildRequires: pkgconfig(gmock) Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig -%if 0%{?gcov:1} -BuildRequires: tar -BuildRequires: lcov -%endif %description Telephony public API library @@ -45,15 +41,6 @@ Group: Telephony/Testing %description unittests The %{name}-unittests pacakge contains programs for checking quality the %{name}. -%if 0%{?gcov:1} -%package gcov -Summary: Coverage Data of %{name} -Group: Telephony/Testing - -%description gcov -The %{name}-gcov pacakge contains gcov objects -%endif - %define tel_header_dir %{_includedir}/telephony %prep @@ -61,12 +48,6 @@ The %{name}-gcov pacakge contains gcov objects cp %{SOURCE1001} ./%{name}.manifest %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 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` %cmake . -DMAJORVER=${MAJORVER} -DFULLVER=%{version} \ @@ -77,25 +58,11 @@ MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` -DSTDOUT_LOG=%{?stdlog:1}%{!?stdlog:0} make %{?_smp_mflags} -%if 0%{?gcov:1} -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/%{name} -install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj/%{name}/ -%endif - %check tests/tel-gtest -%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 %postun -p /sbin/ldconfig @@ -115,8 +82,3 @@ genhtml %{name}.info -o out --legend --show-details %{_bindir}/telephony-test %{_bindir}/%{name}/*gtest* %license LICENSE.APLv2 - -%if 0%{?gcov:1} -%files gcov -%{_datadir}/gcov/* -%endif