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