From 9767ae1fdcfd018eac3ea6ce3d39840062175f17 Mon Sep 17 00:00:00 2001 From: liweigang Date: Fri, 5 Dec 2025 16:14:35 +0800 Subject: [PATCH] add headers and scripts for multilib (cherry picked from commit 53dba64853b1d27c33bafbd379cf0809698bf72f) --- clamav.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/clamav.spec b/clamav.spec index 1c3bdc9..529f28f 100644 --- a/clamav.spec +++ b/clamav.spec @@ -4,7 +4,7 @@ Name: clamav Summary: End-user tools for the Clam Antivirus scanner Version: 1.0.9 -Release: 3 +Release: 4 License: GPL-2.0-only URL: https://www.clamav.net/ @@ -272,6 +272,14 @@ cat << EOF > %{buildroot}%{_tmpfilesdir}/clamav-milter.conf d %{_rundir}/clamav-milter 0710 clamilt clamilt EOF +#Fixup headers and scripts for multilib +%if 0%{?__isa_bits} == 64 +mv %{buildroot}%{_includedir}/clamav-types.h \ + %{buildroot}%{_includedir}/clamav-types-64.h +%else +mv %{buildroot}%{_includedir}/clamav-types.h \ + %{buildroot}%{_includedir}/clamav-types-32.h +%endif install -m 0644 %SOURCE16 %{buildroot}%{_includedir}/clamav-types.h rm %{buildroot}%{_unitdir}/clamav-daemon.* @@ -404,6 +412,9 @@ exit 0 %changelog +* Fri Dec 05 2025 liweigang - 1.0.9-4 +- add headers and scripts for multilib + * Wed Sep 24 2025 huangwenhua - 1.0.9-3 - Fix compile failure on loongarch by updating vendor -- Gitee