From 4ad808cfb80f59afc5c968871854631a45c86cfd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Adam=20Go=C5=82=C4=99biowski?= Date: Tue, 9 Apr 2019 10:46:04 +0200 Subject: [PATCH] - disable lua on x32 (due to no luajit) --- gegl.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gegl.spec b/gegl.spec index 2ff32ff..e56cac5 100644 --- a/gegl.spec +++ b/gegl.spec @@ -3,6 +3,7 @@ %bcond_with mmx # use MMX instructions %bcond_with sse # use SSE instructions %bcond_without doc # apidocs +%bcond_without lua # without lua support %bcond_without static_libs # static library %bcond_without introspection # API introspection %bcond_without vala # Vala API @@ -17,6 +18,10 @@ %undefine with_vala %endif +%ifarch x32 +%undefine with_lua +%endif + %define babl_version 0.1.62 %define mrg_version 0.1.2-1.20190322.1 @@ -68,8 +73,10 @@ BuildRequires: libtiff-devel >= 4.0.0 BuildRequires: libtool >= 2:2.2 BuildRequires: libv4l-devel >= 1.0.1 BuildRequires: libwebp-devel >= 0.5.0 +%if %{with lua} BuildRequires: luajit-devel >= 2.0.4 BuildRequires: lua51-devel >= 5.1.5-2 +%endif BuildRequires: mrg-devel >= %{mrg_version} BuildRequires: pango-devel >= 1:1.38.0 BuildRequires: perl-base @@ -189,7 +196,8 @@ API języka Vala dla biblioteki gegl. %{!?with_sse:--disable-sse} \ --disable-silent-rules \ %{?with_static_libs:--enable-static} \ - --with-vala%{!?with_vala:=no} + --with-vala%{!?with_vala:=no} \ + %{__with_without lua} %{__make} %install -- 2.43.0