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 <ignatenkobrain@fedoraproject.org>
(cherry picked from commit 17746cb929)
This commit is contained in:
Igor Gnatenko 2018-02-17 13:50:12 +01:00
parent 5df8c7a31e
commit f03a9ba75f
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C
2 changed files with 8 additions and 3 deletions

View File

@ -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*}}\

View File

@ -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 <ignatenkobrain@fedoraproject.org> - 73-1
- Explicitly close scriptlets with %%end (ldconfig)
* Wed Feb 21 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 72-1
- Backport macroizing build root policies for consistent disable/override