1 Name: capi-system-runtime-info
2 Summary: A Runtime Information library in Core API
7 Source0: %{name}-%{version}.tar.gz
8 Source1001: %{name}.manifest
11 BuildRequires: pkgconfig(dlog)
12 BuildRequires: pkgconfig(vconf)
13 BuildRequires: pkgconfig(capi-base-common)
14 BuildRequires: pkgconfig(capi-system-info)
15 BuildRequires: pkgconfig(glib-2.0)
16 BuildRequires: pkgconfig(hal-api-common)
17 BuildRequires: pkgconfig(hal-api-device)
18 Requires(post): /sbin/ldconfig
19 Requires(postun): /sbin/ldconfig
25 Summary: A Runtime Information library in Core API (Development)
26 Group: Development/System
27 Requires: %{name} = %{version}-%{release}
28 Requires: pkgconfig(capi-base-common)
35 Summary: A Runtime Information test binary
36 Requires: %{name} = %{version}-%{release}
40 Binary for testing Runtime-info APIs
44 %package -n runtime-info-gcov
45 Summary: A Runtime Information gcov test file
46 %description -n runtime-info-gcov
47 gcno files for Runtime-info line coverage test
57 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
58 %cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DGCOV=%{?gcov:1}%{!?gcov:0}
64 find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
72 mkdir -p %{buildroot}%{_datadir}/gcov/obj
73 install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
77 %post -p /sbin/ldconfig
79 %postun -p /sbin/ldconfig
82 %manifest %{name}.manifest
83 %license LICENSE.APLv2
87 %{_includedir}/system/runtime_info.h
88 %{_includedir}/system/runtime_info-internal.h
89 %{_libdir}/pkgconfig/*.pc
93 %attr(700,root,root) %{_bindir}/runtime-info-test
96 %files -n runtime-info-gcov
97 %{_datadir}/gcov/obj/*