2abe230
# --with-tcl enables sqlite-tcl subpackage, and also makes %%check possible.
4a178f7
%define tcl 0%{?_with_tcl:1}
2abe230
jbj 2680542
Summary: Library that implements an embeddable SQL database engine
jbj 2680542
Name: sqlite
Florian La Roche 6eced65
Version: 3.2.5
2abe230
Release: 1
jbj 2680542
License: Public Domain
jbj 2680542
Group: 	Applications/Databases
jbj 2680542
URL: http://www.sqlite.org/
jbj 2680542
Source: http://www.sqlite.org/sqlite-%{version}.tar.gz
jbj 2680542
Obsoletes: sqlite3 sqlite3-devel
61bc2da
BuildRequires: ncurses-devel readline-devel
2abe230
BuildRequires: /usr/bin/tclsh
4a178f7
%if %{tcl}
2abe230
BuildRequires: tcl-devel
2abe230
%endif
jbj 2680542
BuildRoot: %{_tmppath}/%{name}-root
jbj 2680542
jbj 2680542
%description
jbj 2680542
SQLite is a C library that implements an SQL database engine. A large
jbj 2680542
subset of SQL92 is supported. A complete database is stored in a
jbj 2680542
single disk file. The API is designed for convenience and ease of use.
jbj 2680542
Applications that link against SQLite can enjoy the power and
jbj 2680542
flexiblity of an SQL database without the administrative hassles of
2abe230
supporting a separate database server.  Version 2 and version 3 binaries
jbj 2680542
are named to permit each to be installed on a single host
jbj 2680542
jbj 2680542
%package devel
jbj 2680542
Summary: Development tools for the sqlite3 embeddable SQL database engine.
jbj 2680542
Group: Development/Libraries
jbj 2680542
Requires: %{name} = %{version}-%{release}
jbj 2680542
jbj 2680542
%description devel
jbj 2680542
This package contains the header files, static libraries and development
jbj 2680542
documentation for %{name}. If you like to develop programs using %{name},
jbj 2680542
you will need to install %{name}-devel.
jbj 2680542
4a178f7
%if %{tcl}
jbj 2680542
%package tcl
jbj 2680542
Summary: Tcl module for the sqlite3 embeddable SQL database engine.
jbj 2680542
Group: Development/Languages
jbj 2680542
Requires: %{name} = %{version}-%{release}
jbj 2680542
jbj 2680542
%description tcl
jbj 2680542
This package contains the tcl modules for %{name}.
jbj 2680542
%endif
jbj 2680542
2abe230
%prep
2abe230
%setup -q
jbj 2680542
jbj 2680542
%build
2abe230
%configure %{!?with_tcl:--disable-tcl}
jbj 2680542
make %{?_smp_mflags}
2abe230
make doc
jbj 2680542
jbj 2680542
%install
jbj 2680542
rm -rf $RPM_BUILD_ROOT
jbj 2680542
2abe230
make DESTDIR=${RPM_BUILD_ROOT} install
jbj 2680542
jbj 2680542
%{__install} -D -m0644 sqlite3.1 %{buildroot}%{_mandir}/man1/sqlite3.1
jbj 2680542
4a178f7
%if %{tcl}
jbj 2680542
%check
2abe230
make test
2abe230
%endif
jbj 2680542
jbj 2680542
%clean
jbj 2680542
rm -rf $RPM_BUILD_ROOT
jbj 2680542
jbj 2680542
%post -p /sbin/ldconfig
jbj 2680542
jbj 2680542
%postun -p /sbin/ldconfig
jbj 2680542
jbj 2680542
%files
jbj 2680542
%defattr(-, root, root)
jbj 2680542
%doc README
jbj 2680542
%{_bindir}/*
jbj 2680542
%{_libdir}/*.so.*
jbj 2680542
%{_mandir}/man?/*
jbj 2680542
jbj 2680542
%files devel
jbj 2680542
%defattr(-, root, root)
jbj 2680542
%doc doc/
jbj 2680542
%{_includedir}/*.h
jbj 2680542
%{_libdir}/*.a
jbj 2680542
%{_libdir}/*.la
jbj 2680542
%{_libdir}/*.so
jbj 2680542
%{_libdir}/pkgconfig/*.pc
jbj 2680542
4a178f7
%if %{tcl}
jbj 2680542
%files tcl
jbj 2680542
%defattr(-, root, root)
jbj 2680542
%{_datadir}/tcl*/sqlite3
0242ca7
%endif
jbj 2680542
jbj 2680542
%changelog
Florian La Roche 6eced65
* Sun Sep 11 2005 Florian La Roche <laroche@redhat.com>
Florian La Roche 6eced65
- Upgrade to 3.2.5 release.
Florian La Roche 6eced65
2abe230
* Fri Jul  8 2005 Roland McGrath <roland@redhat.com> - 3.2.2-1
2abe230
- Upgrade to 3.2.2 release.
2abe230
61bc2da
* Sat Apr  9 2005 Warren Togami <wtogami@redhat.com> - 3.1.2-3
61bc2da
- fix buildreqs (#154298)
61bc2da
0242ca7
* Mon Apr  4 2005 Jeremy Katz <katzj@redhat.com> - 3.1.2-2
0242ca7
- disable tcl subpackage
0242ca7
jbj 2680542
* Wed Mar  9 2005 Jeff Johnson <jbj@redhat.com> 3.1.2-1
jbj 2680542
- rename to "sqlite" from "sqlite3" (#149719, #150012).
jbj 2680542
jbj 2680542
* Wed Feb 16 2005 Jeff Johnson <jbj@jbj.org> 3.1.2-1
jbj 2680542
- upgrade to 3.1.2.
jbj 2680542
- add sqlite3-tcl sub-package.
jbj 2680542
jbj 2680542
* Sat Feb  5 2005 Jeff Johnson <jbj@jbj.org> 3.0.8-3
jbj 2680542
- repackage for fc4.
jbj 2680542
jbj 2680542
* Mon Jan 17 2005 R P Herrold <info@owlriver.com> 3.0.8-2orc
2abe230
- fix a man page nameing conflict when co-installed with sqlite-2, as
jbj 2680542
  is permissible