I had to make the following changes to get the rpm to build on Fedora Core 3, AMD64 arch. The reason is that %{_libdir} is /usr/lib64, and not /usr/lib as the spec assumes. Also on the make install, DESTDIR should be set, not prefix, since the prefix is set during configure, and the Makefiles use DESTDIR to relocate the installation.
--- spec.template 2004-07-19 17:16:19.000000000 -0600 +++ rpmbuild/SPECS/sqlite.spec 2004-12-16 11:28:29.964168966 -0700 @@ -33,17 +33,17 @@ %setup -q -n %{name} %build -CFLAGS="%optflags -DNDEBUG=1" CXXFLAGS="%optflags -DNDEBUG=1" ./configure --prefix=%{_prefix} +CFLAGS="%optflags -DNDEBUG=1" CXXFLAGS="%optflags -DNDEBUG=1" ./configure --prefix=%{_prefix} --libdir=%{_libdir} make make doc %install install -d $RPM_BUILD_ROOT/%{_prefix} install -d $RPM_BUILD_ROOT/%{_prefix}/bin install -d $RPM_BUILD_ROOT/%{_prefix}/include -install -d $RPM_BUILD_ROOT/%{_prefix}/lib -make install prefix=$RPM_BUILD_ROOT/%{_prefix} +install -d $RPM_BUILD_ROOT/%{_libdir} +make install DESTDIR=$RPM_BUILD_ROOT %clean rm -fr $RPM_BUILD_ROOT -- Dan Nuffer Vintela, Inc. http://vintela.com/