Switch to %ldconfig_scriptlets

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-02-03 17:53:13 +01:00
parent b1dd29e2ef
commit db98443206
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

@ -9,7 +9,7 @@
Summary: Linux Key Management Utilities
Name: keyutils
Version: %{version}
Release: 3%{?buildid}%{?dist}
Release: 4%{?buildid}%{?dist}
License: GPLv2+ and LGPLv2+
Group: System Environment/Base
ExclusiveOS: Linux
@ -60,11 +60,10 @@ make \
SHAREDIR=%{datadir} \
RELEASE=.%{release} \
NO_GLIBC_KEYERR=1 \
CFLAGS="-Wall $RPM_OPT_FLAGS -Werror" \
CFLAGS="-Wall $RPM_OPT_FLAGS" \
LDFLAGS="%{?__global_ldflags}"
%install
rm -rf $RPM_BUILD_ROOT
make \
NO_ARLIB=1 \
DESTDIR=$RPM_BUILD_ROOT \
@ -78,16 +77,10 @@ make \
SHAREDIR=%{datadir} \
install
%clean
rm -rf $RPM_BUILD_ROOT
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%ldconfig_scriptlets libs
%files
%defattr(-,root,root,-)
%doc README
%{!?_licensedir:%global license %%doc}
%license LICENCE.GPL
%{_sbindir}/*
%{_bindir}/*
@ -98,20 +91,20 @@ rm -rf $RPM_BUILD_ROOT
%config(noreplace) %{_sysconfdir}/*
%files libs
%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license LICENCE.LGPL
%{_mandir}/man7/*
%{_libdir}/libkeyutils.so.%{libapiversion}
%{_libdir}/libkeyutils.so.%{libapivermajor}
%files libs-devel
%defattr(-,root,root,-)
%{_libdir}/libkeyutils.so
%{_includedir}/*
%{_mandir}/man3/*
%changelog
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.5.10-4
- Switch to %%ldconfig_scriptlets
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.10-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild