3 |
%bcond_with check |
%bcond_with check |
4 |
|
|
5 |
%define realname sqlite |
%define realname sqlite |
6 |
%define realver 3070602 |
%define realver 3070900 |
7 |
%define docver 3070600 |
%define docver 3070900 |
8 |
%define rpmver %(echo %{realver}|sed -e "s/00//g" -e "s/0/./g") |
%define rpmver %(echo %{realver}|sed -e "s/00//g" -e "s/0/./g") |
9 |
|
|
10 |
%define major 0 |
%define major 0 |
12 |
%define develname %mklibname %{name} -d |
%define develname %mklibname %{name} -d |
13 |
%define staticdevelname %mklibname %{name} -d -s |
%define staticdevelname %mklibname %{name} -d -s |
14 |
|
|
15 |
|
%define subrel 1 |
16 |
|
|
17 |
Summary: C library that implements an embeddable SQL database engine |
Summary: C library that implements an embeddable SQL database engine |
18 |
Name: sqlite3 |
Name: sqlite3 |
19 |
Version: %rpmver |
Version: %rpmver |
20 |
Release: %mkrel 3 |
Release: %mkrel 1 |
21 |
License: Public Domain |
License: Public Domain |
22 |
Group: System/Libraries |
Group: System/Libraries |
23 |
URL: http://www.sqlite.org/ |
URL: http://www.sqlite.org/ |
40 |
%if %{with tcl} |
%if %{with tcl} |
41 |
BuildRequires: tcl |
BuildRequires: tcl |
42 |
BuildRequires: tcl-devel |
BuildRequires: tcl-devel |
43 |
%{!?tcl_version: %global tcl_version 8.6} |
%{!?tcl_version: %global tcl_version 8.5.10} |
44 |
%{!?tcl_sitearch: %global tcl_sitearch %{_libdir}/tcl%{tcl_version}} |
%{!?tcl_sitearch: %global tcl_sitearch %{_libdir}/tcl%{tcl_version}} |
45 |
%endif |
%endif |
46 |
|
|
121 |
|
|
122 |
%package -n lemon |
%package -n lemon |
123 |
Summary: A parser generator |
Summary: A parser generator |
124 |
Group: Development/Tools |
Group: Databases |
125 |
|
|
126 |
%description -n lemon |
%description -n lemon |
127 |
Lemon is an LALR(1) parser generator for C or C++. It does the same |
Lemon is an LALR(1) parser generator for C or C++. It does the same |
137 |
%if %{with tcl} |
%if %{with tcl} |
138 |
%package tcl |
%package tcl |
139 |
Summary: Tcl module for the sqlite3 embeddable SQL database engine |
Summary: Tcl module for the sqlite3 embeddable SQL database engine |
140 |
Group: Development/Languages |
Group: Development/Other |
141 |
Requires: %{name}-tools = %{version}-%{release} |
Requires: %{name}-tools = %{version}-%{release} |
142 |
Requires: tcl = %{tcl_version} |
Requires: tcl >= 1:%{tcl_version} |
143 |
|
Obsoletes: tcl-sqlite3 < %{version} |
144 |
|
Provides: tcl-sqlite3 = %{version}-%{release} |
145 |
|
|
146 |
%description tcl |
%description tcl |
147 |
This package contains the tcl modules for %{name}. |
This package contains the tcl modules for %{name}. |
149 |
|
|
150 |
%prep |
%prep |
151 |
%setup -q -a1 -n %{realname}-src-%{realver} |
%setup -q -a1 -n %{realname}-src-%{realver} |
152 |
%patch1 -p1 -b .libdl |
#%patch1 -p1 -b .libdl |
153 |
%patch2 -p1 -b .lemon-system-template |
%patch2 -p1 -b .lemon-system-template |
154 |
%patch3 -p1 -b .wal2-nodirsync |
%patch3 -p1 -b .wal2-nodirsync |
155 |
%patch4 -p1 -b .stupid-openfiles-test |
#%patch4 -p1 -b .stupid-openfiles-test |
156 |
|
|
157 |
# Remove cgi-script erroneously included in sqlite-doc-3070500 |
# Remove cgi-script erroneously included in sqlite-doc-3070500 |
158 |
rm -f %{name}-doc-%{realver}/search |
rm -f %{name}-doc-%{realver}/search |
196 |
|
|
197 |
%if %{with check} |
%if %{with check} |
198 |
%check |
%check |
|
%ifarch s390 s390x ppc ppc64 %{sparc} |
|
|
make test || : |
|
|
%else |
|
199 |
make test |
make test |
200 |
%endif |
%endif |
|
%endif |
|
201 |
|
|
202 |
%clean |
%clean |
203 |
rm -rf %{buildroot} |
rm -rf %{buildroot} |