From 199a29ad9c32b8b30e286f37bfbab1615259f998 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Wed, 20 Aug 2025 12:02:12 +0200 Subject: [PATCH] [Minor] Further RPM changes for EL10 --- rpm/rspamd.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rpm/rspamd.spec b/rpm/rspamd.spec index 5d508c17d1..ba12105475 100644 --- a/rpm/rspamd.spec +++ b/rpm/rspamd.spec @@ -54,8 +54,10 @@ BuildRequires: gcc-toolset-12-libasan-devel %if 0%{?el8} || 0%{?fedora} > 10 BuildRequires: hyperscan-devel %endif +%if !0%{?el10} BuildRequires: jemalloc-devel %endif +%endif %if 0%{getenv:LUAJIT} BuildRequires: git @@ -65,7 +67,9 @@ BuildRequires: lua-devel BuildRequires: openblas-devel BuildRequires: openssl-devel BuildRequires: pcre2-devel +%if !0%{?el10} BuildRequires: ragel +%endif BuildRequires: sqlite-devel BuildRequires: systemd BuildRequires: binutils-devel @@ -158,8 +162,10 @@ rm -f %{_builddir}/luajit-build/lib/*.so || true %endif %endif %ifarch x86_64 amd64 +%if !0%{?el10} -DENABLE_JEMALLOC=ON \ %endif +%endif %if 0%{getenv:LUAJIT} -DENABLE_LUAJIT=ON \ -DLUA_ROOT=%{_builddir}/luajit-build \ -- 2.47.3