diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-03-06 09:35:09 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-03-06 09:35:09 +0000 |
commit | eee7bf3b85348b182ebaa1d69d437084137fdb29 (patch) | |
tree | b9a5f4c20af8ba7be4a22c3fdc7519c47d5313d9 /rpm/rspamd.spec | |
parent | ed02d81e26b78ac60a1056b5b7ef245d7b3e75dd (diff) | |
download | rspamd-eee7bf3b85348b182ebaa1d69d437084137fdb29.tar.gz rspamd-eee7bf3b85348b182ebaa1d69d437084137fdb29.zip |
[Minor] Rpm: Old rpm has no %elif
Diffstat (limited to 'rpm/rspamd.spec')
-rw-r--r-- | rpm/rspamd.spec | 4 |
1 files changed, 3 insertions, 1 deletions
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 |