]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
nit
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 24 Oct 2018 11:48:39 +0000 (13:48 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 24 Oct 2018 11:48:39 +0000 (13:48 +0200)
builder-support/specs/pdns.spec

index bd6dd147b22094069b874144288590bd9d7eecf9..067a6d16caf7a81ea7283b4ca42272b15be2c826 100644 (file)
@@ -39,8 +39,10 @@ BuildRequires: boost148-program-options
 Requires(pre): shadow-utils
 %ifarch aarch64
 BuildRequires: lua-devel
+%define lua_implementation lua
 %else
 BuildRequires: luajit-devel
+%define lua_implementation luajit
 %endif
 BuildRequires: libsodium-devel
 BuildRequires: bison
@@ -206,11 +208,7 @@ export CPPFLAGS="-DLDAP_DEPRECATED"
   --disable-dependency-tracking \
   --disable-silent-rules \
   --with-modules='' \
-%ifarch aarch64
-  --with-lua=lua \
-%else
-  --with-lua=luajit \
-%endif
+  --with-lua=%{lua_implementation} \
   --with-dynmodules='%{backends} random' \
   --enable-tools \
   --enable-libsodium \