Change-Id: I6c61842d2fd33bfb69b75d175cb8353871872fe7
Signed-off-by: Sunggyu Choi <sunggyu.choi@samsung.com>
make %{?jobs:-j%jobs}
-%if 0%{?gcov:1}
-mkdir -p gcov-obj
-find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
-%endif
-
%install
rm -rf %{buildroot}
%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