packages: sqlite3/sqlite3.spec - Add bcond unlock_notify and load_extension...
japhy
japhy at pld-linux.org
Thu Oct 7 12:16:49 CEST 2010
Author: japhy Date: Thu Oct 7 10:16:49 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- Add bcond unlock_notify and load_extension to compile forked-daapd.
---- Files affected:
packages/sqlite3:
sqlite3.spec (1.93 -> 1.94)
---- Diffs:
================================================================
Index: packages/sqlite3/sqlite3.spec
diff -u packages/sqlite3/sqlite3.spec:1.93 packages/sqlite3/sqlite3.spec:1.94
--- packages/sqlite3/sqlite3.spec:1.93 Wed Sep 8 11:18:59 2010
+++ packages/sqlite3/sqlite3.spec Thu Oct 7 12:16:44 2010
@@ -8,6 +8,8 @@
%bcond_with tests # run tests
%bcond_with tcl # enable tcl extension
%bcond_without doc # disable documentation building
+%bcond_with unlock_notify # enable unlock notify api
+%bcond_with load_extension # enable load extension api
%ifarch alpha sparc %{x8664}
%undefine with_tests
@@ -38,6 +40,7 @@
BuildRequires: automake
BuildRequires: libtool
BuildRequires: readline-devel
+%{?with_load_extension:BuildRequires: sed >= 4.0}
BuildRequires: tcl
%{?with_tcl:BuildRequires: tcl-devel}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -161,12 +164,17 @@
cp -f /usr/share/automake/config.sub .
%{__aclocal}
%{__autoconf}
-CFLAGS="%{rpmcflags} -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_DISABLE_DIRSYNC=1 -DSQLITE_ENABLE_FTS3=3 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_SECURE_DELETE"
+CFLAGS="%{rpmcflags} -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_DISABLE_DIRSYNC=1 -DSQLITE_ENABLE_FTS3=3 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_SECURE_DELETE %{?with_unlock_notify:-DSQLITE_ENABLE_UNLOCK_NOTIFY}"
export CFLAGS
+%if %{with load_extension}
+LIBS=-ldl
+export LIBS
+%endif
%configure \
%{?with_tcl:--with-tcl=%{_ulibdir}} \
%{!?with_tcl:--disable-tcl} \
--enable-threadsafe
+%{?with_load_extension:sed -i~ s/-DSQLITE_OMIT_LOAD_EXTENSION=1// Makefile}
%{__make}
%if %{with doc}
@@ -234,6 +242,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.94 2010/10/07 10:16:44 japhy
+- Add bcond unlock_notify and load_extension to compile forked-daapd.
+
Revision 1.93 2010/09/08 09:18:59 duddits
- rel. 2
- SQLITE_SECURE_DELETE option enabled, see
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/sqlite3/sqlite3.spec?r1=1.93&r2=1.94&f=u
More information about the pld-cvs-commit
mailing list