Switch to %ldconfig_scriptlets

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-01-31 17:53:49 +01:00
parent 30c1fcba5a
commit 672b0ed974
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C
1 changed files with 5 additions and 3 deletions

View File

@ -5,7 +5,7 @@
Name: lib%{libname}
Version: 0.20
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Library for easy processing of keyboard entry from terminal-based programs
License: MIT
@ -54,8 +54,7 @@ rm -vf %{buildroot}%{_libdir}/*.{a,la}
%check
CFLAGS="%{__global_cflags} -D_XOPEN_SOURCE" LDFLAGS="%{__global_ldflags}" make test VERBOSE=1
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%ldconfig_scriptlets
%files
%license LICENSE
@ -69,6 +68,9 @@ CFLAGS="%{__global_cflags} -D_XOPEN_SOURCE" LDFLAGS="%{__global_ldflags}" make t
%{_mandir}/man7/%{libname}.7*
%changelog
* Wed Jan 31 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.20-2
- Switch to %%ldconfig_scriptlets
* Wed Nov 08 2017 Andreas Schneider <asn@redhat.com> - 0.20-1
- Update to version 0.20