BuildRequires: libtool
Requires: glibc >= 6:2.3
Requires: make
+Requires(post): /sbin/ldconfig
Requires: sed >= 4.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-# private symbols
-%define _noautoprov .*\(GLIBC_PRIVATE\)
-%define _noautoreq .*\(GLIBC_PRIVATE\)
+# glibc private symbols
+%define _noautoreq .*(GLIBC_PRIVATE)
%description
This is nss_db, a name service switch module that can be used with
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
-
%post
+/sbin/ldconfig
if [ -f %{_sysconfdir}/nsswitch.conf ]; then
%{__sed} -i -e '
/^\(passwd\|group\|hosts\):/ !b
' %{_sysconfdir}/nsswitch.conf
fi
+%postun -p /sbin/ldconfig
+
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README THANKS