From 66e919931d8ed4d431090d7d2b50a0b5c39eb96b Mon Sep 17 00:00:00 2001 From: Thomas Woerner Date: Thu, 13 Feb 2025 14:56:34 +0100 Subject: [PATCH] - Fix upgrade of doc sub package to remove links replaced by directories (RHEL-48798) Resolves: RHEL-48798 --- bind.spec | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/bind.spec b/bind.spec index 18c01d6..a6daa14 100644 --- a/bind.spec +++ b/bind.spec @@ -80,7 +80,7 @@ License: MPL-2.0 AND ISC AND MIT AND BSD-3-Clause AND BSD-2-Clause # Before rebasing bind, ensure bind-dyndb-ldap is ready to be rebuild and use side-tag with it. # Updating just bind will cause freeipa-dns-server package to be uninstallable. Version: 9.18.33 -Release: 2%{?dist} +Release: 3%{?dist} Epoch: 32 Url: https://www.isc.org/downloads/bind/ # @@ -315,6 +315,18 @@ This package contains BIND 9 Administrator Reference Manual in HTML and PDF format. %end +%pretrans doc -p +paths = { + '%{_pkgdocdir}/html/_static/css', + '%{_pkgdocdir}/html/_static/js' +} +for _, path in ipairs(paths) do + st = posix.stat(path) + if st and st.type == "link" then + os.remove(path) + end +end + %endif %prep @@ -900,6 +912,10 @@ fi; %endif %changelog +* Thu Feb 13 2025 Thomas Woerner - 32:9.18.33-3 +- Fix upgrade of doc sub package to remove links replaced by directories + (RHEL-48798) + * Sun Feb 02 2025 Petr Menšík - 32:9.18.33-2 - Add nsupdate TLS support (RHEL-77354) - Include a test for nsupdate changes