sqlite/sqlite.spec

173 lines
4.5 KiB
RPMSpec
Raw Normal View History

2005-07-14 20:17:04 +00:00
# --with-tcl enables sqlite-tcl subpackage, and also makes %%check possible.
2005-07-14 20:23:21 +00:00
%define tcl 0%{?_with_tcl:1}
2006-06-26 18:48:38 +00:00
# --with static enables static library in -devel subpackage
%define static 0%{?_with_static:1}
2005-07-14 20:17:04 +00:00
Summary: Library that implements an embeddable SQL database engine
Name: sqlite
2006-06-26 18:48:38 +00:00
Version: 3.3.6
2006-07-12 08:17:12 +00:00
Release: 1.1
License: Public Domain
Group: Applications/Databases
URL: http://www.sqlite.org/
Source: http://www.sqlite.org/sqlite-%{version}.tar.gz
Obsoletes: sqlite3 sqlite3-devel
2005-04-10 04:05:27 +00:00
BuildRequires: ncurses-devel readline-devel
2005-07-14 20:17:04 +00:00
BuildRequires: /usr/bin/tclsh
2005-07-14 20:23:21 +00:00
%if %{tcl}
2005-07-14 20:17:04 +00:00
BuildRequires: tcl-devel
%endif
BuildRoot: %{_tmppath}/%{name}-root
%description
SQLite is a C library that implements an SQL database engine. A large
subset of SQL92 is supported. A complete database is stored in a
single disk file. The API is designed for convenience and ease of use.
Applications that link against SQLite can enjoy the power and
2006-06-26 18:48:38 +00:00
flexibility of an SQL database without the administrative hassles of
2005-07-14 20:17:04 +00:00
supporting a separate database server. Version 2 and version 3 binaries
are named to permit each to be installed on a single host
%package devel
Summary: Development tools for the sqlite3 embeddable SQL database engine.
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.
2005-07-14 20:23:21 +00:00
%if %{tcl}
%package tcl
Summary: Tcl module for the sqlite3 embeddable SQL database engine.
Group: Development/Languages
Requires: %{name} = %{version}-%{release}
%description tcl
This package contains the tcl modules for %{name}.
%endif
2005-07-14 20:17:04 +00:00
%prep
%setup -q
%build
2006-06-26 18:48:38 +00:00
%configure %{!?with_tcl:--disable-tcl} \
--enable-threadsafe \
--enable-threads-override-locks
make %{?_smp_mflags}
2005-07-14 20:17:04 +00:00
make doc
%install
rm -rf $RPM_BUILD_ROOT
2005-07-14 20:17:04 +00:00
make DESTDIR=${RPM_BUILD_ROOT} install
%{__install} -D -m0644 sqlite3.1 %{buildroot}%{_mandir}/man1/sqlite3.1
2006-06-26 18:48:38 +00:00
%if ! %{static}
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.{la,a}
2006-06-26 18:48:38 +00:00
%endif
2005-07-14 20:23:21 +00:00
%if %{tcl}
%check
2005-07-14 20:17:04 +00:00
make test
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc README
%{_bindir}/*
%{_libdir}/*.so.*
%{_mandir}/man?/*
%files devel
%defattr(-, root, root)
%doc doc/
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
2006-06-26 18:48:38 +00:00
%if %{static}
%{_libdir}/*.a
%exclude %{_libdir}/*.la
%endif
2005-07-14 20:23:21 +00:00
%if %{tcl}
%files tcl
%defattr(-, root, root)
%{_datadir}/tcl*/sqlite3
2005-04-04 18:15:46 +00:00
%endif
%changelog
2006-07-12 08:17:12 +00:00
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3.3.6-1.1
- rebuild
2006-06-26 18:48:38 +00:00
* Mon Jun 26 2006 Paul Nasrat <pnasrat@redhat.com> - 3.3.6-1
- Update to 3.3.6
- Fix typo (#189647)
- Enable threading fixes (#181298)
- Conditionalize static library
2006-04-18 14:36:17 +00:00
* Mon Apr 17 2006 Paul Nasrat <pnasrat@redhat.com> - 3.3.5-1
- Update to 3.3.5
2006-02-11 05:43:20 +00:00
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 3.3.3-1.2
- bump again for double-long bug on ppc(64)
2006-02-07 13:52:29 +00:00
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 3.3.3-1.1
- rebuilt for new gcc4.1 snapshot and glibc changes
2006-01-31 19:31:38 +00:00
* Tue Jan 31 2006 Christopher Aillon <caillon@redhat.com> - 3.3.3-1
- Update to 3.3.3
2006-01-31 09:07:24 +00:00
* Tue Jan 31 2006 Christopher Aillon <caillon@redhat.com> - 3.3.2-1
- Update to 3.3.2
2006-01-24 20:28:46 +00:00
* Tue Jan 24 2006 Paul Nasrat <pnasrat@redhat.com> - 3.2.8-1
- Add --enable-threadsafe (Nicholas Miell)
- Update to 3.2.8
2005-12-09 22:43:17 +00:00
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
- rebuilt
* Tue Oct 4 2005 Jeremy Katz <katzj@redhat.com> - 3.2.7-2
- no more static file or libtool archive (#169874)
2005-09-28 11:33:15 +00:00
* Wed Sep 28 2005 Florian La Roche <laroche@redhat.com>
- Upgrade to 3.2.7 release.
2005-09-22 10:24:35 +00:00
* Thu Sep 22 2005 Florian La Roche <laroche@redhat.com>
- Upgrade to 3.2.6 release.
2005-09-11 07:48:48 +00:00
* Sun Sep 11 2005 Florian La Roche <laroche@redhat.com>
- Upgrade to 3.2.5 release.
2005-07-14 20:17:04 +00:00
* Fri Jul 8 2005 Roland McGrath <roland@redhat.com> - 3.2.2-1
- Upgrade to 3.2.2 release.
2005-04-10 04:05:27 +00:00
* Sat Apr 9 2005 Warren Togami <wtogami@redhat.com> - 3.1.2-3
- fix buildreqs (#154298)
2005-04-04 18:15:46 +00:00
* Mon Apr 4 2005 Jeremy Katz <katzj@redhat.com> - 3.1.2-2
- disable tcl subpackage
* Wed Mar 9 2005 Jeff Johnson <jbj@redhat.com> 3.1.2-1
- rename to "sqlite" from "sqlite3" (#149719, #150012).
* Wed Feb 16 2005 Jeff Johnson <jbj@jbj.org> 3.1.2-1
- upgrade to 3.1.2.
- add sqlite3-tcl sub-package.
* Sat Feb 5 2005 Jeff Johnson <jbj@jbj.org> 3.0.8-3
- repackage for fc4.
* Mon Jan 17 2005 R P Herrold <info@owlriver.com> 3.0.8-2orc
2005-07-14 20:17:04 +00:00
- fix a man page nameing conflict when co-installed with sqlite-2, as
is permissible