New upstream version 3.2.2

This commit is contained in:
roland 2005-07-14 20:17:04 +00:00
parent 61bc2da1a9
commit 2abe2302a9
2 changed files with 25 additions and 33 deletions

View File

@ -1 +1 @@
d9c52489aa95d618842bf97778c17f04 sqlite-3.1.2.tar.gz 802f19e1f0eba56f3f1be8c6491c8a55 sqlite-3.2.2.tar.gz

View File

@ -1,14 +1,20 @@
# --with-tcl enables sqlite-tcl subpackage, and also makes %%check possible.
%bcond_with tcl
Summary: Library that implements an embeddable SQL database engine Summary: Library that implements an embeddable SQL database engine
Name: sqlite Name: sqlite
Version: 3.1.2 Version: 3.2.2
Release: 3 Release: 1
License: Public Domain License: Public Domain
Group: Applications/Databases Group: Applications/Databases
URL: http://www.sqlite.org/ URL: http://www.sqlite.org/
Source: http://www.sqlite.org/sqlite-%{version}.tar.gz Source: http://www.sqlite.org/sqlite-%{version}.tar.gz
Patch0: sqlite-3.1.2-doc.patch
Obsoletes: sqlite3 sqlite3-devel Obsoletes: sqlite3 sqlite3-devel
BuildRequires: ncurses-devel readline-devel BuildRequires: ncurses-devel readline-devel
BuildRequires: /usr/bin/tclsh
%if %{with tcl}
BuildRequires: tcl-devel
%endif
BuildRoot: %{_tmppath}/%{name}-root BuildRoot: %{_tmppath}/%{name}-root
%description %description
@ -30,6 +36,7 @@ This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name}, documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel. you will need to install %{name}-devel.
%if %{with tcl}
%package tcl %package tcl
Summary: Tcl module for the sqlite3 embeddable SQL database engine. Summary: Tcl module for the sqlite3 embeddable SQL database engine.
Group: Development/Languages Group: Development/Languages
@ -37,45 +44,27 @@ Requires: %{name} = %{version}-%{release}
%description tcl %description tcl
This package contains the tcl modules for %{name}. This package contains the tcl modules for %{name}.
%endif
%prep %prep
%setup -q -n sqlite %setup -q
%patch0 -p1 -b .jbj
%{__perl} -pi.orig -e '
s|\$\(exec_prefix\)/lib|\$(libdir)|g;
s|/usr/lib|\$(libdir)|g;
' Makefile* */Makefile* */*/Makefile*
%ifarch x86_64
%{__libtoolize} --force
%{__aclocal}
%{__autoconf}
%endif
CFLAGS="%{optflags} -DNDEBUG=1 -fno-strict-aliasing" \
CXXFLAGS="%{optflags} -DNDEBUG=1 -fno-strict-aliasing" \
TARGET_EXEEXT='.so' \
%configure --enable-utf8 --disable-tcl
perl -pi -e 's/\@VERSION_NUMBER\@/3001002/' Makefile
%build %build
%configure %{!?with_tcl:--disable-tcl}
make %{?_smp_mflags} make %{?_smp_mflags}
%{__make} doc make doc
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%{__make} DESTDIR=${RPM_BUILD_ROOT} install make DESTDIR=${RPM_BUILD_ROOT} install
mv sqlite.1 sqlite3.1 || :
%{__install} -D -m0644 sqlite3.1 %{buildroot}%{_mandir}/man1/sqlite3.1 %{__install} -D -m0644 sqlite3.1 %{buildroot}%{_mandir}/man1/sqlite3.1
%if %{with tcl}
%check %check
# XXX sqlite-3.0.8 on x86: 56 errors out of 14885 tests make test
# XXX sqlite-3.1.2 on x86: 1 errors out of 19710 tests %endif
make test || :
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -100,13 +89,16 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/*.so %{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc
%if 0 %if %{with tcl}
%files tcl %files tcl
%defattr(-, root, root) %defattr(-, root, root)
%{_datadir}/tcl*/sqlite3 %{_datadir}/tcl*/sqlite3
%endif %endif
%changelog %changelog
* Fri Jul 8 2005 Roland McGrath <roland@redhat.com> - 3.2.2-1
- Upgrade to 3.2.2 release.
* Sat Apr 9 2005 Warren Togami <wtogami@redhat.com> - 3.1.2-3 * Sat Apr 9 2005 Warren Togami <wtogami@redhat.com> - 3.1.2-3
- fix buildreqs (#154298) - fix buildreqs (#154298)