%_with_mesa 1
:Macros
-%ifarch %arm armv7l aarch64
- Substitute: mesa-devel pkgconfig(glesv2)
- #FIXME Substitute: pkgconfig(egl)
-%endif
+Substitute: mesa-devel pkgconfig(glesv2)
+#FIXME Substitute: pkgconfig(egl)
############################# wayland repositories #############################
%if "%_repository" == "ia32-wayland" || "%_repository" == "x86_64-wayland" || "%_repository" == "arm-wayland"|| "%_repository" == "arm"|| "%_repository" == "arm64" || "%_repository" == "arm64-wayland" || "%_repository" == "wayland" || "%_repository" == "standard"
+Prefer: coregl coregl-devel
+Prefer: libwayland-egl libwayland-egl-devel
+Substitute: mesa-libGLESv2 coregl
+Substitute: mesa-libEGL coregl
+
Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
%if "%_repository" == "emulator32-wayland"
-Prefer: mesa-libGLESv2
-Prefer: libwayland-egl
+Substitute: mesa-devel pkgconfig(glesv2)
+
Prefer: libgbm
-Prefer: mesa-libGL
-Prefer: mesa-libEGL
-Prefer: emulator-yagl
+Prefer: coregl coregl-devel
+Prefer: emulator-yagl emulator-yagl-devel
Substitute: pkgconfig(gles20) pkgconfig(egl) pkgconfig(glesv2)
Substitute: pkgconfig(gles11) pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)