From ad4718cbbf6e746fab03a74f832947a7ea8948c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Mon, 3 Aug 2026 16:09:10 +0200 Subject: [PATCH] Make spec testable on Fedora 43+ They contain merged _bindir and _sbindir and local builds fails. Allow faster testing and compile even on later system with merged directories. Related: RHEL-213768 --- bind.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bind.spec b/bind.spec index 5b8bc1d..ab9cb1b 100644 --- a/bind.spec +++ b/bind.spec @@ -618,6 +618,7 @@ mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig install -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/named install -m 644 %{SOURCE49} ${RPM_BUILD_ROOT}%{_sysconfdir}/named-chroot.files +%if "%{_bindir}" != "%{_sbindir}" pushd ${RPM_BUILD_ROOT}%{_sbindir} # Compatibility with previous major versions, only for selected binaries for BIN in named-checkconf named-checkzone named-compilezone @@ -625,6 +626,7 @@ do ln -s ../bin/$BIN $BIN done popd +%endif # Remove libtool .la files: find ${RPM_BUILD_ROOT}/%{_libdir} -name '*.la' -exec '/bin/rm' '-f' '{}' ';';