17594
|
1 |
#
|
18066
|
2 |
# Copyright (c) 2010 Sun Microsystems, Inc.
|
17594
|
3 |
# This file and all modifications and additions to the pristine
|
|
4 |
# package are under the same license as the package itself.
|
|
5 |
#
|
21659
|
6 |
%define owner ginnchen
|
17594
|
7 |
# bugdb: bugzilla.freedesktop.org
|
|
8 |
#
|
|
9 |
|
17881
|
10 |
%define OSR 12578:1.0.2
|
21716
|
11 |
%define doc_version 3070600
|
21831
|
12 |
%define tarball_version 3070603
|
17594
|
13 |
|
|
14 |
Name: sqlite
|
17623
|
15 |
License: public domain
|
17594
|
16 |
Group: System/Libraries
|
21831
|
17 |
Version: 3.7.6.3
|
17594
|
18 |
Release: 1
|
|
19 |
Distribution: Java Desktop System
|
17893
|
20 |
Vendor: www.sqlite.org
|
17594
|
21 |
Summary: SQL database engine
|
21448
|
22 |
Source: http://www.sqlite.org/%{name}-autoconf-%{tarball_version}.tar.gz
|
17594
|
23 |
Source1: mapfile-libsqlite3
|
21716
|
24 |
Source2: http://www.sqlite.org/%{name}-doc-%{doc_version}.zip
|
17594
|
25 |
Source3: pkgIndex.tcl
|
18099
|
26 |
# This is specified here since unzip is used in this spec file.
|
|
27 |
BuildRequires: compress/unzip
|
17594
|
28 |
|
21659
|
29 |
# owner:hawklu date:2008-10-10 type:bug bugster:??
|
17594
|
30 |
Patch1: sqlite3-01-using-mapfile.diff
|
|
31 |
|
21659
|
32 |
# owner:ginnchen date:2011-03-29 type:bug d.o.o 15412 bugster:7031954
|
17794
|
33 |
Patch2: sqlite3-02-using-libcurses.diff
|
|
34 |
|
21845
|
35 |
# owner:ginnchen date:2011-06-08
|
|
36 |
Patch3: sqlite3-03-posix_fallocate64.diff
|
|
37 |
|
17594
|
38 |
URL: http://www.sqlite.org
|
|
39 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
40 |
Docdir: %{_defaultdocdir}
|
|
41 |
Autoreqprov: on
|
|
42 |
|
|
43 |
%description
|
|
44 |
SQLite is a software library that implements a self-contained,
|
|
45 |
serverless, zero-configuration, transactional SQL database engine.
|
|
46 |
SQLite is the most widely deployed SQL database engine in the world.
|
|
47 |
|
|
48 |
%package devel
|
|
49 |
Summary: SQL database engine library
|
|
50 |
Group: Development/Libraries
|
|
51 |
Requires: %{name} = %{version}
|
|
52 |
|
|
53 |
%description devel
|
|
54 |
SQLite is a software library that implements a self-contained,
|
|
55 |
serverless, zero-configuration, transactional SQL database engine.
|
|
56 |
SQLite is the most widely deployed SQL database engine in the world.
|
|
57 |
|
|
58 |
%prep
|
21448
|
59 |
%setup -q -n %{name}-autoconf-%{tarball_version}
|
|
60 |
|
17594
|
61 |
%patch1 -p1
|
21659
|
62 |
%patch2 -p1
|
21845
|
63 |
%patch3 -p1
|
17594
|
64 |
|
|
65 |
%build
|
|
66 |
%ifos linux
|
|
67 |
if [ -x /usr/bin/getconf ]; then
|
|
68 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
69 |
fi
|
|
70 |
%else
|
|
71 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
72 |
%endif
|
|
73 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
74 |
CPUS=1
|
|
75 |
fi
|
|
76 |
|
|
77 |
export PATH=`pwd`:$PATH
|
|
78 |
|
|
79 |
cp %{SOURCE1} .
|
|
80 |
|
|
81 |
%if %option_with_debug
|
21719
|
82 |
export CFLAGS="%optflags -D_POSIX_PTHREAD_SEMANTICS -DSQLITE_SECURE_DELETE -DSQLITE_ENABLE_FTS3 -DUSE_PREAD -DHAVE_USLEEP -DHAVE_FDATASYNC -DHAVE_STATVFS -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_ENABLE_STAT2 -I. "
|
17594
|
83 |
%else
|
21719
|
84 |
export CFLAGS="%optflags -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -DSQLITE_SECURE_DELETE -DSQLITE_ENABLE_FTS3 -DUSE_PREAD -DHAVE_USLEEP -DHAVE_FDATASYNC -DHAVE_STATVFS -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_ENABLE_STAT2 -I. "
|
17594
|
85 |
%endif
|
|
86 |
|
22108
|
87 |
export LD=/usr/bin/ld
|
17594
|
88 |
export LDFLAGS="%_ldflags -Bdirect"
|
|
89 |
./configure \
|
|
90 |
--prefix=%{_prefix} \
|
|
91 |
--libdir=%{_libdir} \
|
|
92 |
--bindir=%{_bindir} \
|
22032
|
93 |
--mandir=%{_mandir} \
|
17594
|
94 |
--enable-threadsafe \
|
|
95 |
--enable-cross-thread-connections \
|
|
96 |
--enable-load-extension \
|
|
97 |
--enable-shared \
|
|
98 |
--disable-static \
|
|
99 |
--with-tcl="/usr/lib"
|
|
100 |
|
|
101 |
make -j $CPUS
|
|
102 |
|
|
103 |
|
|
104 |
%install
|
|
105 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
106 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
107 |
|
|
108 |
# install docs
|
|
109 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc
|
|
110 |
cd $RPM_BUILD_ROOT%{_datadir}/doc
|
|
111 |
unzip %{SOURCE2}
|
21716
|
112 |
mv %{name}-doc-%{doc_version} sqlite3
|
17594
|
113 |
|
|
114 |
|
|
115 |
%clean
|
|
116 |
rm -rf $RPM_BUILD_ROOT
|
|
117 |
|
|
118 |
%files
|
|
119 |
%defattr(-,root,root)
|
|
120 |
%{_libdir}/*.so.*
|
|
121 |
|
|
122 |
%files devel
|
|
123 |
%defattr(-,root,root)
|
|
124 |
%doc AUTHORS ChangeLog COPYING NEWS README TODO
|
|
125 |
%{_includedir}/*
|
|
126 |
%{_libdir}/*.so
|
|
127 |
%{_libdir}/pkgconfig/*
|
|
128 |
|
|
129 |
%changelog
|
22032
|
130 |
* Wed Jul 13 2011 - [email protected]
|
|
131 |
- Fix manpage.
|
21845
|
132 |
* Wed Jun 08 2011 - [email protected]
|
|
133 |
- Add sqlite3-03-posix_fallocate64.diff, fix 32bit library building on snv_166.
|
21831
|
134 |
* Tue May 31 2011 - [email protected]
|
|
135 |
- Bump to 3.7.6.3.
|
21719
|
136 |
* Mon Apr 18 2011 - [email protected]
|
|
137 |
- Enable SQLITE_ENABLE_STAT2.
|
21716
|
138 |
* Fri Apr 15 2011 - [email protected]
|
|
139 |
- Bump to 3.7.6.1.
|
21659
|
140 |
* Tue Mar 29 2011 - [email protected]
|
|
141 |
- Update sqlite3-02-using-libcurses.diff to fix CR #7031954.
|
|
142 |
* Fri Mar 18 2011 - [email protected]
|
|
143 |
- Fix bug CR #7026620
|
20210
|
144 |
* Thu Oct 21 2010 - [email protected]
|
|
145 |
- Bump to 3.7.3
|
18099
|
146 |
* Tue Jun 08 2010 - [email protected]
|
|
147 |
- Updated BuildRequires to fit SourceJuicer.
|
18066
|
148 |
* Wed Jun 02 2010 - [email protected]
|
|
149 |
- Bump to 3.6.23.
|
17794
|
150 |
* Mon Apr 06 2010 - [email protected]
|
18066
|
151 |
- Fix bug d.o.o 15412.
|
17623
|
152 |
* Tue Mar 02 2010 - [email protected]
|
18066
|
153 |
- Change license to public domain.
|
17594
|
154 |
* Fri Jan 15 2010 - [email protected]
|
18066
|
155 |
- initial version of the spec file.
|