From adca4b9135d4f2897e656ced8282f34e69c83ee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Tue, 21 Apr 2026 14:25:50 +0200 Subject: [PATCH] Prepare devel subpackage installable multiple times Only bind-dyndb-ldap uses devel package. Move includes and libraries to contain major version. That should allow to install both bind9.18-devel and bind9.20-devel at the same time. Needed to build multiple bind-dyndb-ldap plugin versions for different variants. --- bind.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bind.spec b/bind.spec index 4109df3..89fc690 100644 --- a/bind.spec +++ b/bind.spec @@ -47,7 +47,6 @@ %global forgeurl0 https://gitlab.isc.org/isc-projects/bind9 - %define major_ver() %{lua: \ local ver = rpm.expand("%{1}"); \ local s, e; \ @@ -57,6 +56,7 @@ end; \ } + # libisc-nosym requires to be linked with unresolved symbols # When libisc-nosym linking is fixed, it can be defined to 1 # Visit https://bugzilla.redhat.com/show_bug.cgi?id=1540300 @@ -616,8 +616,8 @@ touch ${RPM_BUILD_ROOT}/%{chroot_prefix}%{_sysconfdir}/named.conf #end chroot %make_install PROGRAM_SUFFIX="%{program_suffix}" -mkdir -p ${RPM_BUILD_ROOT}%{_includedir}/bind9/bind9 -sed -e 's/PACKAGE_/BIND9_/' config.h > ${RPM_BUILD_ROOT}%{_includedir}/bind9/bind9/config.h +mkdir -p ${RPM_BUILD_ROOT}%{bind_include}/bind9 +sed -e 's/PACKAGE_/BIND9_/' config.h > ${RPM_BUILD_ROOT}%{bind_include}/bind9/config.h # Remove unwanted files rm -f ${RPM_BUILD_ROOT}/etc/bind.keys