From f03a9ba75fec6c604612268e2297cfd04f6090d2 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Feb 21 2018 07:59:46 +0000 Subject: macros.ldconfig: %end section immediately Some people tend to use comments in spec files which adds them into the scriptlet and we don't want this. Signed-off-by: Igor Gnatenko (cherry picked from commit 17746cb929435086dee242a38e867cf488308164) --- diff --git a/macros.ldconfig b/macros.ldconfig index 672d4c5..340e9fd 100644 --- a/macros.ldconfig +++ b/macros.ldconfig @@ -1,6 +1,8 @@ %ldconfig /sbin/ldconfig -%ldconfig_post %{?ldconfig:%post -p %ldconfig} -%ldconfig_postun %{?ldconfig:%postun -p %ldconfig} +%ldconfig_post %{?ldconfig:%post -p %ldconfig\ +%end} +%ldconfig_postun %{?ldconfig:%postun -p %ldconfig\ +%end} %ldconfig_scriptlets(n:) %{?ldconfig:\ %ldconfig_post %{?*} %{-n:-n %{-n*}}\ %ldconfig_postun %{?*} %{-n:-n %{-n*}}\ diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index 531531a..d0d913d 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -6,7 +6,7 @@ Summary: Red Hat specific rpm configuration files Name: redhat-rpm-config -Version: 72 +Version: 73 Release: 1%{?dist} # No version specified. License: GPL+ @@ -147,6 +147,9 @@ install -p -m 755 -t %{buildroot}%{_rpmconfigdir} kmod.prov %{_rpmconfigdir}/macros.d/macros.kmp %changelog +* Wed Feb 21 2018 Igor Gnatenko - 73-1 +- Explicitly close scriptlets with %%end (ldconfig) + * Wed Feb 21 2018 Igor Gnatenko - 72-1 - Backport macroizing build root policies for consistent disable/override