2 # - fix lib64 in tcl module
5 %bcond_without tests # don't run tests
7 Summary: SQLite library
8 Summary(pl): Biblioteka SQLite
14 # Source0Download: http://sqlite.org/download.html
15 Source0: http://sqlite.org/sqlite-%{version}.tar.gz
16 # Source0-md5: f0bf0df075231ff037842b47e6bf0f93
17 URL: http://sqlite.org/
18 BuildRequires: autoconf
19 BuildRequires: automake
20 BuildRequires: libtool
21 BuildRequires: readline-devel
22 BuildRequires: tcl-devel
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %ifarch alpha %{x8664}
29 %define _ulibdir /usr/lib
32 SQLite is a C library that implements an SQL database engine. A large
33 subset of SQL92 is supported. A complete database is stored in a
34 single disk file. The API is designed for convenience and ease of use.
35 Applications that link against SQLite can enjoy the power and
36 flexiblity of an SQL database without the administrative hassles of
37 supporting a separate database server. Because it omits the
38 client-server interaction overhead and writes directly to disk, SQLite
39 is also faster than the big database servers for most operations. In
40 addition to the C library, the SQLite distribution includes a
41 command-line tool for interacting with SQLite databases and SQLite
45 SQLite jest bibliotek± jêzyka C, która implementuje silnik baz danych
46 SQL (obs³ugiwana jest wiêkszo¶æ standardu SQL92). Ca³a baza danych
47 przechowywana jest w jednym pliku. Aplikacje wykorzystuj±ce tê
48 bibliotekê charakteryzuj± siê si³± i elastyczno¶ci± SQLowych baz
49 danych bez konieczno¶ci utrzymywania osobnego serwera baz danych.
50 Poniewa¿ pomijana jest komunikacja klient-serwer i dane s± zapisywane
51 bezpo¶rednio na dysku, SQLite jest szybsza od du¿ych serwerów
52 bazodanowych przy wiêkszo¶ci operacji na bazie danych. Dodatkowo
53 oprócz biblioteki jêzyka C, dostarczany jest program do zarz±dzania
57 Summary: Header files for SQLite development
58 Summary(pl): Pliki nag³ówkowe SQLite
59 Group: Development/Libraries
60 Requires: %{name} = %{version}-%{release}
63 SQLite is a C library that implements an SQL database engine. A large
64 subset of SQL92 is supported. A complete database is stored in a
65 single disk file. The API is designed for convenience and ease of use.
66 Applications that link against SQLite can enjoy the power and
67 flexiblity of an SQL database without the administrative hassles of
68 supporting a separate database server. Because it omits the
69 client-server interaction overhead and writes directly to disk, SQLite
70 is also faster than the big database servers for most operations. In
71 addition to the C library, the SQLite distribution includes a
72 command-line tool for interacting with SQLite databases and SQLite
75 This package contains the header files needed to develop programs that
78 %description devel -l pl
79 SQLite jest bibliotek± jêzyka C, która implementuje silnik baz danych
80 SQL (obs³ugiwana jest wiêkszo¶æ standardu SQL92). Ca³a baza danych
81 przechowywana jest w jednym pliku. Aplikacje wykorzystuj±ce tê
82 bibliotekê charakteryzuj± siê si³± i elastyczno¶ci± SQLowych baz
83 danych bez konieczno¶ci utrzymywania osobnego serwera baz danych.
84 Poniewa¿ pomijana jest komunikacja klient-serwer i dane s± zapisywane
85 bezpo¶rednio na dysku, SQLite jest szybsza od du¿ych serwerów
86 bazodanowych przy wiêkszo¶ci operacji na bazie danych. Dodatkowo
87 oprócz biblioteki jêzyka C, dostarczany jest program do zarz±dzania
90 Pakiet zawiera pliki nagówkowe niezbedne do kompilowania programów
91 u¿ywaj±cych biblioteki SQLite.
94 Summary: Static libraries for SQLite development
95 Summary(pl): Statyczne biblioteki SQLite
96 Group: Development/Libraries
97 Requires: %{name}-devel = %{version}-%{release}
100 SQLite is a C library that implements an SQL database engine. A large
101 subset of SQL92 is supported. A complete database is stored in a
102 single disk file. The API is designed for convenience and ease of use.
103 Applications that link against SQLite can enjoy the power and
104 flexiblity of an SQL database without the administrative hassles of
105 supporting a separate database server. Because it omits the
106 client-server interaction overhead and writes directly to disk, SQLite
107 is also faster than the big database servers for most operations. In
108 addition to the C library, the SQLite distribution includes a
109 command-line tool for interacting with SQLite databases and SQLite
112 This package contains the static SQLite libraries.
114 %description static -l pl
115 SQLite jest bibliotek± jêzyka C, która implementuje silnik baz danych
116 SQL (obs³ugiwana jest wiêkszo¶æ standardu SQL92). Ca³a baza danych
117 przechowywana jest w jednym pliku. Aplikacje wykorzystuj±ce tê
118 bibliotekê charakteryzuj± siê si³± i elastyczno¶ci± SQLowych baz
119 danych bez konieczno¶ci utrzymywania osobnego serwera baz danych.
120 Poniewa¿ pomijana jest komunikacja klient-serwer i dane s± zapisywane
121 bezpo¶rednio na dysku, SQLite jest szybsza od du¿ych serwerów
122 bazodanowych przy wiêkszo¶ci operacji na bazie danych. Dodatkowo
123 oprócz biblioteki jêzyka C, dostarczany jest program do zarz±dzania
126 Pakiet zawiera statyczne biblioteki SQLite.
128 %package -n tcl-%{name}
129 Summary: sqlite3 tcl extension
130 Summary(pl): Rozszerzenie sqlite3 dla Tcl
131 Group: Development/Languages/Tcl
133 %description -n tcl-%{name}
134 sqlite3 tcl extension.
136 %description -l pl -n tcl-%{name}
137 Rozszerzenie sqlite3 dla Tcl.
140 %setup -q -n sqlite-%{version}
141 sed -i 's/mkdir doc/#mkdir doc/' Makefile*
145 cp -f /usr/share/automake/config.sub .
149 --with-tcl=%{_ulibdir} \
154 %{?with_tests:LC_ALL=C %{__make} test}
157 rm -rf $RPM_BUILD_ROOT
158 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir},%{_mandir}/man1}
161 DESTDIR=$RPM_BUILD_ROOT
163 install sqlite3.1 $RPM_BUILD_ROOT%{_mandir}/man1
166 rm -rf $RPM_BUILD_ROOT
168 %post -p /sbin/ldconfig
169 %postun -p /sbin/ldconfig
172 %defattr(644,root,root,755)
174 %attr(755,root,root) %{_bindir}/sqlite3
175 %attr(755,root,root) %{_libdir}/lib*.so.*.*
176 %{_mandir}/man1/sqlite3.1*
179 %defattr(644,root,root,755)
181 %attr(755,root,root) %{_libdir}/lib*.so
183 %{_includedir}/sqlite3.h
184 %{_pkgconfigdir}/*.pc
187 %defattr(644,root,root,755)
190 %files -n tcl-%{name}
191 %defattr(644,root,root,755)
192 %dir %{_ulibdir}/tcl*/sqlite3
193 %attr(755,root,root) %{_ulibdir}/tcl*/sqlite3/*.so
194 %{_ulibdir}/tcl*/sqlite3/*.tcl