Create compat symlink also for bind-devel includes
Try to preserve original _includedir/bind9 directory. Replace it with alternatives symlink leading to version explicit includes.
This commit is contained in:
parent
5cc93baa3a
commit
f4645b66ad
1 changed files with 17 additions and 0 deletions
17
bind.spec
17
bind.spec
|
|
@ -300,6 +300,8 @@ Obsoletes: %{name}-lite-devel < 32:9.16.6-3
|
|||
Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release}
|
||||
Requires: openssl-devel%{?_isa} libxml2-devel%{?_isa}
|
||||
Requires: libcap-devel%{?_isa}
|
||||
Requires(post): %{_bindir}/alternatives
|
||||
Requires(postun): %{_bindir}/alternatives
|
||||
%upname_compat %{upname}-devel
|
||||
%if %{with GSSTSIG}
|
||||
Requires: krb5-devel%{?_isa}
|
||||
|
|
@ -705,6 +707,7 @@ mkdir -p ${RPM_BUILD_ROOT}%{_tmpfilesdir}
|
|||
install -p -m 644 %{SOURCE35} ${RPM_BUILD_ROOT}%{_tmpfilesdir}/%{name}.conf
|
||||
install -p -m 644 %{SOURCE51} ${RPM_BUILD_ROOT}%{_tmpfilesdir}/%{name}-chroot.conf
|
||||
|
||||
mkdir -p ${RPM_BUILD_ROOT}%{_includedir}/bind9
|
||||
|
||||
%if %{with DNSTAP}
|
||||
%global utils_bin1_dnstap dnstap-read
|
||||
|
|
@ -975,6 +978,19 @@ if [ -x %{_sbindir}/selinuxenabled ] && [ -x %{_sbindir}/getsebool ] && [ -x %{_
|
|||
fi
|
||||
fi
|
||||
|
||||
%post devel
|
||||
%if "%{program_suffix}" != ""
|
||||
alternatives --install %{_includedir}/bind9 %{upname}-includedir %{_includedir}/bind-%{mver} %{alternatives_prio}
|
||||
%endif
|
||||
|
||||
%postun devel
|
||||
%if "%{program_suffix}" != ""
|
||||
if [ $1 -eq 0 ] ; then
|
||||
alternatives --remove %{upname}-includedir %{_includedir}/bind9
|
||||
fi
|
||||
%endif
|
||||
%end
|
||||
|
||||
%ldconfig_scriptlets libs
|
||||
|
||||
%post chroot
|
||||
|
|
@ -1175,6 +1191,7 @@ fi;
|
|||
%{_libdir}/libisc-%{mver}.so
|
||||
%{_libdir}/libisccfg-%{mver}.so
|
||||
%{_libdir}/libirs-%{mver}.so
|
||||
%ghost %{_includedir}/bind9
|
||||
%dir %{bind_include}
|
||||
%{bind_include}/isccc
|
||||
%{bind_include}/ns
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue