summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJung Jihoon <jh8801.jung@samsung.com>2019-07-02 19:26:06 +0900
committerJung Jihoon <jh8801.jung@samsung.com>2019-07-02 19:27:24 +0900
commit657c246a7cf0f8fc2bca1a06d16ea5f0db379c99 (patch)
tree99f5460cc319d8441a8d4cfbd57d275c159035f9
parent77bd29331f57d7f7d8bc5f813a1b4ced107b2f78 (diff)
downloadwifi-mesh-accepted/tizen_6.0_unified.tar.gz
wifi-mesh-accepted/tizen_6.0_unified.tar.bz2
wifi-mesh-accepted/tizen_6.0_unified.zip
Change-Id: I642859e562009813f53f40a6dd3aa764e77c896c Signed-off-by: Jung Jihoon <jh8801.jung@samsung.com>
-rw-r--r--packaging/capi-network-wifi-mesh.spec23
1 files changed, 23 insertions, 0 deletions
diff --git a/packaging/capi-network-wifi-mesh.spec b/packaging/capi-network-wifi-mesh.spec
index 12e78b0..67cbfdf 100644
--- a/packaging/capi-network-wifi-mesh.spec
+++ b/packaging/capi-network-wifi-mesh.spec
@@ -29,6 +29,14 @@ Requires: %{name} = %{version}-%{release}
%description devel
Mesh Core API library (development library)
+%if 0%{?gcov:1}
+%package gcov
+Summary: A Wi-Fi Mesh gcov Tool
+Group: Network & Connectivity/Development
+%description gcov
+Wi-Fi Mesh gcov objects
+%endif
+
%prep
%setup -q
cp %{SOURCE1001} .
@@ -51,10 +59,20 @@ cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
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
+install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
+%endif
+
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
@@ -69,3 +87,8 @@ rm -rf %{buildroot}
%{_includedir}/network/*.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/libcapi-network-wifi-mesh.so
+
+%if 0%{?gcov:1}
+%files gcov
+%{_datadir}/gcov/obj/*
+%endif