From 6cd12b1eb7de8d3974b3ce3aa9a7503b993b83f9 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Fri, 2 Aug 2024 16:13:20 +0200 Subject: [PATCH] packaging: build the -static subpkg on 64bit arches only The hard-coded `/usr/lib64` paths to Boost static libraries do not work well in 32bit buildroots and nobody is going to use the -static subpkg on a 32bit architecture anyway. Closes: https://github.com/csutils/csdiff/pull/198 --- make-srpm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make-srpm.sh b/make-srpm.sh index cb9cf626..1a696c67 100755 --- a/make-srpm.sh +++ b/make-srpm.sh @@ -90,8 +90,8 @@ cat > "$SPEC" << EOF %bcond_without python2 %endif -# build csdiff-static on RHEL-10+ and Fedora -%if 0%{?rhel} > 9 || 0%{?fedora} +# build csdiff-static on 64bit RHEL-10+ and Fedora +%if 0%{?__isa_bits} == 64 && (0%{?rhel} > 9 || 0%{?fedora}) %bcond_without static %else %bcond_with static