From b789b54c9cac90de123eb9d058df2b96afc4e037 Mon Sep 17 00:00:00 2001 From: Silvan Date: Sat, 12 Oct 2024 20:32:33 +0200 Subject: [PATCH] templates: remove ldconfig in %post[un] scripts which are redundant since introduction of rpm filetrigger --- templates/kde5 | 18 ++---------------- templates/kf6 | 14 -------------- templates/library | 8 -------- 3 files changed, 2 insertions(+), 38 deletions(-) diff --git a/templates/kde5 b/templates/kde5 index 75d9474..63c6c87 100644 --- a/templates/kde5 +++ b/templates/kde5 @@ -54,28 +54,14 @@ This package contains libraries and header files for developing applications tha %makeinstall -C build @if:i18n -%find_lang %{name}5_qt --with-qt --with-man --with-html --all-name || touch %{name}5_qt.lang +%find_lang %{name} --with-qt --with-man --with-html --all-name || touch %{name}.lang @fi:i18n %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%post -n lib%{name} -@if:shared_libraries -## remove the following line if no dynamic libraries are provided by this package -/sbin/ldconfig -@fi:shared_libraries -exit 0 - -%postun -n lib%{name} -@if:shared_libraries -## remove the following line if no dynamic libraries are provided by this package -/sbin/ldconfig -@fi:shared_libraries -exit 0 - @if:i18n -%files -f %{name}5_qt.lang +%files -f %{name}.lang @else:i18n %files @fi:i18n diff --git a/templates/kf6 b/templates/kf6 index 7331ff1..92bc226 100644 --- a/templates/kf6 +++ b/templates/kf6 @@ -62,20 +62,6 @@ This package contains libraries and header files for developing applications tha %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%post -n lib%{name} -@if:shared_libraries -## remove the following line if no dynamic libraries are provided by this package -/sbin/ldconfig -@fi:shared_libraries -exit 0 - -%postun -n lib%{name} -@if:shared_libraries -## remove the following line if no dynamic libraries are provided by this package -/sbin/ldconfig -@fi:shared_libraries -exit 0 - @if:i18n %files -f %{name}.lang @else:i18n diff --git a/templates/library b/templates/library index 6e0a631..7b8286f 100644 --- a/templates/library +++ b/templates/library @@ -110,14 +110,6 @@ This package includes the %{name} API documentation. %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -@if:pck_library -%post -n lib%{name} -p /sbin/ldconfig -%postun -n lib%{name} -p /sbin/ldconfig -@else:pck_library -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig -@fi:pck_library - @if:infopages @if:pck_library %post -n lib%{name}-devel