From 0bfccd49f42071acfabc6d33295c0ec9a9cf8581 Mon Sep 17 00:00:00 2001 From: ebasov Date: Thu, 7 Nov 2024 16:34:11 +0300 Subject: [PATCH] fixing the .spec file for assembling for different architectures --- SPECS/openlitespeed.spec | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/SPECS/openlitespeed.spec b/SPECS/openlitespeed.spec index 61278db..0a90b5a 100644 --- a/SPECS/openlitespeed.spec +++ b/SPECS/openlitespeed.spec @@ -43,6 +43,8 @@ Requires(postun): systemd %description OpenLiteSpeed is a high-performance, lightweight, open source HTTP server developed and copyrighted by LiteSpeed Technologies. +%ifarch x86_64 + %package lua Summary: Lua Requires: %{name} = %{version}-%{release} @@ -57,6 +59,8 @@ Requires: %{name} = %{version}-%{release} %description pagespeed Pagespeed module for openlitespeed webserver. +%endif + %package modsecurity Summary: Mod Security Requires: %{name} = %{version}-%{release} @@ -258,15 +262,19 @@ fi %config(noreplace) %{_lsws_dir}/fcgi-bin/* %config(noreplace) %{_lsws_dir}/PLAT -%files pagespeed -%{_lsws_dir}/modules/modpagespeed.so - %files modsecurity %{_lsws_dir}/modules/mod_security.so +%ifarch x86_64 + +%files pagespeed +%{_lsws_dir}/modules/modpagespeed.so + %files lua %{_lsws_dir}/modules/mod_lua.so +%endif + %changelog * Wed Nov 7 2024 Eduard Basov - 1.8.2-4 - Remove url on tarball for build php