devel: add pretrans script to remove symlink updated to directory [release 0.10.2-2mamba;Tue Oct 25 2022]

This commit is contained in:
Silvan Calarco 2024-01-06 06:24:01 +01:00
parent eb8265cec9
commit 19d27abf05

View File

@ -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 <lua>
-- 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 <silvan.calarco@mambasoft.it> 0.10.2-2mamba
- devel: add pretrans script to remove symlink updated to directory
* Sat Oct 22 2022 Automatic Build System <autodist@mambasoft.it> 0.10.2-1mamba
- automatic version update by autodist