]> git.pld-linux.org Git - packages/nss_db.git/commitdiff
- fix duplicate post; remove unneeded _noautoprov
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 9 Feb 2012 20:17:22 +0000 (20:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nss_db.spec -> 1.45

nss_db.spec

index 54ad328ddcc99dc1724ec93684be473282d13fa9..55c0228336bb5a0f843b4c4e04c662e5fb71840d 100644 (file)
@@ -47,12 +47,12 @@ BuildRequires:      libstdc++-devel
 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
@@ -172,10 +172,8 @@ ln -sf create-db $RPM_BUILD_ROOT%{_bindir}/update-db
 %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
@@ -192,6 +190,8 @@ if [ "$1" -eq 0 -a -f %{_sysconfdir}/nsswitch.conf ] ; then
        ' %{_sysconfdir}/nsswitch.conf
 fi
 
+%postun -p /sbin/ldconfig
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README THANKS
This page took 0.028561 seconds and 4 git commands to generate.