%bcond_with x
%bcond_with wayland
%define UTEST_PACKAGE 1
+%define UTEST_GCOV 0
Name: libtbm
-Version: 2.1.7
+Version: 2.10.0
Release: 1
License: MIT
Summary: The library for Tizen Buffer Manager
UTEST="yes"
%endif
+%if "%{UTEST_GCOV}" == "1"
+CFLAGS+=" -fprofile-arcs -ftest-coverage -DTIZEN_TEST_GCOV"
+CXXFLAGS+=" -fprofile-arcs -ftest-coverage -DTIZEN_TEST_GCOV"
+LDFLAGS+=" -lgcov"
+%endif
+
%if %{with wayland}
%reconfigure --prefix=%{_prefix} --with-tbm-platform=WAYLAND --with-utests=${UTEST} \
CFLAGS="${CFLAGS} -Wall -Werror" LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
%{_includedir}/tbm_surface_queue.h
%{_includedir}/tbm_bufmgr_backend.h
%{_includedir}/tbm_type.h
+%{_includedir}/tbm_type_common.h
%{_includedir}/tbm_drm_helper.h
%{_includedir}/tbm_sync.h
+%{_includedir}/tbm_bo.h
+%{_includedir}/tbm_log.h
+%{_includedir}/tbm_backend.h
%{_libdir}/libtbm.so
%{_libdir}/pkgconfig/libtbm.pc