+# to build examples
+%define enable_examples 0
+
Name: wayland-extension
-Version: 1.1.25
+Version: 1.3.60
Release: 0
-Summary: Wayland Extension Protocol
+Summary: Wayland extenstion protocols that add functionality not available in the Wayland core protocol
License: MIT
Group: Graphics & UI Framework/Wayland Window System
URL: http://www.tizen.org/
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 is a protocol for tizen window system.
+wayland-extension contains Wayland protocols that add functionality not available in the Wayland core protocol.
%package -n libwayland-extension-client
Group: Graphics & UI Framework/Wayland Window System
This package contains all necessary include files and libraries needed
to develop a compositor that require these.
+%package -n wayland-protocols
+Summary: Wayland upstream protocols
+Group: Graphics & UI Framework/Development
+Requires: libwayland-client
+
+%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
cp %{SOURCE1001} .
%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
%_libdir/*-server.so
%_libdir/pkgconfig/*-server.pc
+%files -n wayland-protocols
+%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