Switch to %ldconfig_scriptlets

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-02-03 18:16:23 +01:00
parent 28de38170b
commit a488cd31b7
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

@ -2,7 +2,7 @@
Name: libxkbcommon
Version: 0.8.0
Release: 1%{?gitdate:.%{gitdate}}%{?dist}
Release: 2%{?gitdate:.%{gitdate}}%{?dist}
Summary: X.Org X11 XKB parsing library
License: MIT
URL: http://www.x.org
@ -67,8 +67,7 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
find $RPM_BUILD_ROOT -name '*.la' -exec rm -fv {} ';'
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%ldconfig_scriptlets
%files
%license LICENSE
@ -85,8 +84,7 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -fv {} ';'
%{_includedir}/xkbcommon/xkbcommon-names.h
%{_libdir}/pkgconfig/xkbcommon.pc
%post x11 -p /sbin/ldconfig
%postun x11 -p /sbin/ldconfig
%ldconfig_scriptlets x11
%files x11
%{_libdir}/libxkbcommon-x11.so.0.0.0
@ -98,6 +96,9 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -fv {} ';'
%{_libdir}/pkgconfig/xkbcommon-x11.pc
%changelog
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.0-2
- Switch to %%ldconfig_scriptlets
* Tue Dec 19 2017 Peter Hutterer <peter.hutterer@redhat.com> 0.8.0-1
- libxkbcommon 0.8.0