Conditionalize %ldconfig_scriptlets for plain RHEL

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Marek Blaha 2019-02-13 09:27:43 +01:00 committed by Igor Gnatenko
parent 7d109bba70
commit 79c9bf8596
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

@ -208,7 +208,12 @@ Python 3 version.
%check %check
%ninja_test -C "%{_vpath_builddir}" %ninja_test -C "%{_vpath_builddir}"
%if %{undefined ldconfig_scriptlets}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%else
%ldconfig_scriptlets %ldconfig_scriptlets
%endif
%files %files
%license LICENSE* %license LICENSE*