11395
|
1 |
#
|
|
2 |
# spec file for package sqlite
|
|
3 |
#
|
|
4 |
# Copyright (c) 2007 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
|
8 |
# Owner: hawklu
|
|
9 |
#
|
|
10 |
|
|
11 |
Name: sqlite
|
|
12 |
License: Public Domain
|
|
13 |
Group: System/Libraries
|
|
14 |
Version: 3.5.4
|
|
15 |
Release: 4
|
|
16 |
Distribution: Java Desktop System
|
|
17 |
Vendor: Sun Microsystems, Inc.
|
|
18 |
URL: http://www.sqlite.org
|
|
19 |
Summary: SQLite - a C library that implements an embeddable SQL database engine
|
|
20 |
Source: http://www.sqlite.org/%{name}-%{version}.tar.gz
|
|
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
22 |
|
|
23 |
%description
|
|
24 |
SQLite is a C library that implements an embeddable SQL database engine.
|
|
25 |
Programs that link with the SQLite library can have SQL database access
|
|
26 |
without running a separate RDBMS process. The distribution comes with a
|
|
27 |
standalone command-line access program (sqlite) that can be used to
|
|
28 |
administer an SQLite database and which serves as an example of how to
|
|
29 |
use the SQLite library.
|
|
30 |
|
|
31 |
%package devel
|
|
32 |
Summary: Header files and libraries for developing apps which will use %{name}
|
|
33 |
Group: Development/C
|
|
34 |
Requires: %{name} = %{version}-%{release}
|
|
35 |
|
|
36 |
%description devel
|
|
37 |
The sqlite-devel package contains the header files and libraries needed
|
|
38 |
to develop programs that use the sqlite database library.
|
|
39 |
|
|
40 |
%prep
|
|
41 |
%setup -q -n %{name}-%{version}
|
|
42 |
|
|
43 |
%build
|
|
44 |
%ifos linux
|
|
45 |
if [ -x /usr/bin/getconf ]; then
|
|
46 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
47 |
fi
|
|
48 |
%else
|
|
49 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
50 |
%endif
|
|
51 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
52 |
CPUS=1
|
|
53 |
fi
|
|
54 |
|
|
55 |
./configure --prefix=%{_prefix} \
|
|
56 |
--bindir=%{_bindir} \
|
|
57 |
--mandir=%{_mandir} \
|
|
58 |
--libdir=%{_libdir} \
|
|
59 |
--datadir=%{_datadir} \
|
|
60 |
--includedir=%{_includedir} \
|
|
61 |
--sysconfdir=%{_sysconfdir} \
|
|
62 |
--enable-static=no \
|
|
63 |
--enable-releasemode \
|
|
64 |
--enable-threadsafe \
|
|
65 |
--disable-tcl \
|
|
66 |
--disable-cross-thread-connections \
|
|
67 |
--enable-tempstore \
|
|
68 |
--enable-threads-override-locks \
|
|
69 |
--disable-debug
|
|
70 |
|
|
71 |
make -j $CPUS
|
|
72 |
|
|
73 |
%install
|
|
74 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
|
|
75 |
make -i install DESTDIR=$RPM_BUILD_ROOT
|
|
76 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
|
|
77 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
78 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
|
|
79 |
|
|
80 |
%clean
|
|
81 |
rm -rf $RPM_BUILD_ROOT
|
|
82 |
|
|
83 |
%post
|
|
84 |
/sbin/ldconfig
|
|
85 |
|
|
86 |
%postun
|
|
87 |
/sbin/ldconfig
|
|
88 |
|
|
89 |
%files
|
|
90 |
%defattr(-, root, root)
|
|
91 |
%{_libdir}/*.so*
|
|
92 |
%{_bindir}/*
|
|
93 |
|
|
94 |
%files devel
|
|
95 |
%defattr(-, root, root)
|
|
96 |
%{_libdir}/pkgconfig/sqlite3.pc
|
|
97 |
%{_libdir}/*.a
|
|
98 |
%{_libdir}/*.la
|
|
99 |
%{_includedir}/*
|
|
100 |
|
|
101 |
%changelog
|
|
102 |
* Fri Jan 04 2008 - [email protected]
|
|
103 |
- Port sqlite spec files from SFE to JDS repos
|
|
104 |
* Mon Nov 12 2007 - [email protected]
|
|
105 |
- Bump to 3.5.2.
|
|
106 |
- Remove upstreamed patch thread-lock-test.diff.
|
|
107 |
- Initial version, spilit from SFEsqlite.spec
|