Requires: security-config
%if 0%{?gcov:1}
BuildRequires: pkgconfig(gmock)
+BuildRequires: lcov
%endif
#Requires: %{name}-compat = %{version}-%{release}
Bluetooth agent binary compiled for IPSP(Internet Protocol Support Profile)
%if 0%{?gcov:1}
-%package test
+%package gcov
Summary: Test package for bluetooth-agent
Group: TO_BE/FILLED
Requires: %{name} = %{version}-%{release}
-%description test
+%description gcov
This package is C-API test application.
%endif
make VERBOSE=1
+%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
+install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
+%endif
+
# This usage of profile macro does NOT conflict 4.0 configurability.
#%if "%{?profile}" != "mobile" && "%{?profile}" != "tv"
# Original: wearable, ivi. Added: common, "undefined"
%{_sysconfdir}/dbus-1/system.d/bluetooth-ipsp-agent.conf
%if 0%{?gcov:1}
-%files test
+%files gcov
%manifest %{name}.manifest
%{_bindir}/gtest-bluetooth-agent
%{_libdir}/lib*
+%{_datadir}/gcov/obj/*
%endif