spec: add wayland segment 31/11231/1
authorJuan Zhao <juan.j.zhao@intel.com>
Tue, 22 Oct 2013 08:08:46 +0000 (16:08 +0800)
committerJuan Zhao <juan.j.zhao@intel.com>
Wed, 23 Oct 2013 00:59:32 +0000 (08:59 +0800)
disable X in wayland segment

Change-Id: I03d025bb213e2eac8a653b8b06a159f863841c8e

packaging/ecore.spec

index 39cdfdc..333b7ca 100644 (file)
@@ -6,11 +6,12 @@ Group:      Graphics & UI Framework/Libraries
 License:    BSD-2-Clause
 URL:        http://www.enlightenment.org
 Source0:    %{name}-%{version}.tar.gz
-BuildRequires:  gettext-tools
-BuildRequires:  pkgconfig(eina)
-BuildRequires:  pkgconfig(eet)
-BuildRequires:  pkgconfig(evas)
-BuildRequires:  pkgconfig(glib-2.0)
+%if %{with wayland}
+BuildRequires:  pkgconfig(wayland-egl)
+BuildRequires:  pkgconfig(egl)
+BuildRequires:  pkgconfig(wayland-cursor)
+BuildRequires:  pkgconfig(xkbcommon)
+%else
 BuildRequires:  pkgconfig(xcursor)
 BuildRequires:  pkgconfig(xrender)
 BuildRequires:  pkgconfig(xinerama)
@@ -22,9 +23,15 @@ BuildRequires:  pkgconfig(xcomposite)
 BuildRequires:  pkgconfig(xdamage)
 BuildRequires:  pkgconfig(xextproto)
 BuildRequires:  pkgconfig(xtst)
-BuildRequires:  curl-devel
-BuildRequires:  libjpeg-devel
 BuildRequires:  pkgconfig(xgesture)
+%endif
+BuildRequires:  gettext-tools
+BuildRequires:  pkgconfig(eina)
+BuildRequires:  pkgconfig(eet)
+BuildRequires:  pkgconfig(evas)
+BuildRequires:  pkgconfig(glib-2.0)
+BuildRequires:  pkgconfig(libcurl)
+BuildRequires:  libjpeg-devel
 
 
 %description
@@ -47,7 +54,11 @@ Requires:   ecore-imf-evas
 Requires:   ecore-input
 Requires:   ecore-input-evas
 Requires:   ecore-ipc
+%if %{with wayland}
+Requires:   ecore-wayland
+%else
 Requires:   ecore-x
+%endif
 Requires:   ecore-con
 
 %description devel
@@ -118,12 +129,25 @@ Requires:   %{name} = %{version}-%{release}
 %description ipc
 Core abstraction layer for enlightenment (ipc)
 
+%if %{with wayland}
+%package wayland
+Summary:    Enlightened Core interface library (wayland)
+Group:      Development/Libraries
+Requires:   %{name} = %{version}-%{release}
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+%description wayland
+Core abstraction layer for enlightenment (wayland)
+%else
 %package x
 Summary:    Enlightened Core X interface library (x)
 Requires:   %{name} = %{version}-%{release}
 
 %description x
 Core abstraction layer for enlightenment (x)
+%endif
+
 
 %package fb
 Summary:    Enlightened Core X interface library (fb)
@@ -142,6 +166,16 @@ export CFLAGS+=" -fvisibility=hidden -fPIC"
 export LDFLAGS+=" -fvisibility=hidden -Wl,--hash-style=both -Wl,--as-needed"
 
 %autogen
+%if %{with wayland}
+%configure --prefix=/usr \
+        --enable-ecore-evas-wayland-shm \
+       --enable-ecore-evas-wayland-egl \
+       --enable-ecore-wayland \
+       --enable-ecore-evas \
+       --enable-glib-integration-always \
+       --disable-ecore-x
+
+%else
 %configure --disable-static \
        --enable-ecore-fb \
        --enable-dependency-tracking \
@@ -160,7 +194,7 @@ export LDFLAGS+=" -fvisibility=hidden -Wl,--hash-style=both -Wl,--as-needed"
        --disable-xim \
        --disable-ecore-imf-xim \
        --disable-ecore-imf-scim
-
+%endif
 make %{?jobs:-j%jobs}
 
 %install
@@ -211,11 +245,16 @@ make %{?jobs:-j%jobs}
 
 %postun ipc -p /sbin/ldconfig
 
+%if %{with wayland}
+%post wayland -p /sbin/ldconfig
+
+%postun wayland -p /sbin/ldconfig
 
+%else
 %post x -p /sbin/ldconfig
 
 %postun x -p /sbin/ldconfig
-
+%endif
 
 %post fb -p /sbin/ldconfig
 
@@ -239,7 +278,11 @@ make %{?jobs:-j%jobs}
 %{_libdir}/libecore_input.so
 %{_libdir}/libecore_input_evas.so
 %{_libdir}/libecore_ipc.so
+%if %{with wayland}
+%{_libdir}/libecore_wayland.so
+%else
 %{_libdir}/libecore_x.so
+%endif
 %{_libdir}/libecore_fb.so
 
 %files tools
@@ -286,10 +329,16 @@ make %{?jobs:-j%jobs}
 %{_libdir}/libecore_ipc.so.*
 %manifest %{name}-ipc.manifest
 
+%if %{with wayland}
+%files wayland
+%defattr(-,root,root,-)
+%{_libdir}/libecore_wayland.so.*
+%else
 %files x
 %defattr(-,root,root,-)
 %{_libdir}/libecore_x.so.*
 %manifest %{name}-x.manifest
+%endif
 
 %files fb
 %defattr(-,root,root,-)