From: Seungbae Shin Date: Wed, 25 May 2022 02:09:40 +0000 (+0900) Subject: spec: Change gcov object installation X-Git-Tag: accepted/tizen/7.0/unified/hotfix/20221116.104911^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F36%2F275436%2F2;p=platform%2Fcore%2Fapi%2Fwav-player.git spec: Change gcov object installation [Version] 0.3.8 [Issue Type] Gcov Change-Id: Ie8ac82bd575c2b7ac688166670691877520c8475 --- diff --git a/packaging/capi-media-wav-player.spec b/packaging/capi-media-wav-player.spec index b7d7850..d36f6d1 100755 --- a/packaging/capi-media-wav-player.spec +++ b/packaging/capi-media-wav-player.spec @@ -1,6 +1,6 @@ Name: capi-media-wav-player Summary: A wav player library in Tizen C API -Version: 0.3.7 +Version: 0.3.8 Release: 0 Group: Multimedia/API License: Apache-2.0 @@ -52,17 +52,15 @@ MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` %endif %__make %{?jobs:-j%jobs} -%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} +builddir=$(basename $PWD) +gcno_obj_dir=%{buildroot}%{_datadir}/gcov/obj/%{name}/"$builddir" +mkdir -p "$gcno_obj_dir" +find . -name '*.gcno' -exec cp --parents '{}' "$gcno_obj_dir" ';' %endif %post -p /sbin/ldconfig