From eee7bf3b85348b182ebaa1d69d437084137fdb29 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 6 Mar 2023 09:35:09 +0000 Subject: [PATCH] [Minor] Rpm: Old rpm has no %elif --- rpm/rspamd.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpm/rspamd.spec b/rpm/rspamd.spec index 91d7cc7dc..1596622fa 100644 --- a/rpm/rspamd.spec +++ b/rpm/rspamd.spec @@ -80,9 +80,11 @@ git clone -b v2.1 https://luajit.org/git/luajit-2.0.git %{_builddir}/luajit-src %build %if 0%{?el7} source /opt/rh/devtoolset-10/enable -%elif 0%{?el8} +%else +%if 0%{?el8} source /opt/rh/gcc-toolset-10/enable %endif +%endif %if 0%{getenv:LUAJIT} pushd %{_builddir}/luajit-src && make clean && make %{?_smp_mflags} CC="gcc -fPIC" PREFIX=%{_builddir}/luajit-build && make install PREFIX=%{_builddir}/luajit-build ; popd -- 2.39.5