SHA256
1
0
forked from pool/sqlite3
sqlite3/sqlite3.spec

135 lines
4.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package sqlite3
#
# Copyright (c) 2014 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/
#
# Simplify building on RH for Application:Geo (SR#212812).
%define pname sqlite3
%define oname sqlite
Name: %pname
- New version: 3.8.3: * Added support for common table expressions and the WITH clause. * Added the printf() SQL function. * Added SQLITE_DETERMINISTIC as an optional bit in the 4th argument to the sqlite3_create_function() and related interfaces, providing applications with the ability to create new functions that can be factored out of inner loops when they have constant arguments. * Add SQLITE_READONLY_DBMOVED error code, returned at the beginning of a transaction, to indicate that the underlying database file has been renamed or moved out from under SQLite. * Allow arbitrary expressions, including function calls and subqueries, in the filename argument to ATTACH. * Allow a VALUES clause to be used anywhere a SELECT statement is valid. * Reseed the PRNG used by sqlite3_randomness(N,P) when invoked with N==0. Automatically reseed after a fork() on unix. * Enhance the spellfix1 virtual table so that it can search efficiently by rowid. * Performance enhancements. * Improvements to the comments in the VDBE byte-code display when running EXPLAIN. * Add the "%token_class" directive to LEMON parser generator and use it to simplify the grammar. * Change the LEMON source code to avoid calling C-library functions that OpenBSD considers dangerous. (Ex: sprintf). * Bug fix: In the command-line shell CSV import feature, do not end a field when an escaped double-quote occurs at the end of a CRLN line. OBS-URL: https://build.opensuse.org/package/show/server:database/sqlite3?expand=0&rev=88
2014-02-04 16:09:58 +01:00
Version: 3.8.3
Release: 0
- New version: 3.8.3: * Added support for common table expressions and the WITH clause. * Added the printf() SQL function. * Added SQLITE_DETERMINISTIC as an optional bit in the 4th argument to the sqlite3_create_function() and related interfaces, providing applications with the ability to create new functions that can be factored out of inner loops when they have constant arguments. * Add SQLITE_READONLY_DBMOVED error code, returned at the beginning of a transaction, to indicate that the underlying database file has been renamed or moved out from under SQLite. * Allow arbitrary expressions, including function calls and subqueries, in the filename argument to ATTACH. * Allow a VALUES clause to be used anywhere a SELECT statement is valid. * Reseed the PRNG used by sqlite3_randomness(N,P) when invoked with N==0. Automatically reseed after a fork() on unix. * Enhance the spellfix1 virtual table so that it can search efficiently by rowid. * Performance enhancements. * Improvements to the comments in the VDBE byte-code display when running EXPLAIN. * Add the "%token_class" directive to LEMON parser generator and use it to simplify the grammar. * Change the LEMON source code to avoid calling C-library functions that OpenBSD considers dangerous. (Ex: sprintf). * Bug fix: In the command-line shell CSV import feature, do not end a field when an escaped double-quote occurs at the end of a CRLN line. OBS-URL: https://build.opensuse.org/package/show/server:database/sqlite3?expand=0&rev=88
2014-02-04 16:09:58 +01:00
%define tarversion 3080300
Summary: Embeddable SQL Database Engine
License: SUSE-Public-Domain
Group: Productivity/Databases/Servers
Url: http://www.sqlite.org/
#
BuildRequires: pkg-config
BuildRequires: readline-devel
%if 0%{?suse_version:1}
BuildRequires: update-desktop-files
%endif
#
Requires: libsqlite3-0 = %version
Provides: %oname = %version
Obsoletes: %oname < %version
- New Version 3.7.16: * Added the PRAGMA foreign_key_check command. * Added new extended error codes for all SQLITE_CONSTRAINT errors * Added the SQLITE_READONLY_ROLLBACK extended error code for when a database cannot be opened because it needs rollback recovery but is read-only. * Added SQL functions unicode(A) and char(X1,...,XN). * Performance improvements for PRAGMA incremental_vacuum, especially in cases where the number of free pages is greater than what will fit on a single trunk page of the freelist. * Improved optimization of queries containing aggregate min() or max(). * Enhance virtual tables so that they can potentially use an index when the WHERE clause contains the IN operator. * Allow indices to be used for sorting even if prior terms of the index are constrained by IN operators in the WHERE clause. * Enhance the PRAGMA table_info command so that the "pk" column is an increasing integer to show the order of columns in the primary key. * Enhance the query optimizer to exploit transitive join constraints. * Performance improvements in the query optimizer. * Allow the error message from PRAGMA integrity_check to be longer than 20000 bytes. * Improved name resolution for deeply nested queries. * Added the test_regexp.c module as a demonstration of how to implement the REGEXP operator. * Improved error messages in the RTREE extension. * Enhance the command-line shell so that a non-zero argument to OBS-URL: https://build.opensuse.org/package/show/server:database/sqlite3?expand=0&rev=72
2013-03-20 13:21:34 +01:00
Source0: http://www.sqlite.org/2013/sqlite-autoconf-%tarversion.tar.gz
Source1: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# bug437293
%ifarch ppc64
Obsoletes: sqlite-64bit
%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: %oname-devel = %version
Obsoletes: %oname-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.
%prep
%setup -q -n sqlite-autoconf-%tarversion
%build
export CFLAGS="%optflags -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS4"
%configure --disable-static
make
%install
make install DESTDIR=%buildroot
rm %buildroot/%_libdir/*.la
%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
%changelog