2 Summary: Common header files of Tizen Native API
7 Source0: %{name}-%{version}.tar.gz
14 Requires(post): /sbin/ldconfig
15 Requires(postun): /sbin/ldconfig
18 Common header files of Tizen Native API
22 Summary: Common header files of Tizen Native API (Development)
24 Requires: %{name} = %{version}-%{release}
27 Common header files of Tizen Native API
31 Summary: Common header files of Tizen Native API (gcov)
34 Common header files of Tizen Native API gcov objects
42 export CFLAGS+=" -fprofile-arcs -ftest-coverage"
43 export CXXFLAGS+=" -fprofile-arcs -ftest-coverage"
44 export FFLAGS+=" -fprofile-arcs -ftest-coverage"
45 export LDFLAGS+=" -lgcov"
48 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
50 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_INSTALL_DIR:PATH=%{_libdir} -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \
51 -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
60 builddir=$(basename $PWD)
61 gcno_obj_dir=%{buildroot}%{_datadir}/gcov/obj/%{name}/"$builddir"
62 mkdir -p "$gcno_obj_dir"
63 find . -name '*.gcno' -exec cp --parents '{}' "$gcno_obj_dir" ';'
66 %post -p /sbin/ldconfig
68 %postun -p /sbin/ldconfig
72 %manifest %{name}.manifest
73 %{_libdir}/libcapi-base-common.so.*
78 %{_libdir}/pkgconfig/capi-base-common.pc
79 %{_libdir}/libcapi-base-common.so
83 %{_datadir}/gcov/obj/*