2 Summary: Message 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(openssl3)
17 BuildRequires: pkgconfig(gmock)
23 Requires(post): /sbin/ldconfig
24 Requires(post): coreutils
25 Requires(postun): /sbin/ldconfig
27 Provides: capi-message-port
28 Provides: libcapi-message-port.so.1
31 Message Port library package.
34 Summary: Message Port library (Development)
35 Group: Application Framework/Development
36 Requires: %{name} = %{version}-%{release}
39 Message Port library (Development) package.
43 Summary: Message Port API(gcov)
44 Group: Application Framework/Libraries
47 gcov objects of a message port library
51 Summary: %{name} unittests binary
53 %description unittests
62 export CFLAGS+=" -fprofile-arcs -ftest-coverage"
63 export CXXFLAGS+=" -fprofile-arcs -ftest-coverage"
64 export FFLAGS+=" -fprofile-arcs -ftest-coverage"
65 export LDFLAGS+=" -lgcov"
68 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
69 %cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
70 # Call make instruction with smp support
71 %__make %{?jobs:-j%jobs}
79 builddir=$(basename $PWD)
80 gcno_obj_dir=%{buildroot}%{_datadir}/gcov/obj/%{name}/"$builddir"
81 mkdir -p "$gcno_obj_dir"
82 find . -name '*.gcno' -exec cp --parents '{}' "$gcno_obj_dir" ';'
85 cat << EOF > run-unittest.sh
92 echo "test_main start"
93 /usr/bin/message-port-unit-tests
109 mkdir -p %{buildroot}%{_bindir}/tizen-unittests/%{name}
110 install -m 0755 run-unittest.sh %{buildroot}%{_bindir}/tizen-unittests/%{name}/
113 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir}/
117 lcov -c --ignore-errors graph --no-external -b . -d . -o %{name}.info
118 genhtml %{name}.info -o out --legend --show-details
121 %post -p /sbin/ldconfig
123 %postun -p /sbin/ldconfig
126 %manifest %{name}.manifest
127 %attr(0644,root,root) %{_libdir}/lib%{name}.so.*
128 %attr(0644,root,root) %{_libdir}/libcapi-message-port.so.*
129 %config %{_sysconfdir}/dbus-1/session.d/message-port.conf
130 %license LICENSE.APLv2
133 %{_includedir}/appfw/*.h
134 %{_libdir}/pkgconfig/*.pc
135 %{_libdir}/lib%{name}.so
138 %attr(0755,root,root) %{_bindir}/message-port-unit-test
139 %attr(0755,root,root) %{_bindir}/tizen-unittests/%{name}/run-unittest.sh