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>
This commit is contained in:
Igor Gnatenko 2018-02-17 13:50:12 +01:00
parent 40990bb864
commit 17746cb929
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 /sbin/ldconfig
%ldconfig_post %{?ldconfig:%post -p %ldconfig} %ldconfig_post %{?ldconfig:%post -p %ldconfig\
%ldconfig_postun %{?ldconfig:%postun -p %ldconfig} %end}
%ldconfig_postun %{?ldconfig:%postun -p %ldconfig\
%end}
%ldconfig_scriptlets(n:) %{?ldconfig:\ %ldconfig_scriptlets(n:) %{?ldconfig:\
%ldconfig_post %{?*} %{-n:-n %{-n*}}\ %ldconfig_post %{?*} %{-n:-n %{-n*}}\
%ldconfig_postun %{?*} %{-n:-n %{-n*}}\ %ldconfig_postun %{?*} %{-n:-n %{-n*}}\

View File

@ -6,7 +6,7 @@
Summary: Red Hat specific rpm configuration files Summary: Red Hat specific rpm configuration files
Name: redhat-rpm-config Name: redhat-rpm-config
Version: 97 Version: 98
Release: 1%{?dist} Release: 1%{?dist}
# No version specified. # No version specified.
License: GPL+ License: GPL+
@ -183,6 +183,9 @@ install -p -m 755 -t %{buildroot}%{_rpmconfigdir} kmod.prov
%{_rpmconfigdir}/macros.d/macros.kmp %{_rpmconfigdir}/macros.d/macros.kmp
%changelog %changelog
* Sat Feb 17 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 98-1
- Explicitly close scriptlets with %%end (ldconfig)
* Wed Feb 14 2018 Miro Hrončok <mhroncok@redhat.com> - 97-1 * Wed Feb 14 2018 Miro Hrončok <mhroncok@redhat.com> - 97-1
- Allow to opt-out from shebang mangling for specific paths/shebangs - Allow to opt-out from shebang mangling for specific paths/shebangs