1 Name: capi-appfw-component-manager
2 Summary: Component Manager API
5 Group: Application Framework/API
7 Source0: %{name}-%{version}.tar.gz
9 Requires(post): /sbin/ldconfig
10 Requires(postun): /sbin/ldconfig
13 BuildRequires: pkgconfig(dlog)
14 BuildRequires: pkgconfig(aul)
15 BuildRequires: pkgconfig(capi-base-common)
16 BuildRequires: pkgconfig(glib-2.0)
17 BuildRequires: pkgconfig(gmock)
25 The Component Manager API provides functions to get information about running components.
28 Summary: Component Manager API (Development)
29 Group: Application Framework/Libraries
30 Requires: %{name} = %{version}-%{release}
33 The Component Manager API provides functions to get information about running components. (DEV)
35 #################################################
37 #################################################
39 Summary: GTest for Component Manager API
40 Group: Development/Libraries
43 %description unittests
44 GTest for Component Manager API
46 #################################################
48 #################################################
51 Summary: Component Manager API (gcov)
52 Group: Application Framework/Testing
55 Component Manager API gcov objects
63 export CFLAGS+=" -fprofile-arcs -ftest-coverage"
64 export CXXFLAGS+=" -fprofile-arcs -ftest-coverage"
65 export FFLAGS+=" -fprofile-arcs -ftest-coverage"
66 export LDFLAGS+=" -lgcov"
69 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
70 %cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
71 %__make %{?jobs:-j%jobs}
74 export LD_LIBRARY_PATH=../../src/
75 ctest --verbose %{?_smp_mflags}
78 lcov -c --ignore-errors graph --no-external -b . -d . -o %{name}.info
79 genhtml %{name}.info -o out --legend --show-details
87 builddir=$(basename $PWD)
88 gcno_obj_dir=%{buildroot}%{_datadir}/gcov/obj/%{name}/"$builddir"
89 mkdir -p "$gcno_obj_dir"
90 find . -name '*.gcno' -exec cp --parents '{}' "$gcno_obj_dir" ';'
93 cat << EOF > run-unittest.sh
100 echo "test_main start"
101 /usr/bin/component-manager-unit-test
105 echo "teardown start"
117 mkdir -p %{buildroot}%{_bindir}/tizen-unittests/%{name}
118 install -m 0755 run-unittest.sh %{buildroot}%{_bindir}/tizen-unittests/%{name}/
120 %post -p /sbin/ldconfig
122 %postun -p /sbin/ldconfig
125 %{_libdir}/libcapi-appfw-component-manager.so.*
126 %manifest %{name}.manifest
130 %{_includedir}/appfw/*.h
131 %{_libdir}/libcapi-appfw-component-manager.so
132 %{_libdir}/pkgconfig/*.pc
134 #################################################
135 # component-manager-gcov
136 #################################################
143 %{_bindir}/component-manager-unit-test
144 %{_bindir}/tizen-unittests/%{name}/run-unittest.sh