Name: sqlite Version: 2.8.6 Release: 0.fdr.6 Epoch: 0 Summary: An embeddable SQL engine in a C library. Group: System Environment/Libraries License: Public Domain URL: http://www.sqlite.org/ Source0: http://www.sqlite.org/sqlite-2.8.6.tar.gz Patch1: sqlite-2.8.6.norpath.patch Patch2: sqlite-2.8.3.makefile.tclsqlite.patch Patch3: sqlite-2.8.3.test.rh9.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: ncurses-devel readline-devel %{_includedir}/tcl.h %description SQLite is a small, fast, embeddable SQL database engine that supports most of SQL92, including transactions with atomic commit and rollback, subqueries, compound queries, triggers, and views. A complete database is stored in a single cross-platform disk file. The native C/C++ API is simple and easy to use. Bindings for other languages are also available. %package devel Summary: Development files for SQLite Group: Development/Libraries Requires: %{name} = %{epoch}:%{version}-%{release} Requires: pkgconfig %description devel SQLite is a small, fast, embeddable SQL database engine that supports most of SQL92, including transactions with atomic commit and rollback, subqueries, compound queries, triggers, and views. This package contains static library and header files for developing applications using sqlite. %package tcl Summary: Tcl bindings for sqlite Group: System Environment/Libraries Requires: tcl >= 0:8.3.3, %{name} = %{epoch}:%{version}-%{release} %description tcl SQLite is a small, fast, embeddable SQL database engine that supports most of SQL92, including transactions with atomic commit and rollback, subqueries, compound queries, triggers, and views. This package contains tcl bindings for sqlite. %prep %setup -q -n %{name} %patch1 -p1 %patch2 -p0 %patch3 -p1 %build CFLAGS="$RPM_OPT_FLAGS -DNDEBUG=1" %configure --enable-utf8 make all tclsqlite doc test %install rm -rf $RPM_BUILD_ROOT DIRECTORY=$RPM_BUILD_ROOT%_libdir/sqlite-%version install -d $DIRECTORY cp -d -p .libs/libtclsqlite.so* $DIRECTORY echo 'package ifneeded sqlite 2 [list load [file join $dir libtclsqlite.so]]' > $DIRECTORY/pkgIndex.tcl %makeinstall install -D -m 0644 sqlite.1 $RPM_BUILD_ROOT/%{_mandir}/man1/sqlite.1 find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %{_bindir}/sql* %{_libdir}/libsql*.so.* %{_mandir}/man1/* %files devel %defattr(-,root,root,-) %doc README doc/* %{_libdir}/libsql*.a %{_libdir}/libsql*.so %{_includedir}/* %{_libdir}/pkgconfig/* %files tcl %defattr(-,root,root,-) %doc doc/tclsqlite.html %exclude %_bindir/tclsqlite %exclude %_libdir/libtclsqlite.* %_libdir/sqlite-%version %changelog * Sat Dec 27 2003 Jean-Luc Fontaine - 0:2.8.6-0.fdr.6 - in tcl rpm, removed tclsqlite, moved shared library in own sqlite sub-directory add added pkgIndex.tcl file to make package dynamically loadable in a Tcl interpreter - in build requirements, work around tcl-devel and tk-devel packages non existence in RH 8.0 and 9 - in tcl rpm, added tcl package requirement - in tcl rpm, post ldconfig is not necessary * Wed Nov 12 2003 Nils O. Selåsdal - 0:2.8.6-0.fdr.5 - BuildRequires tcl-devel - small .spec tweaks * Tue Oct 28 2003 Nils O. Selåsdal - 0:2.8.6-0.fdr.4 - exclude libtclsqlite.a * Mon Oct 27 2003 Nils O. Selåsdal - 0:2.8.6-0.fdr.3 - Fix readme -> README * Mon Oct 27 2003 Nils O. Selåsdal - 0:2.8.6-0.fdr.2 - Better summary/description - Add patch for not using rpath - Add patch that builds tclsqlite (From Anvil's package) - Add patch that fixes the tests (From Anvil's package) - New tcl subpackage - Also make the tests during build - Build docs, and include them in -devel * Fri Oct 10 2003 Nils O. Selåsdal - 0:2.8.6-0.fdr.1 - Initial RPM release.