2 Summary: RPC Port library
5 Group: Application Framework/Libraries
7 Source0: %{name}-%{version}.tar.gz
8 Source1001: %{name}.manifest
10 BuildRequires: pkgconfig(dlog)
11 BuildRequires: pkgconfig(bundle)
12 BuildRequires: pkgconfig(glib-2.0)
13 BuildRequires: pkgconfig(aul)
14 BuildRequires: pkgconfig(pkgmgr)
15 BuildRequires: pkgconfig(pkgmgr-info)
16 BuildRequires: pkgconfig(gmock)
17 BuildRequires: pkgconfig(cynara-client)
18 BuildRequires: pkgconfig(cynara-creds-gdbus)
19 BuildRequires: pkgconfig(uuid)
26 Requires(post): /sbin/ldconfig
27 Requires(post): coreutils
28 Requires(postun): /sbin/ldconfig
30 Recommends: amd-mod-rpc-port
33 RPC Port library package.
36 Summary: RPC Port library (Development)
37 Group: Application Framework/Development
38 Requires: %{name} = %{version}-%{release}
41 RPC Port library (Development) package.
43 #################################################
45 #################################################
46 %package -n rpc-port-unittests
47 Summary: GTest for rpc-port
48 Group: Development/Libraries
51 %description -n rpc-port-unittests
54 #################################################
56 #################################################
59 Summary: RPC Port(gcov)
60 Group: Application Framework/Testing
72 export CFLAGS+=" -fprofile-arcs -ftest-coverage"
73 export CXXFLAGS+=" -fprofile-arcs -ftest-coverage"
74 export FFLAGS+=" -fprofile-arcs -ftest-coverage"
75 export LDFLAGS+=" -lgcov"
78 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
79 %cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
80 # Call make instruction with smp support
81 %__make %{?jobs:-j%jobs}
85 find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
89 ctest --output-on-failure %{?_smp_mflags}
91 lcov -c --ignore-errors graph --no-external -q -d . -o rpc-port.info
92 genhtml rpc-port.info -o rpc-port.out
93 zip -r rpc-port.zip rpc-port.out rpc-port.info
94 install -m 0644 rpc-port.zip %{buildroot}%{_datadir}/gcov/
103 mkdir -p %{buildroot}%{_datadir}/gcov/obj
104 install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
107 %post -p /sbin/ldconfig
109 %postun -p /sbin/ldconfig
111 %post -n rpc-port-unittests
113 %{_bindir}/rpc-port_unittests
117 %manifest %{name}.manifest
118 %attr(0644,root,root) %{_libdir}/lib%{name}.so.*
119 %license LICENSE.APLv2
122 %{_includedir}/rpc-port/*.h
123 %{_libdir}/pkgconfig/*.pc
124 %{_libdir}/lib%{name}.so
126 #################################################
128 #################################################
129 %files -n rpc-port-unittests
130 %{_bindir}/rpc-port_unittests
132 #################################################
134 #################################################