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}
75 find . -name '*.gcno' -exec cp -rf '{}' gcov-obj ';'
79 export LD_LIBRARY_PATH=../../src/
80 ctest --verbose %{?_smp_mflags}
82 lcov -c --ignore-errors graph --no-external -q -d . -o component-manager.info
83 genhtml component-manager.info -o component-manager.out
84 zip -r component-manager.zip component-manager.out
85 install -m 0644 component-manager.zip %{buildroot}%{_datadir}/gcov/
93 mkdir -p %{buildroot}%{_datadir}/gcov/obj
94 install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
97 %post -p /sbin/ldconfig
99 %postun -p /sbin/ldconfig
103 %{_bindir}/component-manager-unit-test
107 %{_libdir}/libcapi-appfw-component-manager.so.*
108 %manifest %{name}.manifest
112 %{_includedir}/appfw/*.h
113 %{_libdir}/libcapi-appfw-component-manager.so
114 %{_libdir}/pkgconfig/*.pc
116 #################################################
117 # component-manager-gcov
118 #################################################