From 19d27abf05cb1c0d5e97da6a05115fe1de5a1b00 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 06:24:01 +0100 Subject: [PATCH] devel: add pretrans script to remove symlink updated to directory [release 0.10.2-2mamba;Tue Oct 25 2022] --- lirc.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lirc.spec b/lirc.spec index 6eca3b4..5dcb219 100644 --- a/lirc.spec +++ b/lirc.spec @@ -3,7 +3,7 @@ Name: lirc Version: 0.10.2 Epoch: 1 -Release: 1mamba +Release: 2mamba Summary: A package that allows you to decode and send infra-red signals Group: System/Hardware Vendor: openmamba @@ -117,6 +117,14 @@ fi %systemd_postun_with_restart lircd : +%pretrans devel -p +-- Define the path to the symlink being replaced below. +path = "/usr/include/lirc/media" +st = posix.stat(path) +if st and st.type == "link" then + os.remove(path) +end + %files %defattr(-,root,root) %dir %{_sysconfdir}/lirc @@ -198,6 +206,9 @@ fi #%doc ChangeLog NEWS README %changelog +* Tue Oct 25 2022 Silvan Calarco 0.10.2-2mamba +- devel: add pretrans script to remove symlink updated to directory + * Sat Oct 22 2022 Automatic Build System 0.10.2-1mamba - automatic version update by autodist