%description common-devel
common smartcard service.
+%if 0%{?gcov:1}
+%package gcov
+Summary: A Smartcard gcov Tool
+Group: Network & Connectivity/Development
+
+%description gcov
+Smartcard gcov objects
+%endif
+
%prep
%setup -q
%install
%make_install
+%if 0%{?gcov:1}
+mkdir -p gcov-obj
+find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
+%endif
+
+%if 0%{?gcov:1}
+mkdir -p %{buildroot}%{_datadir}/gcov/obj
+install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
+%endif
+
mkdir -p %{buildroot}/usr/lib/systemd/system/
cp -af %{SOURCE1} %{buildroot}/usr/lib/systemd/system/
%{_includedir}/%{name}-common/*
%{_libdir}/lib%{name}-common.so
%{_libdir}/pkgconfig/%{name}-common.pc
+
+%if 0%{?gcov:1}
+%files gcov
+%{_datadir}/gcov/obj/*
+%endif