diff --git a/mesa.spec b/mesa.spec index 6edc09b3f106bb976ff0d262e66abc57032bea7f..78a82f9c8d47701e55809044ba2b9e73a3554374 100644 --- a/mesa.spec +++ b/mesa.spec @@ -31,7 +31,11 @@ %endif %ifarch x86_64 aarch64 +%if %{?openEuler:1}0 %define with_ft 1 +%else +%define with_ft 0 +%endif %endif %global dri_drivers %{?platform_drivers} @@ -51,7 +55,7 @@ Name: mesa Summary: Mesa graphics libraries Version: 21.3.1 -Release: 5 +Release: 6 License: MIT URL: http://www.mesa3d.org @@ -325,7 +329,11 @@ sed -i -e 's/cpp_std=gnu++11/cpp_std=gnu++14/g' meson.build export ASFLAGS="--generate-missing-build-notes=yes" %meson -Dcpp_std=gnu++14 \ -Db_ndebug=true \ +%if 0%{?with_ft} -Dplatforms=x11,wayland%{?with_ft:,ohos} \ +%else + -Dplatforms=x11,wayland \ +%endif -Ddri3=enabled \ -Ddri-drivers=%{?dri_drivers} \ -Dosmesa=true \ @@ -581,6 +589,9 @@ done %endif %changelog +* Wed Mar 6 2024 zhangpan - 21.3.1-6 +- add macros to control if need ft_surface + * Tue Oct 17 2023 yanansong - 21.3.1-5 - Add fangtian