[cogl] Fix compile on RHEL

Richard Hughes rhughes at fedoraproject.org
Mon Oct 27 21:15:59 UTC 2014


commit 673cab06193f21175b687820b3dc687dc617aedb
Author: Richard Hughes <richard at hughsie.com>
Date:   Mon Oct 27 20:37:33 2014 +0000

    Fix compile on RHEL

 cogl.spec |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/cogl.spec b/cogl.spec
index c6b7ac9..4936e26 100644
--- a/cogl.spec
+++ b/cogl.spec
@@ -6,7 +6,7 @@
 
 Name:          cogl
 Version:       1.18.2
-Release:       5%{?dist}
+Release:       6%{?dist}
 Summary:       A library for using 3D graphics hardware to draw pretty pictures
 
 Group:         Development/Libraries
@@ -26,18 +26,18 @@ BuildRequires: libXdamage-devel
 BuildRequires: libXext-devel
 BuildRequires: libXfixes-devel
 BuildRequires: mesa-libGL-devel
+BuildRequires: mesa-libgbm-devel
 BuildRequires: pango-devel
 BuildRequires: pkgconfig
 BuildRequires: gstreamer1-devel
 BuildRequires: gstreamer1-plugins-base-devel
 
-%if %{with_wayland}
+%if 0%{?with_wayland}
 BuildRequires: libwayland-server-devel
 BuildRequires: libwayland-client-devel
 BuildRequires: libwayland-cursor-devel
 BuildRequires: libwayland-egl-devel
 BuildRequires: libxkbcommon-devel
-BuildRequires: mesa-libgbm-devel
 %endif
 
 %description
@@ -97,8 +97,10 @@ CFLAGS="$RPM_OPT_FLAGS -fPIC"
   --enable-cogl-gst \
   --enable-introspection=yes \
   --enable-kms-egl-platform \
+%if 0%{?with_wayland}
   --enable-wayland-egl-platform \
   --enable-wayland-egl-server \
+%endif
   --enable-xlib-egl-platform \
   %{?with_tests:--enable-installed-tests}
 
@@ -149,6 +151,9 @@ chrpath --delete $RPM_BUILD_ROOT%{_libdir}/gstreamer-1.0/libgstcogl.so
 %endif
 
 %changelog
+* Mon Oct 27 2014 Richard Hughes <rhughes at redhat.com> - 1.18.2-6
+- Fix compile on RHEL
+
 * Fri Aug 22 2014 Kalev Lember <kalevlember at gmail.com> - 1.18.2-5
 - Remove lib64 rpaths (#1132876)
 


More information about the scm-commits mailing list