sqlite.spec revision 20215
#
# Copyright (c) 2010 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# bugdb: bugzilla.freedesktop.org
#
Release: 1
# This is specified here since unzip is used in this spec file.
# owner:hawklu date:2008-10-10 type:bug bugster:??
# owner:ginnchen date:2011-03-29 type:bug d.o.o 15412 bugster:7031954
Docdir: %{_defaultdocdir}
%prep
fi
%else
CPUS=1
fi
%if %option_with_debug
export CFLAGS="%optflags -D_POSIX_PTHREAD_SEMANTICS -DSQLITE_SECURE_DELETE -DSQLITE_ENABLE_FTS3 -DUSE_PREAD -DHAVE_USLEEP -DHAVE_FDATASYNC -DHAVE_STATVFS -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_ENABLE_STAT2 -I. "
%else
export CFLAGS="%optflags -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -DSQLITE_SECURE_DELETE -DSQLITE_ENABLE_FTS3 -DUSE_PREAD -DHAVE_USLEEP -DHAVE_FDATASYNC -DHAVE_STATVFS -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_ENABLE_STAT2 -I. "
export LDFLAGS="%_ldflags -Bdirect"
./configure \
--enable-threadsafe \
# install docs
%{_includedir}/*