From 7838d044d1c4b130f0b3004700aeb3a7642e1f4c Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Wed, 24 Oct 2018 14:09:49 +0200 Subject: [PATCH] more nit --- builder-support/specs/dnsdist.spec | 8 +++----- builder-support/specs/pdns-recursor.spec | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/builder-support/specs/dnsdist.spec b/builder-support/specs/dnsdist.spec index cf83fc06fe..b949c01371 100644 --- a/builder-support/specs/dnsdist.spec +++ b/builder-support/specs/dnsdist.spec @@ -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 \ diff --git a/builder-support/specs/pdns-recursor.spec b/builder-support/specs/pdns-recursor.spec index f52a3a85bf..08187b98bf 100644 --- a/builder-support/specs/pdns-recursor.spec +++ b/builder-support/specs/pdns-recursor.spec @@ -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} -- 2.47.2