Name: capi-ui-efl-util
Summary: An EFL utility library in Tizen C API
-Version: 0.7.11
+Version: 0.7.22
Release: 1
Group: Graphics & UI Framework/API
License: Apache-2.0
BuildRequires: pkgconfig(capi-system-info)
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(libtbm)
+BuildRequires: gtest-devel
%{!?TZ_SYS_RO_SHARE: %global TZ_SYS_RO_SHARE /usr/share}
%description devel
%devel_desc
+%package -n efl-util-tests
+Summary: Tizen EFL utility library unit tests package
+Group: Development/Libraries
+
+%description -n efl-util-tests
+Test module for testing efl-util APIs
+
%if 0%{?gcov:1}
%package -n capi-ui-efl-util-gcov
Summary: efl-util gcov data package
cp %{SOURCE1001} .
%build
-export CFLAGS+=" -DEFL_BETA_API_SUPPORT "
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%if 0%{?gcov:1}
+export CFLAGS+=" -DEFL_BETA_API_SUPPORT -fPIC -fprofile-arcs -ftest-coverage -DTIZEN_TEST_GCOV "
%cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DEFLUTILGCOV=ON \
%else
+export CFLAGS+=" -DEFL_BETA_API_SUPPORT "
%cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DEFLUTILGCOV=OFF \
%endif
%{_libdir}/libcapi-ui-efl-util.so
%exclude %{_includedir}/ui/config.h
+%files -n efl-util-tests
+%defattr(-,root,root,-)
+%{_bindir}/efl-util-tests
+
%if 0%{?gcov:1}
%files -n capi-ui-efl-util-gcov
%{_datadir}/gcov/obj/*