Index: server/fedora/specs/nss_nonlocal.spec
===================================================================
--- server/fedora/specs/nss_nonlocal.spec	(revision 765)
+++ server/fedora/specs/nss_nonlocal.spec	(revision 782)
@@ -2,7 +2,10 @@
 Group: System Environment/Libraries
 Name: nss_nonlocal
-Version: 1.6
+Version: 1.7
 Release: 0
 URL: http://debathena.mit.edu/nss_nonlocal/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
 License: GPL
 Source: %{name}.tar.gz
@@ -17,10 +20,21 @@
 %setup -q -n %{name}
 
+cat >find_requires.sh <<EOF
+#!/bin/sh
+%{__find_requires} | grep -v GLIBC_PRIVATE
+exit 0
+EOF
+chmod +x find_requires.sh
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_builddir}/%{buildsubdir}/find_requires.sh
+
 %build
-make CFLAGS='%optflags' LDFLAGS='%optflags'
+autoreconf -i
+%configure --libdir=/%{_lib}
+make
 
 %install
 [ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT libdir=/%{_lib}
+make install DESTDIR=$RPM_BUILD_ROOT
 
 %clean
@@ -30,5 +44,5 @@
 %defattr(-, root, root)
 %doc README
-/%{_lib}/libnss_nonlocal.so.2
+/%{_lib}/libnss_nonlocal.so.*
 
 %pre
