Name: rpc-port
Summary: RPC Port library
-Version: 1.3.10
+Version: 1.3.28
Release: 0
Group: Application Framework/Libraries
License: Apache-2.0
BuildRequires: pkgconfig(cynara-creds-gdbus)
BuildRequires: pkgconfig(uuid)
+%if 0%{?gcov:1}
+BuildRequires: lcov
+BuildRequires: zip
+%endif
+
Requires(post): /sbin/ldconfig
Requires(post): coreutils
Requires(postun): /sbin/ldconfig
find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
%endif
+%check
+ctest --output-on-failure %{?_smp_mflags}
+%if 0%{?gcov:1}
+lcov -c --ignore-errors graph --no-external -q -d . -o rpc-port.info
+genhtml rpc-port.info -o rpc-port.out
+zip -r rpc-port.zip rpc-port.out rpc-port.info
+install -m 0644 rpc-port.zip %{buildroot}%{_datadir}/gcov/
+%endif
+
%install
rm -rf %{buildroot}
install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
%endif
-
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
#################################################
%if 0%{?gcov:1}
%files gcov
-%{_datadir}/gcov/obj/*
+%{_datadir}/gcov/*
%endif