Commit 50a056b0 authored by Alexander Larsson's avatar Alexander Larsson
Browse files

Build Gtk+ with wayland support

parent cdd2748c
......@@ -109,7 +109,7 @@ Requires: pulseaudio-libs-devel
Requires: libsecret-devel
Requires: webkitgtk4-devel
Requires: libxkbcommon-devel libxkbcommon-x11-devel
Requires: libwayland-client-devel libwayland-cursor-devel
Requires: libwayland-client-devel libwayland-cursor-devel libwayland-egl-devel
%description
Meta package for Gnome SDK dependencies
......
......@@ -38,11 +38,10 @@ BuildRequires: mesa-libGL-devel
BuildRequires: libepoxy-devel
#BuildRequires: colord-devel
#BuildRequires: avahi-gobject-devel
#%if 0%{?with_wayland}
#BuildRequires: libwayland-client-devel >= %{wayland_version}
#BuildRequires: libwayland-cursor-devel >= %{wayland_version}
#BuildRequires: libxkbcommon-devel
#%endif
BuildRequires: libwayland-egl-devel
BuildRequires: libwayland-client-devel
BuildRequires: libwayland-cursor-devel
BuildRequires: libxkbcommon-devel
# required for icon theme apis to work
Requires: hicolor-icon-theme
......@@ -55,10 +54,8 @@ Requires(post): pango%{?_isa}
Requires: cairo%{?_isa}
Requires: cairo-gobject%{?_isa}
Requires: libXrandr%{?_isa}
#%if 0%{?with_wayland}
#Requires: libwayland-client%{?_isa} >= %{wayland_version}
#Requires: libwayland-cursor%{?_isa} >= %{wayland_version}
#%endif
Requires: libwayland-client%{?_isa}
Requires: libwayland-cursor%{?_isa}
%description
GTK+ is a multi-platform toolkit for creating graphical user
......@@ -118,11 +115,9 @@ widget toolkit.
--enable-xfixes \
--enable-xcomposite \
--enable-xdamage \
--enable-x11-backend
--enable-x11-backend \
--enable-wayland-backend
#%if 0%{?with_wayland}
# --enable-wayland-backend \
#%endif
# --enable-colord \
)
......
......@@ -28,6 +28,8 @@ BuildRequires: libXfixes-devel
BuildRequires: libXdamage-devel
BuildRequires: libXi-devel
BuildRequires: libxshmfence-devel
BuildRequires: libwayland-client-devel
BuildRequires: libwayland-server-devel
%description
Mesa
......@@ -113,6 +115,23 @@ Group: System Environment/Libraries
%description libglapi
Mesa shared glapi
%package libwayland-egl
Summary: Mesa libwayland-egl library
Group: System Environment/Libraries
Provides: libwayland-egl
%description libwayland-egl
Mesa libwayland-egl runtime library.
%package libwayland-egl-devel
Summary: Mesa libwayland-egl development package
Group: Development/Libraries
Requires: mesa-libwayland-egl%{?_isa} = %{version}-%{release}
Provides: libwayland-egl-devel
%description libwayland-egl-devel
Mesa libwayland-egl development package
%prep
%setup -q -n Mesa-%{version}
%patch1 -p1 -b .no-typeid
......@@ -139,7 +158,7 @@ export CXXFLAGS="$RPM_OPT_FLAGS -fno-rtti -fno-exceptions"
--enable-gles2 \
--enable-gallium-egl \
--disable-xvmc \
--with-egl-platforms=x11,drm \
--with-egl-platforms=x11,drm,wayland \
--enable-shared-glapi \
--enable-gbm \
--disable-opencl \
......@@ -197,6 +216,8 @@ rm -rf $RPM_BUILD_ROOT
%postun libglapi -p /sbin/ldconfig
%post libgbm -p /sbin/ldconfig
%postun libgbm -p /sbin/ldconfig
%post libwayland-egl -p /sbin/ldconfig
%postun libwayland-egl -p /sbin/ldconfig
%files libGL
%defattr(-,root,root,-)
......@@ -304,6 +325,17 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/gbm.h
%{_libdir}/pkgconfig/gbm.pc
%files libwayland-egl
%defattr(-,root,root,-)
%doc docs/COPYING
%{_libdir}/libwayland-egl.so.1
%{_libdir}/libwayland-egl.so.1.*
%files libwayland-egl-devel
%defattr(-,root,root,-)
%{_libdir}/libwayland-egl.so
%{_libdir}/pkgconfig/wayland-egl.pc
%changelog
* Tue Dec 9 2014 Alexander Larsson <alexl@redhat.com> - 10.3.5-1
- Initial version, based on F21
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment