avoid hard coded dependencies
authorJuan Zhao <juan.j.zhao@intel.com>
Mon, 2 Sep 2013 09:01:57 +0000 (17:01 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 22 Nov 2013 02:03:08 +0000 (10:03 +0800)
only IVI platform's gl is provided by mesa-devel, and there is many other
package may provide gl. And this should be depnd on which platform it is using.

So change it to find out the "gl.pc" provider will be the right fix.

Change-Id: Ifcf538f6c7b040db69003fcbf269e1987be7301a

packaging/cairo.spec

index 3b98c1d..23b6199 100644 (file)
@@ -29,7 +29,7 @@ BuildRequires:  pkgconfig(xcb)
 BuildRequires:  pkgconfig(xcb-shm)
 %endif
 %if %{with cairo_gl_backend}
-BuildRequires:  mesa-devel
+BuildRequires:  pkgconfig(gl)
 %if %{with wayland}
 BuildRequires: pkgconfig(wayland-egl)
 %endif