%define enable_examples 0
Name: wayland-extension
-Version: 1.3.0
+Version: 1.3.60
Release: 0
Summary: Wayland extenstion protocols that add functionality not available in the Wayland core protocol
License: MIT
BuildRequires: pkgconfig
BuildRequires: pkgconfig(wayland-server)
BuildRequires: pkgconfig(wayland-client)
+BuildRequires: pkgconfig(gmock)
# requires to build examples
%if "%{enable_examples}" == "1"
%description -n wayland-protocols
wayland-protocols contains Wayland upstream protocols that add functionality not available in the Wayland core protocol
+%package -n libwayland-extension-unittests
+Summary: Unit test cases for the libwayland-extension
+Group: Graphics & UI Framework/Development
+Requires: libwayland-client
+Requires: libwayland-server
+
+%description -n libwayland-extension-unittests
+Unit test cases for the libwayland-extension
%prep
%setup -q
export CFLAGS+=" -Wall -Werror"
%if "%{enable_examples}" == "1"
export CFLAGS+=" -DEFL_BETA_API_SUPPORT "
- %reconfigure --disable-static --enable-build-examples
+ %reconfigure --disable-static --enable-build-examples LIBDIR=%{_libdir}
%else
- %reconfigure --disable-static
+ %reconfigure --disable-static LIBDIR=%{_libdir}
%endif
make %{?_smp_mflags}
%manifest %{name}.manifest
%license COPYING
%defattr(-,root,root)
+%_datadir/wayland-extension/protocol/tizen/*
%_datadir/wayland-extension/protocol/stable/*
+%_datadir/wayland-extension/protocol/staging/*
%_datadir/wayland-extension/protocol/unstable/*
%_libdir/pkgconfig/wayland-protocols.pc
+%files -n libwayland-extension-unittests
+%defattr(-,root,root,-)
+%{_bindir}/libwayland-extension-unittests
+
%changelog