添付ファイル | mesa-vl-wayland.diff [^] (2,415 バイト) 2013-01-17 12:24 [表示] [非表示]Index: mesa-vl.spec
===================================================================
--- mesa-vl.spec (revision 7321)
+++ mesa-vl.spec (working copy)
@@ -12,6 +12,8 @@
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
+%define build_wayland %{?_with_wayland:1}%{!?_with_wayland:0}
+
Summary: Mesa graphics libraries
Summary(ja): Mesa グラフィックスライブラリ
Name: mesa
@@ -44,6 +46,11 @@
BuildRequires: libudev-devel
BuildRequires: llvm-devel >= 3.1
BuildRequires: libxml2-python
+%if %{build_wayland}
+BuildRequires: libwayland-client-devel >= 1.0
+BuildRequires: libwayland-server-devel >= 1.0
+%endif
+
%description
Mesa
@@ -208,7 +215,26 @@
The mesa-source package provides the minimal source code needed to
build DRI enabled X servers, etc.
+# Wayland
+%if %{build_wayland}
+%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 = %{version}-%{release}
+Provides: libwayland-egl-devel
+
+%description libwayland-egl-devel
+Mesa libwayland-egl development package
+%endif
+
# compat32
%package -n compat32-%{name}-libGL
Summary: Mesa libGL runtime libraries and DRI drivers
@@ -363,7 +389,7 @@
--enable-gles1 \
--enable-gles2 \
--disable-gallium-egl \
- --with-egl-platforms=x11,drm \
+ --with-egl-platforms=x11,drm%{?_with_wayland:,wayland} \
--enable-shared-glapi \
--enable-gbm \
--enable-xa \
@@ -429,6 +455,10 @@
%postun libEGL -p /sbin/ldconfig
%post libGLES -p /sbin/ldconfig
%postun libGLES -p /sbin/ldconfig
+%if %{build_wayland}
+%post libwayland-egl -p /sbin/ldconfig
+%postun libwayland-egl -p /sbin/ldconfig
+%endif
%post libxatracker -p /sbin/ldconfig
%postun libxatracker -p /sbin/ldconfig
@@ -538,5 +568,18 @@
%{_includedir}/gbm.h
%{_libdir}/pkgconfig/gbm.pc
+%if %{build_wayland}
+%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
+%endif
+
%files libxatracker
%defattr(-,root,root,-)
%doc docs/COPYING
|