[packages/lirc] Rel 4. %pretrans devel in lua

arekm arekm at pld-linux.org
Tue Oct 13 01:00:32 CEST 2026


commit 29acb4bb06037a7f348197904b62bcf69f60ccb9
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Oct 13 00:54:58 2026 +0200

    Rel 4. %pretrans devel in lua
    
    A sh %pretrans needs /bin/sh in the rpmdb already, so installing into
    an empty root failed.

 lirc.spec | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/lirc.spec b/lirc.spec
index 7a39d88..02dc9f4 100644
--- a/lirc.spec
+++ b/lirc.spec
@@ -12,7 +12,7 @@ Summary:	Linux Infrared Remote Control daemons
 Summary(pl.UTF-8):	Demony do zdalnego sterowania Linuksem za pomocą podczerwieni
 Name:		lirc
 Version:	0.10.2
-Release:	3
+Release:	4
 License:	GPL v2+
 Group:		Daemons
 Source0:	http://downloads.sourceforge.net/lirc/%{name}-%{version}.tar.bz2
@@ -239,10 +239,11 @@ fi
 %post	libs -p /sbin/ldconfig
 %postun	libs -p /sbin/ldconfig
 
-%pretrans devel
-if [ -L %{_includedir}/lirc/media ]; then
-	rm -f %{_includedir}/lirc/media
-fi
+%pretrans devel -p <lua>
+local st = posix.stat("%{_includedir}/lirc/media")
+if st and st.type == "link" then
+	os.remove("%{_includedir}/lirc/media")
+end
 
 %files
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lirc.git/commitdiff/29acb4bb06037a7f348197904b62bcf69f60ccb9



More information about the pld-cvs-commit mailing list