forked from pool/sqlite3
a6ff9d50a2
Copy from server:database/sqlite3 based on submit request 23084 from user coolo OBS-URL: https://build.opensuse.org/request/show/23084 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sqlite3?expand=0&rev=19
227 lines
6.0 KiB
RPMSpec
227 lines
6.0 KiB
RPMSpec
#
|
|
# spec file for package sqlite3 (Version 3.6.16)
|
|
#
|
|
# Copyright (c) 2009 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/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
%if 0%{?!tcl_archdir:1}
|
|
# %tcl_archdir didn't exist before openSUSE 11.0
|
|
%define tcl_archdir %(echo 'puts [lindex $tcl_pkgPath 0]'|tclsh)
|
|
%endif
|
|
#
|
|
%if 0%{?suse_version} >= 1100
|
|
# The package naming scheme changed starting with openSUSE 11.0
|
|
%define newscheme 1
|
|
%else
|
|
%define newscheme 0
|
|
%endif
|
|
|
|
Name: sqlite3
|
|
BuildRequires: gcc-c++ readline-devel tcl-devel
|
|
%if %{?suse_version:1}%{?!suse_version:0}
|
|
BuildRequires: update-desktop-files
|
|
%endif
|
|
License: Public Domain, Freeware
|
|
Group: Productivity/Databases/Servers
|
|
Summary: Embeddable SQL Database Engine
|
|
Url: http://www.sqlite.org/
|
|
Version: 3.6.16
|
|
Release: 2
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: sqlite-64bit
|
|
%endif
|
|
#
|
|
%if %newscheme
|
|
Requires: libsqlite3-0 = %version
|
|
%endif
|
|
Provides: sqlite = %version
|
|
Obsoletes: sqlite < %version
|
|
Source0: http://www.sqlite.org/sqlite-%version.tar.bz2
|
|
Source1: sqlite.desktop
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%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.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
D. Richard Hipp <drh@hwaci.com>
|
|
|
|
%if %newscheme
|
|
|
|
%package -n libsqlite3-0
|
|
License: Public Domain, Freeware
|
|
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.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
D. Richard Hipp <drh@hwaci.com>
|
|
|
|
%endif
|
|
|
|
%package tcl
|
|
License: Public Domain, Freeware
|
|
Group: Development/Libraries/Tcl
|
|
Summary: Tcl binding for SQLite
|
|
Provides: sqlite-tcl = %version
|
|
Obsoletes: sqlite-tcl < %version
|
|
|
|
%description tcl
|
|
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.
|
|
|
|
This package contains an extension for the Tcl programming language to
|
|
access SQLite databases.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
D. Richard Hipp <drh@hwaci.com>
|
|
|
|
%package devel
|
|
License: Public Domain, Freeware
|
|
Group: Development/Libraries/C and C++
|
|
Summary: Embeddable SQL Database Engine
|
|
Requires: %name = %version glibc-devel
|
|
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.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
D. Richard Hipp <drh@hwaci.com>
|
|
|
|
%prep
|
|
%setup -q -n sqlite-%version
|
|
# does not work due to our ulimits in our build system
|
|
rm test/bigfile.test
|
|
|
|
%build
|
|
autoreconf -f -i
|
|
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG=1 -O3 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_SERVER=1"
|
|
export CXXFLAGS="$CFLAGS"
|
|
mkdir build
|
|
cd build
|
|
cp ../VERSION .
|
|
../configure \
|
|
--prefix=/usr \
|
|
--libdir=%_libdir \
|
|
--mandir=%_mandir \
|
|
--enable-threadsafe \
|
|
--enable-load-extension \
|
|
--disable-releasemode \
|
|
--enable-tempstore=yes \
|
|
--sysconfdir=/etc/ \
|
|
--disable-static \
|
|
--with-pic
|
|
make %{?jobs:-j%jobs} \
|
|
TCLLIBDIR=%tcl_archdir/%name
|
|
|
|
%install
|
|
cd build
|
|
make install \
|
|
DESTDIR="$RPM_BUILD_ROOT" \
|
|
TCLLIBDIR=%tcl_archdir/%name
|
|
echo 'package ifneeded sqlite3 %version [list load $dir/libtclsqlite3.so sqlite3]' \
|
|
> %buildroot%tcl_archdir/%name/pkgIndex.tcl
|
|
install -d $RPM_BUILD_ROOT%_mandir/man1/
|
|
install -m 0644 ../sqlite3.1 $RPM_BUILD_ROOT%_mandir/man1/
|
|
rm -f %buildroot%_libdir/*.la
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
#
|
|
%if %newscheme
|
|
|
|
%post -n libsqlite3-0 -p /sbin/ldconfig
|
|
|
|
%postun -n libsqlite3-0 -p /sbin/ldconfig
|
|
%else
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
%endif
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
/usr/bin/sqlite3
|
|
%doc %_mandir/man1/*
|
|
#
|
|
%if %newscheme
|
|
|
|
%files -n libsqlite3-0
|
|
%defattr(-,root,root)
|
|
%endif
|
|
%_libdir/libsqlite*.so.*
|
|
|
|
%files tcl
|
|
%defattr(-,root,root)
|
|
%tcl_archdir
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
/usr/include/*.h
|
|
%_libdir/libsqlite*.so
|
|
%_libdir/pkgconfig/sqlite3.pc
|
|
|
|
%changelog
|