1 Name: capi-system-device
2 Summary: A Device library in TIZEN C API
7 Source0: %{name}-%{version}.tar.gz
8 Source1: capi-system-device.manifest
10 BuildRequires: pkgconfig(capi-base-common)
11 BuildRequires: pkgconfig(capi-system-info)
12 BuildRequires: pkgconfig(dlog)
13 BuildRequires: pkgconfig(vconf)
14 BuildRequires: pkgconfig(gio-2.0)
15 BuildRequires: pkgconfig(tracker)
21 A Device library in TIZEN C API package.
24 Summary: A Device library in TIZEN C API (Development)
25 Group: System/Development
26 Requires: %{name} = %{version}-%{release}
29 A Device library in TIZEN C API (Development) package.
34 Summary: A Device library in TIZEN C API (gcov)
35 Group: System/Libraries
38 A Device library in TIZEN C API (gcov)
46 export CFLAGS+=" -fprofile-arcs -ftest-coverage"
47 export LDFLAGS+=" -lgcov"
51 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
52 %cmake . -DFULLVER=%{version} \
53 -DMAJORVER=${MAJORVER}
55 %__make %{?jobs:-j%jobs}
59 find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
66 mkdir -p %{buildroot}%{_datadir}/gcov/obj
67 install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
70 %post -p /sbin/ldconfig
72 %postun -p /sbin/ldconfig
75 %manifest %{name}.manifest
76 %license LICENSE.Apache-2.0
77 %{_libdir}/libcapi-system-device.so.*
78 /etc/deviced/device/*.conf
81 %manifest %{name}.manifest
82 %license LICENSE.Apache-2.0
83 %{_includedir}/device/*.h
84 %{_includedir}/system/*.h
85 %{_libdir}/pkgconfig/*.pc
86 %{_libdir}/libcapi-system-device.so