commit 1a789a0: [Minor] More fixes for the rpm spec

Vsevolod Stakhov vsevolod at
Wed Feb 8 12:42:03 UTC 2023

Author: Vsevolod Stakhov
Date: 2023-02-08 12:37:05 +0000
URL: (HEAD -> master)

[Minor] More fixes for the rpm spec

 rpm/rspamd.spec | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/rpm/rspamd.spec b/rpm/rspamd.spec
index 85aab6018..19f9e3634 100644
--- a/rpm/rspamd.spec
+++ b/rpm/rspamd.spec
@@ -18,14 +18,21 @@ BuildRequires:    gcc-c++
 BuildRequires:    file-devel
 BuildRequires:    glib2-devel
-BuildRequires:    hyperscan-devel
-BuildRequires:    jemalloc-devel
 BuildRequires:    lapack-devel
 BuildRequires:    libevent-devel
 BuildRequires:    libicu-devel
 BuildRequires:    libsodium-devel
 BuildRequires:    libunwind-devel
+%ifarch x86_64 amd64
+BuildRequires:    hyperscan-devel
+BuildRequires:    jemalloc-devel
 BuildRequires:    luajit-devel
+BuildRequires:    lua-devel
+%ifarch arm64 aarch64
+BuildRequires:    vectorscan-devel
 BuildRequires:    openblas-devel
 BuildRequires:    openssl-devel
 BuildRequires:    pcre2-devel
@@ -43,7 +50,7 @@ with big amount of mail and can be easily extended with own filters written in
-%setup -q
+%setup -q -n rspamd-%{version}
 %if 0%{?el7}
@@ -74,9 +81,13 @@ lua.
         -DNO_SHARED=ON \
         -DDEBIAN_BUILD=1 \
+%ifarch x86_64 amd64 arm64 aarch64
+%ifarch x86_64 amd64
 %{__make} %{?jobs:-j%jobs}

More information about the Commits mailing list