From c1eca09b2428a6d0241e00f99c1b7a0b7f7da342 Mon Sep 17 00:00:00 2001 From: Lubos Uhliarik Date: Mon, 8 Mar 2021 13:25:55 +0100 Subject: [PATCH] new version 5.0.5 --- squid.spec | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/squid.spec b/squid.spec index fd92e86..7747c55 100644 --- a/squid.spec +++ b/squid.spec @@ -2,7 +2,7 @@ Name: squid Version: 5.0.5 -Release: 2%{?dist} +Release: 3%{?dist} Summary: The Squid proxy caching server Epoch: 7 # See CREDITS for breakdown of non GPLv2+ code @@ -225,6 +225,7 @@ rm -f $RPM_BUILD_ROOT%{_sysconfdir}/squid/squid.conf.documented # remove unpackaged files from the buildroot rm -f $RPM_BUILD_ROOT/squid.httpd.tmp + %files %license COPYING %doc CONTRIBUTORS README ChangeLog QUICKSTART src/squid.conf.documented @@ -285,6 +286,36 @@ done exit 0 +%pretrans -p +-- previously /usr/share/squid/errors/es-mx was symlink, now it is directory since squid v5 +-- see https://docs.fedoraproject.org/en-US/packaging-guidelines/Directory_Replacement/ +-- Define the path to the symlink being replaced below. +path = "/usr/share/squid/errors/es-mx" +st = posix.stat(path) +if st and st.type == "link" then + os.remove(path) +end + +-- Due to a bug #447156 +paths = {"/usr/share/squid/errors/zh-cn", "/usr/share/squid/errors/zh-tw"} +for key,path in ipairs(paths) +do + st = posix.stat(path) + if st and st.type == "directory" then + status = os.rename(path, path .. ".rpmmoved") + if not status then + suffix = 0 + while not status do + suffix = suffix + 1 + status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix) + end + os.rename(path, path .. ".rpmmoved") + end + end +end + + + %post %systemd_post squid.service @@ -303,6 +334,9 @@ fi %changelog +* Fri Mar 05 2021 Lubos Uhliarik - 7:5.0.5-3 +- Resolves: #1934919 - squid update attempts fail with file conflicts + * Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 7:5.0.5-2 - Rebuilt for updated systemd-rpm-macros See https://pagure.io/fesco/issue/2583.