sqlite3/sqlite3.spec
Reinhard Max 7120e1de44 Accepting request 132547 from home:m_meister:branches:server:database
- New version 3.7.14:
  * Ensure that floating point values are preserved exactly when 
    reconstructing a database from the output of the ".dump" 
    command of the command-line shell.
  * Added the sqlite3_close_v2() interface.
  * Updated the command-line shell so that it can be built using 
    SQLITE_OMIT_FLOATING_POINT and SQLITE_OMIT_AUTOINIT.
  * Enhancements to PRAGMA integrity_check and PRAGMA quick_check 
    so that they can optionally check just a single attached 
    database install of all attached databases.
  * Enhancements to WAL mode processing that ensure that at least 
    one valid read-mark is available at all times, so that 
    read-only processes can always read the database.
  * Performance enhancements in the sorter used by ORDER BY and CREATE INDEX.
  * Added the SQLITE_DISABLE_FTS4_DEFERRED compile-time option.
  * Better handling of aggregate queries where the aggregate 
    functions are contained within subqueries.
  * Enhance the query planner so that it will try to use a 
    covering index on queries that make use of or optimization.

OBS-URL: https://build.opensuse.org/request/show/132547
OBS-URL: https://build.opensuse.org/package/show/server:database/sqlite3?expand=0&rev=64
2012-09-04 14:56:41 +00:00

156 lines
4.6 KiB
RPMSpec

#
# spec file for package sqlite3
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: sqlite3
Version: 3.7.14
Release: 0
%define tarversion 3071400
Summary: Embeddable SQL Database Engine
License: SUSE-Public-Domain
Group: Productivity/Databases/Servers
Url: http://www.sqlite.org/
#
BuildRequires: pkg-config
BuildRequires: readline-devel
BuildRequires: tcl-devel
%if 0%{?suse_version:1}
BuildRequires: update-desktop-files
%endif
#
Requires: libsqlite3-0 = %version
Provides: sqlite = %version
Obsoletes: sqlite < %version
Source0: sqlite-autoconf-%tarversion.tar.gz
Source1: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# bug437293
%ifarch ppc64
Obsoletes: sqlite-64bit
%endif
#
%if 0%{?suse_version} < 1100
%define tcl_archdir %(echo 'puts [lindex $tcl_pkgPath 0]'|tclsh)
%endif
%description
SQLite is a C library that implements an embeddable SQL database
engine. Programs that link with the SQLite library can have SQL
database access without running a separate RDBMS process.
SQLite is not a client library used to connect to a big database
server. SQLite is a server and the SQLite library reads and writes
directly to and from the database files on disk.
SQLite can be used via the sqlite command line tool or via any
application that supports the Qt database plug-ins.
%package -n libsqlite3-0
Summary: Shared libraries for the Embeddable SQL Database Engine
Group: Development/Libraries/C and C++
%description -n libsqlite3-0
This package contains the shared libraries for the Embeddable SQL
Database Engine.
SQLite is a C library that implements an embeddable SQL database
engine. Programs that link with the SQLite library can have SQL
database access without running a separate RDBMS process.
SQLite is not a client library used to connect to a big database
server. SQLite is a server and the SQLite library reads and writes
directly to and from the database files on disk.
SQLite can be used via the sqlite command line tool or via any
application that supports the Qt database plug-ins.
%package devel
Summary: Embeddable SQL Database Engine
Group: Development/Libraries/C and C++
Requires: glibc-devel
Requires: libsqlite3-0 = %version
Provides: sqlite-devel = %version
Obsoletes: sqlite-devel < %version
%description devel
SQLite is a C library that implements an embeddable SQL database
engine. Programs that link with the SQLite library can have SQL
database access without running a separate RDBMS process.
SQLite is not a client library used to connect to a big database
server; SQLite is the server. The SQLite library reads and writes
directly to and from the database files on disk.
SQLite can be used via the sqlite command-line tool or via any
application which supports the Qt database plug-ins.
%package tcl
Summary: Tcl binding for SQLite
Group: Development/Libraries/Tcl
%description tcl
This package contains laguage bindings from the Tcl programming
language SQLite.
SQLite is a C library that implements an embeddable SQL database
engine. Programs that link with the SQLite library can have SQL
database access without running a separate RDBMS process.
%prep
%setup -q -n sqlite-autoconf-%tarversion
%build
export CFLAGS="-DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS4"
%configure --disable-static
make
cd tea
export CFLAGS=-I..
export LDFLAGS=-L../.libs
%configure --with-tcl=%_libdir --with-system-sqlite
%install
make install DESTDIR=%buildroot
rm %buildroot/%_libdir/*.la
cd tea
make install DESTDIR=%buildroot libdir=%tcl_archdir
%post -n libsqlite3-0 -p /sbin/ldconfig
%postun -n libsqlite3-0 -p /sbin/ldconfig
%files
%defattr(-,root,root)
/usr/bin/sqlite3
%doc %_mandir/man1/*
%files -n libsqlite3-0
%defattr(-,root,root)
%_libdir/libsqlite*.so.*
%files devel
%defattr(-,root,root)
/usr/include/*.h
%_libdir/libsqlite*.so
%_libdir/pkgconfig/sqlite3.pc
%files tcl
%defattr(-,root,root)
%tcl_archdir
%doc %_mandir/mann/*
%changelog