[packages/libidn2] Revert "Use lua in %post scripts to break dependency loop"
jajcus
jajcus at pld-linux.org
Tue Feb 19 15:39:13 CET 2019
commit a7d9236e945b96db87c6cdd61693e9c4ea6d3b9b
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Tue Feb 19 15:38:02 2019 +0100
Revert "Use lua in %post scripts to break dependency loop"
This reverts commit f4326ba5b51606cadceef812835037b081fb2c72.
Reverting as the loop would still be there, but shorter (libidn2 ->
glibc -> libidn2).
Release: 3
libidn2.spec | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/libidn2.spec b/libidn2.spec
index e9fd8fe..bf055de 100644
--- a/libidn2.spec
+++ b/libidn2.spec
@@ -3,7 +3,7 @@ Summary: Free software implementation of IDNA2008
Summary(pl.UTF-8): Wolnodostępna implementacja IDNA2008
Name: libidn2
Version: 2.1.1
-Release: 2
+Release: 3
License: LGPL v3+ or GPL v2+ (library), GPL v3+ (utilities)
Group: Libraries
Source0: http://ftp.gnu.org/gnu/libidn/%{name}-%{version}.tar.lz
@@ -93,13 +93,13 @@ rm -rf $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p <lua>
-os.execute("/sbin/ldconfig >/dev/null 2>&1")
-os.execute("/usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1")
+%post
+/sbin/ldconfig
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
-%postun -p <lua>
-os.execute("/sbin/ldconfig >/dev/null 2>&1")
-os.execute("/usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1")
+%postun
+/sbin/ldconfig
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
%files -f %{name}.lang
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libidn2.git/commitdiff/a7d9236e945b96db87c6cdd61693e9c4ea6d3b9b
More information about the pld-cvs-commit
mailing list