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 Name: lirc
Version: 0.10.2 Version: 0.10.2
Epoch: 1 Epoch: 1
Release: 1mamba Release: 2mamba
Summary: A package that allows you to decode and send infra-red signals Summary: A package that allows you to decode and send infra-red signals
Group: System/Hardware Group: System/Hardware
Vendor: openmamba Vendor: openmamba
@ -117,6 +117,14 @@ fi
%systemd_postun_with_restart lircd %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 %files
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_sysconfdir}/lirc %dir %{_sysconfdir}/lirc
@ -198,6 +206,9 @@ fi
#%doc ChangeLog NEWS README #%doc ChangeLog NEWS README
%changelog %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 * Sat Oct 22 2022 Automatic Build System <autodist@mambasoft.it> 0.10.2-1mamba
- automatic version update by autodist - automatic version update by autodist