+%bcond_with utest
+
#TPL VERSION MACROS
%define TPL_VERSION_MAJOR 1
%define TPL_VERSION_MINOR 4
Development header files for use with Wayland protocol
%endif
+%if %{with utest} || "%{ENABLE_TPL_TEST}" == "1"
+%package utest
+Summary: Unit test module of libtpl-egl
+BuildRequires: gtest-devel
+
+%description utest
+Unit test module of libtpl-egl (previously known as tpl-test)
+%endif
+
%prep
%setup -q
--with-wayland=yes \
--enable-wayland-thread=%{ENABLE_DEFAULT_WL_THREAD} \
%endif
+%if %{with utest} || "%{ENABLE_TPL_TEST}" == "1"
+ --with-utest=yes \
+%endif
--enable-dlog=%{ENABLE_DLOG} \
--enable-dlog-default=%{ENABLE_DEFAULT_LOG} \
--enable-dump=%{ENABLE_DEFAULT_DUMP} \
%{_libdir}/libwayland-egl.so
%{_libdir}/pkgconfig/wayland-egl.pc
%endif
+
+%if %{with utest} || "%{ENABLE_TPL_TEST}" == "1"
+%files utest
+%defattr(-,root,root,-)
+%{_bindir}/tpl-test
+%endif