From 7114586a9e2fa750405f748cb5b85bbca7cb9cb8 Mon Sep 17 00:00:00 2001 From: Suyeon Hwang Date: Thu, 9 Jun 2022 11:36:12 +0900 Subject: [PATCH] Fix gcov package contents for automation Change-Id: I084fa48109e2af6347a0588e82ac15c7053f79a3 Signed-off-by: Suyeon Hwang --- packaging/tts.spec | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/packaging/tts.spec b/packaging/tts.spec index c363635..a934746 100644 --- a/packaging/tts.spec +++ b/packaging/tts.spec @@ -118,20 +118,6 @@ cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIBDIR=%{_libdir} -DBINDIR=%{_bindir make %{?jobs:-j%jobs} -%if 0%{?gcov:1} -mkdir -p gcov-obj -find . -name 'test_main.c.gcno' -exec rm {} \; -find . -name 'tts-engine-parser.c.gcno' -exec rm {} \; -find . -name '*_client.c.gcno' -exec rm {} \; -find . -name '*_config_*.gcno' -exec rm {} \; -find . -name '*_dbus.c.gcno' -exec rm {} \; -find . -name '*_setting.c.gcno' -exec rm {} \; -find . -name 'ttsd_*.gcno' -exec rm {} \; -find . -name 'ttse.c.gcno' -exec rm {} \; -find . -name '*.gcno' -exec cp '{}' gcov-obj ';' -%endif - - %install rm -rf %{buildroot} @@ -145,8 +131,10 @@ mv -f org.tizen.voice.ttsinterruptserver.tv.service org.tizen.voice.ttsinterrupt %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 %check -- 2.7.4