From f85a05d02d44c5a7cccfa45fb3311b7ac53a5e34 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: May 28 2017 21:49:35 +0000 Subject: scriptlet to aid replacing symlink with dir: %{_kf5_docdir}/HTML/en/kmail2 --- diff --git a/kmail.spec b/kmail.spec index c3c6e0c..48ac550 100644 --- a/kmail.spec +++ b/kmail.spec @@ -9,7 +9,7 @@ Name: kmail Summary: Mail client Version: 17.04.1 -Release: 1%{?dist} +Release: 2%{?dist} # code (generally) GPLv2, docs GFDL License: GPLv2 and GFDL @@ -158,6 +158,14 @@ dbus-launch --exit-with-session \ make test ARGS="--output-on-failure --timeout 20" -C %{_target_platform} ||: %endif +# symlink replaced by dir in 16 -> 17 upgrade +# https://fedoraproject.org/wiki/Packaging:Directory_Replacement +%pretrans -p +path = "%{_kf5_docdir}/HTML/en/kmail2" +st = posix.stat(path) +if st and st.type == "link" then + os.remove(path) +end %post touch --no-create %{_kf5_datadir}/icons/hicolor &> /dev/null ||: @@ -238,6 +246,9 @@ fi %changelog +* Sun May 28 2017 Rex Dieter - 17.04.1-2 +- scriptlet to aid replacing symlink with dir: %%{_kf5_docdir}/HTML/en/kmail2 + * Mon May 15 2017 Rex Dieter - 17.04.1-1 - 17.04.1