[packages/lirc] - handle /usr/include/lirc/media symlink-to-dir transition
qboosh
qboosh at pld-linux.org
Sat Oct 8 19:17:49 CEST 2022
commit 567e9d20083c028d6dc9e866e9253c20ee441f1e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Oct 8 19:18:24 2022 +0200
- handle /usr/include/lirc/media symlink-to-dir transition
lirc.spec | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/lirc.spec b/lirc.spec
index 4c602c1..d639d59 100644
--- a/lirc.spec
+++ b/lirc.spec
@@ -212,8 +212,10 @@ cp -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
%clean
rm -rf $RPM_BUILD_ROOT
-%post libs -p /sbin/ldconfig
-%postun libs -p /sbin/ldconfig
+%pretrans
+if [ -L %{_includedir}/lirc/media ]; then
+ rm -f %{_includedir}/lirc/media
+fi
%post
/sbin/chkconfig --add lircd
@@ -237,6 +239,9 @@ if [ -f %{_sysconfdir}/lircmd.conf.rpmsave ]; then
mv -f %{_sysconfdir}/lircmd.conf.rpmsave %{_sysconfdir}/lirc/lircmd.conf
fi
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
+
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README README.conf.d contrib/lircrc
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lirc.git/commitdiff/567e9d20083c028d6dc9e866e9253c20ee441f1e
More information about the pld-cvs-commit
mailing list