From 419a7c839382c0df531e8820b35dd9de20480168 Mon Sep 17 00:00:00 2001 From: Gilbok Lee Date: Thu, 4 Jul 2019 17:36:11 +0900 Subject: [PATCH] Make a gcov package - make a gcov package for measuring coverage [Version] 0.1.18 Change-Id: Iab9b4f4e5f28cdc49abe3652a2e5967f8c77ce50 --- packaging/capi-mediamuxer.spec | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) 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 -- 2.7.4