From: Gilbok Lee Date: Thu, 4 Jul 2019 08:36:11 +0000 (+0900) Subject: Make a gcov package X-Git-Tag: accepted/tizen/unified/20190711.062807^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F82%2F209282%2F2;p=platform%2Fcore%2Fapi%2Fmediamuxer.git Make a gcov package - make a gcov package for measuring coverage [Version] 0.1.18 Change-Id: Iab9b4f4e5f28cdc49abe3652a2e5967f8c77ce50 --- diff --git a/packaging/capi-mediamuxer.spec b/packaging/capi-mediamuxer.spec index 5e1b77a..98c1124 100644 --- a/packaging/capi-mediamuxer.spec +++ b/packaging/capi-mediamuxer.spec @@ -1,6 +1,6 @@ Name: capi-mediamuxer Summary: A Media Muxer library in Tizen Native API -Version: 0.1.17 +Version: 0.1.18 Release: 1 Group: Multimedia/API License: Apache-2.0 @@ -20,6 +20,7 @@ BuildRequires: pkgconfig(iniparser) #BuildRequires: pkgconfig(capi-mediademuxer) %description +A Media Muxer library in Tizen Native API %package devel Summary: Multimedia Framework Muxer Library (DEV) @@ -27,11 +28,20 @@ Group: Multimedia/API Requires: %{name} = %{version}-%{release} %description devel +A Media Muxer library in Tizen Native API (Developement) + +%if 0%{?gcov:1} +%package gcov +Summary: Line Coverage of Media Muxer library in Tizen C API +Group: Development/Multimedia + +%description gcov +Collection of files related to Line Coverage. It is tested as gcov for a media muxer library in Tizen native API +%endif %prep %setup -q - %build %if 0%{?sec_build_binary_debug_enable} export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE" @@ -55,11 +65,19 @@ MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` make %{?jobs:-j%jobs} +%if 0%{?gcov:1} +mkdir -p gcov-obj +find . -name '*.gcno' -exec cp '{}' gcov-obj ';' +%endif %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_bindir} cp test/mediamuxer_test %{buildroot}%{_bindir} +%if 0%{?gcov:1} +mkdir -p %{buildroot}%{_datadir}/gcov/obj +install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj +%endif %make_install @@ -80,4 +98,7 @@ cp test/mediamuxer_test %{buildroot}%{_bindir} %{_libdir}/pkgconfig/*.pc %{_libdir}/libcapi-mediamuxer.so - +%if 0%{?gcov:1} +%files gcov +%{_datadir}/gcov/obj/* +%endif