+# to build examples
+%define enable_examples 0
+
Name: wayland-extension
-Version: 1.2.2
+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"
+BuildRequires: pkgconfig(evas)
+BuildRequires: pkgconfig(ecore)
+BuildRequires: pkgconfig(ecore-wl2)
+BuildRequires: pkgconfig(elementary)
+BuildRequires: pkgconfig(libtbm)
+BuildRequires: pkgconfig(wayland-tbm-client)
+# NB: It causes a circular dependency, however we have no choice
+# but to use the elm to build examples.
+BuildRequires: wayland-extension-client-devel
+%endif
%description
wayland-extension contains Wayland protocols that add functionality not available in the Wayland core protocol.
%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
%build
export CFLAGS+=" -Wall -Werror"
-%reconfigure --disable-static
+%if "%{enable_examples}" == "1"
+ export CFLAGS+=" -DEFL_BETA_API_SUPPORT "
+ %reconfigure --disable-static --enable-build-examples LIBDIR=%{_libdir}
+%else
+ %reconfigure --disable-static LIBDIR=%{_libdir}
+%endif
make %{?_smp_mflags}
%install
%license COPYING
%defattr(-,root,root)
%_libdir/*-client.so.0*
+%if "%{enable_examples}" == "1"
+%{_bindir}/*
+%endif
%files -n libwayland-extension-server
%manifest %{name}.manifest
%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