2abe230
# --with-tcl enables sqlite-tcl subpackage, and also makes %%check possible.
4a178f7
%define tcl 0%{?_with_tcl:1}
Paul Nasrat 0ea3bf2
# --with static enables static library in -devel subpackage
Paul Nasrat 0ea3bf2
%define static 0%{?_with_static:1}
2abe230
jbj 2680542
Summary: Library that implements an embeddable SQL database engine
jbj 2680542
Name: sqlite
Paul Nasrat 1a0ad97
Version: 3.4.2
Paul Nasrat 9972207
Release: 1%{?dist}
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
Paul Nasrat 1a0ad97
BuildRequires: ncurses-devel readline-devel glibc-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
Paul Nasrat 0ea3bf2
flexibility 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
Paul Nasrat 1a0ad97
export CFLAGS="$RPM_OPT_FLAGS -DSQLITE_DISABLE_DIRSYNC=1 -Wall"
Paul Nasrat fc6d77a
%configure %{!?_with_tcl:--disable-tcl} \
Paul Nasrat 0ea3bf2
           --enable-threadsafe \
Paul Nasrat 1a0ad97
           --enable-threads-override-locks 
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
Paul Nasrat 0ea3bf2
%if ! %{static}
455084c
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.{la,a}
Paul Nasrat 0ea3bf2
%endif
455084c
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}/*.so
jbj 2680542
%{_libdir}/pkgconfig/*.pc
Paul Nasrat 0ea3bf2
%if %{static}
Paul Nasrat 0ea3bf2
%{_libdir}/*.a
Paul Nasrat 0ea3bf2
%exclude %{_libdir}/*.la
Paul Nasrat 0ea3bf2
%endif
4a178f7
%if %{tcl}
jbj 2680542
%files tcl
jbj 2680542
%defattr(-, root, root)
jbj 2680542
%{_datadir}/tcl*/sqlite3
0242ca7
%endif
jbj 2680542
jbj 2680542
%changelog
Paul Nasrat 1a0ad97
* Wed Aug 15 2007 Paul Nasrat <pnasrat@redhat.com> - 3.4.2-1
Paul Nasrat 1a0ad97
- Update to 3.4.2
Paul Nasrat 1a0ad97
Paul Nasrat 1a0ad97
* Sat Jul 21 2007 Paul Nasrat <pnasrat@redhat.com> - 3.4.1-1
Paul Nasrat 1a0ad97
- Update to 3.4.1
Paul Nasrat 1a0ad97
Paul Nasrat 1a0ad97
* Sun Jun 24 2007 Paul Nasrat <pnsarat@redhat.com> - 3.4.0-2
Paul Nasrat 1a0ad97
- Disable load for now (#245486)
Paul Nasrat 1a0ad97
Paul Nasrat 1a0ad97
* Tue Jun 19 2007 Paul Nasrat <pnasrat@redhat.com> - 3.4.0-1
Paul Nasrat 1a0ad97
- Update to 3.4.0
Paul Nasrat 1a0ad97
Paul Nasrat 1a0ad97
* Fri Jun 01 2007 Paul Nasrat <pnasrat@redhat.com> - 3.3.17-2
Paul Nasrat 1a0ad97
- Enable load 
Paul Nasrat 1a0ad97
- Build fts1 and fts2
Paul Nasrat 1a0ad97
- Don't sync on dirs (#237427)
Paul Nasrat 1a0ad97
Paul Nasrat 1a0ad97
* Tue May 29 2007 Paul Nasrat <pnasrat@redhat.com> - 3.3.17-1
Paul Nasrat 1a0ad97
- Update to 3.3.17
Paul Nasrat 1a0ad97
Paul Nasrat 9972207
* Mon Mar 19 2007 Paul Nasrat <pnasrat@redhat.com> - 3.3.13-1
Paul Nasrat 9972207
- Update to 3.3.13
Paul Nasrat 9972207
Paul Nasrat fc6d77a
* Fri Aug 11 2006 Paul Nasrat <pnasrat@redhat.com> - 3.3.6-2
Paul Nasrat fc6d77a
- Fix conditional typo (patch from Gareth Armstrong)
Paul Nasrat fc6d77a
59a588a
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3.3.6-1.1
59a588a
- rebuild
59a588a
Paul Nasrat 0ea3bf2
* Mon Jun 26 2006 Paul Nasrat <pnasrat@redhat.com> - 3.3.6-1
Paul Nasrat 0ea3bf2
- Update to 3.3.6
Paul Nasrat 0ea3bf2
- Fix typo  (#189647)
Paul Nasrat 0ea3bf2
- Enable threading fixes (#181298)
Paul Nasrat 0ea3bf2
- Conditionalize static library
Paul Nasrat 0ea3bf2
Paul Nasrat 0795915
* Mon Apr 17 2006 Paul Nasrat <pnasrat@redhat.com> - 3.3.5-1
Paul Nasrat 0795915
- Update to 3.3.5
Paul Nasrat 0795915
b905003
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 3.3.3-1.2
b905003
- bump again for double-long bug on ppc(64)
b905003
0fd446b
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 3.3.3-1.1
0fd446b
- rebuilt for new gcc4.1 snapshot and glibc changes
0fd446b
a71c3f8
* Tue Jan 31 2006 Christopher Aillon <caillon@redhat.com> - 3.3.3-1
a71c3f8
- Update to 3.3.3
a71c3f8
a394dc6
* Tue Jan 31 2006 Christopher Aillon <caillon@redhat.com> - 3.3.2-1
a394dc6
- Update to 3.3.2
a394dc6
Paul Nasrat 8b0e8b3
* Tue Jan 24 2006 Paul Nasrat <pnasrat@redhat.com> - 3.2.8-1
Paul Nasrat 8b0e8b3
- Add --enable-threadsafe (Nicholas Miell)
Paul Nasrat 8b0e8b3
- Update to 3.2.8
Paul Nasrat 8b0e8b3
4e0116a
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
4e0116a
- rebuilt
4e0116a
455084c
* Tue Oct  4 2005 Jeremy Katz <katzj@redhat.com> - 3.2.7-2
455084c
- no more static file or libtool archive (#169874) 
455084c
Florian La Roche 4d69ef8
* Wed Sep 28 2005 Florian La Roche <laroche@redhat.com>
Florian La Roche 4d69ef8
- Upgrade to 3.2.7 release.
Florian La Roche 4d69ef8
Florian La Roche 634b37d
* Thu Sep 22 2005 Florian La Roche <laroche@redhat.com>
Florian La Roche 634b37d
- Upgrade to 3.2.6 release.
Florian La Roche 634b37d
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