public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/bind] rawhide: Create compat symlink also for bind-devel includes
@ 2026-07-02 14:45 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-07-02 14:45 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/bind
            Branch : rawhide
            Commit : f4645b66ad1a8d04c6430ea2ce1e4fdec7bf3792
            Author : Petr Menšík <pemensik@redhat.com>
            Date   : 2026-07-02T12:54:49+02:00
            Stats  : +17/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/bind/c/f4645b66ad1a8d04c6430ea2ce1e4fdec7bf3792?branch=rawhide

            Log:
            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.

---
diff --git a/bind.spec b/bind.spec
index d82e505..d2af2fb 100644
--- a/bind.spec
+++ b/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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-02 14:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-02 14:45 [rpms/bind] rawhide: Create compat symlink also for bind-devel includes 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox