2008-01-14 10:18:35 +01:00
|
|
|
#
|
2011-01-24 16:01:30 +01:00
|
|
|
# spec file for package sqlite3
|
2008-01-14 10:18:35 +01:00
|
|
|
#
|
2015-02-18 10:28:07 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2008-01-14 10:18:35 +01:00
|
|
|
#
|
2008-09-13 12:16:31 +02:00
|
|
|
# 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.
|
|
|
|
|
2008-01-14 10:18:35 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2014-01-07 18:09:45 +01:00
|
|
|
# Simplify building on RH for Application:Geo (SR#212812).
|
|
|
|
%define pname sqlite3
|
|
|
|
%define oname sqlite
|
|
|
|
|
|
|
|
Name: %pname
|
2015-10-17 09:59:51 +02:00
|
|
|
Version: 3.9.1
|
2012-05-04 13:08:27 +02:00
|
|
|
Release: 0
|
2015-10-17 09:59:51 +02:00
|
|
|
%define tarversion 3090100
|
2012-05-04 13:08:27 +02:00
|
|
|
Summary: Embeddable SQL Database Engine
|
2011-12-06 19:05:34 +01:00
|
|
|
License: SUSE-Public-Domain
|
2008-01-14 10:18:35 +01:00
|
|
|
Group: Productivity/Databases/Servers
|
|
|
|
Url: http://www.sqlite.org/
|
2012-05-04 13:08:27 +02:00
|
|
|
#
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: readline-devel
|
2014-02-13 11:47:47 +01:00
|
|
|
BuildRequires: unzip
|
2012-05-04 13:08:27 +02:00
|
|
|
%if 0%{?suse_version:1}
|
|
|
|
BuildRequires: update-desktop-files
|
2009-01-14 17:59:46 +01:00
|
|
|
%endif
|
|
|
|
#
|
2009-06-05 22:44:19 +02:00
|
|
|
Requires: libsqlite3-0 = %version
|
2014-01-07 18:09:45 +01:00
|
|
|
Provides: %oname = %version
|
|
|
|
Obsoletes: %oname < %version
|
2015-01-18 16:48:05 +01:00
|
|
|
Source0: http://www.sqlite.org/2015/sqlite-autoconf-%tarversion.tar.gz
|
2011-02-03 15:57:53 +01:00
|
|
|
Source1: baselibs.conf
|
2015-01-18 16:48:05 +01:00
|
|
|
Source2: http://www.sqlite.org/2015/sqlite-doc-%tarversion.zip
|
2008-01-14 10:18:35 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-05-04 13:08:27 +02:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
2014-04-04 08:56:54 +02:00
|
|
|
Obsoletes: sqlite-64bit < %{version}
|
|
|
|
Provides: sqlite-64bit = %{version}
|
2012-05-04 13:08:27 +02:00
|
|
|
%endif
|
|
|
|
#
|
2014-01-07 18:09:45 +01:00
|
|
|
|
2008-01-14 10:18:35 +01:00
|
|
|
%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
|
2014-01-07 18:09:45 +01:00
|
|
|
|
2008-01-14 10:18:35 +01:00
|
|
|
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
|
2014-01-07 18:09:45 +01:00
|
|
|
|
2008-01-14 10:18:35 +01:00
|
|
|
Summary: Embeddable SQL Database Engine
|
2012-05-04 13:08:27 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libsqlite3-0 = %version
|
2014-01-07 18:09:45 +01:00
|
|
|
Provides: %oname-devel = %version
|
|
|
|
Obsoletes: %oname-devel < %version
|
2014-02-13 11:47:47 +01:00
|
|
|
Suggests: %name-doc
|
2008-01-14 10:18:35 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2014-02-13 11:47:47 +01:00
|
|
|
%package doc
|
|
|
|
|
|
|
|
Summary: Documentation for %name
|
|
|
|
Group: Documentation
|
|
|
|
%if 0%{?suse_version} >= 1130
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
|
|
|
Contains HTML documentation for SQLite: SQL Syntax, C/C++ API and
|
|
|
|
other documentation found on sqlite.org. The files can be found in
|
|
|
|
%_docdir/%name-doc.
|
|
|
|
|
2008-01-14 10:18:35 +01:00
|
|
|
%prep
|
2014-02-13 11:47:47 +01:00
|
|
|
%setup -q -n sqlite-autoconf-%tarversion -a2
|
2014-03-29 19:10:03 +01:00
|
|
|
rm -v sqlite-doc-%{tarversion}/releaselog/current.html
|
|
|
|
ln -sv `echo %{version} | sed "s/\./_/g"`.html sqlite-doc-%{tarversion}/releaselog/current.html
|
2008-01-14 10:18:35 +01:00
|
|
|
|
|
|
|
%build
|
2015-10-15 17:23:13 +02:00
|
|
|
export CFLAGS="%optflags \
|
|
|
|
-DSQLITE_ENABLE_COLUMN_METADATA \
|
|
|
|
-DSQLITE_ENABLE_FTS4 \
|
|
|
|
-DSQLITE_ENABLE_UNLOCK_NOTIFY \
|
|
|
|
-DSQLITE_ENABLE_JSON1 \
|
|
|
|
"
|
2009-12-04 10:14:24 +01:00
|
|
|
%configure --disable-static
|
|
|
|
make
|
2008-01-14 10:18:35 +01:00
|
|
|
|
|
|
|
%install
|
2009-12-04 10:14:24 +01:00
|
|
|
make install DESTDIR=%buildroot
|
|
|
|
rm %buildroot/%_libdir/*.la
|
2008-01-14 10:18:35 +01:00
|
|
|
|
|
|
|
%post -n libsqlite3-0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libsqlite3-0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/bin/sqlite3
|
2009-06-05 22:44:19 +02:00
|
|
|
%doc %_mandir/man1/*
|
2008-01-14 10:18:35 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2014-02-13 11:47:47 +01:00
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc sqlite-doc-%tarversion/*
|
|
|
|
|
2008-01-14 10:18:35 +01:00
|
|
|
%changelog
|