[Version] 0.2.6
[Issue Type] Gcov
Change-Id: I501f0ea69c0dc2f8855a0aa602b047172a46d59b
Name: capi-media-tone-player
Summary: A tone player library in Tizen C API
-Version: 0.2.5
+Version: 0.2.6
Release: 0
Group: Multimedia/API
License: Apache-2.0
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