commit eee7bf3: [Minor] Rpm: Old rpm has no %elif
Vsevolod Stakhov
vsevolod at rspamd.com
Mon Mar 6 09:42:03 UTC 2023
Author: Vsevolod Stakhov
Date: 2023-03-06 09:35:09 +0000
URL: https://github.com/rspamd/rspamd/commit/eee7bf3b85348b182ebaa1d69d437084137fdb29 (HEAD -> master)
[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
More information about the Commits
mailing list