]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
more nit 7043/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 24 Oct 2018 12:09:49 +0000 (14:09 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 24 Oct 2018 12:09:49 +0000 (14:09 +0200)
builder-support/specs/dnsdist.spec
builder-support/specs/pdns-recursor.spec

index cf83fc06fe62b4a77c5d0d26f719498c4fad5fe2..b949c01371b540123712c059389f74abcfe9f446 100644 (file)
@@ -29,8 +29,10 @@ BuildRequires: gnutls-devel
 BuildRequires: libsodium-devel
 %ifarch aarch64
 BuildRequires: lua-devel
+%define lua_implementation lua
 %else
 BuildRequires: luajit-devel
+%define lua_implementation luajit
 %endif
 BuildRequires: net-snmp-devel
 BuildRequires: protobuf-compiler
@@ -94,11 +96,7 @@ sed -i '/^ExecStart/ s/dnsdist/dnsdist -u dnsdist -g dnsdist/' dnsdist.service.i
   --enable-fstrm \
   --enable-gnutls \
   --with-protobuf \
-%ifarch aarch64
-  --with-lua=lua \
-%else
-  --with-lua=luajit \
-%endif
+  --with-lua=%{lua_implementation} \
   --enable-libsodium \
   --enable-dnscrypt \
   --enable-systemd --with-systemd=/lib/systemd/system \
index f52a3a85bf968333ad64612ffbdbe3e6ea3a3e9b..08187b98bf1a0bad15f80d446a85341d46ab69b9 100644 (file)
@@ -18,8 +18,10 @@ BuildRequires: lua-devel
 BuildRequires: boost-devel
 %ifarch aarch64
 BuildRequires: lua-devel
+%define lua_implementation lua
 %else
 BuildRequires: luajit-devel
+%define lua_implementation luajit
 %endif
 BuildRequires: systemd
 BuildRequires: systemd-devel
@@ -70,11 +72,7 @@ package if you need a dns cache for your network.
 
 make %{?_smp_mflags} LIBRARY_PATH=/usr/lib64/boost148
 %else
-%ifarch aarch64
-    --with-lua=lua \
-%else
-    --with-lua=luajit \
-%endif
+    --with-lua=%{lua_implementation} \
     --enable-systemd --with-systemd=%{_unitdir}
 
 make %{?_smp_mflags}