]>
Commit | Line | Data |
---|---|---|
c743401f AM |
1 | # TODO: |
2 | # - fix lib64 in tcl module | |
7c673bd5 JB |
3 | # - date test fail on tcl8.5 because of missing tcl library initialization |
4 | # (and thus unavailable clock command) | |
17b8c9f1 | 5 | # |
6 | # Conditional build: | |
7 | %bcond_without tests # don't run tests | |
1a6aae8d | 8 | %bcond_without tcl # disable tcl extension |
e16bc4b1 | 9 | %bcond_without doc # disable documentation building |
17b8c9f1 | 10 | # |
11 | Summary: SQLite library | |
e882a99f | 12 | Summary(pl.UTF-8): Biblioteka SQLite |
22ef5ab8 | 13 | Name: sqlite3 |
10c96aa0 | 14 | Version: 3.4.1 |
114e3074 | 15 | Release: 1 |
17b8c9f1 | 16 | License: LGPL |
17 | Group: Libraries | |
18 | # Source0Download: http://sqlite.org/download.html | |
e56bde73 | 19 | Source0: http://sqlite.org/sqlite-%{version}.tar.gz |
10c96aa0 | 20 | # Source0-md5: 0f06955b18da295fecb62d4bf9ded3c6 |
a3d8a32d | 21 | Patch0: %{name}-sign-function.patch |
1cd2f537 | 22 | Patch1: %{name}-pkgconfig.patch |
17b8c9f1 | 23 | URL: http://sqlite.org/ |
24 | BuildRequires: autoconf | |
25 | BuildRequires: automake | |
26 | BuildRequires: libtool | |
27 | BuildRequires: readline-devel | |
1a6aae8d | 28 | %{?with_tcl:BuildRequires: tcl-devel} |
17b8c9f1 | 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
10c96aa0 | 31 | %ifarch alpha sparc %{x8664} |
0a0f5bcf AM |
32 | %undefine with_tests |
33 | %endif | |
34 | ||
c4d7d942 MŁ |
35 | # disabling tcl currently breaks making test target, |
36 | # some hack in Makefile needs to be done | |
b197e0ac | 37 | %if !%{with tcl} |
c4d7d942 MŁ |
38 | %undefine with_tests |
39 | %endif | |
40 | ||
c743401f AM |
41 | %define _ulibdir /usr/lib |
42 | ||
17b8c9f1 | 43 | %description |
44 | SQLite is a C library that implements an SQL database engine. A large | |
45 | subset of SQL92 is supported. A complete database is stored in a | |
46 | single disk file. The API is designed for convenience and ease of use. | |
47 | Applications that link against SQLite can enjoy the power and | |
48 | flexiblity of an SQL database without the administrative hassles of | |
49 | supporting a separate database server. Because it omits the | |
50 | client-server interaction overhead and writes directly to disk, SQLite | |
51 | is also faster than the big database servers for most operations. In | |
52 | addition to the C library, the SQLite distribution includes a | |
53 | command-line tool for interacting with SQLite databases and SQLite | |
54 | bindings for Tcl/Tk. | |
55 | ||
b7c0e1f2 JR |
56 | %description -l pl.UTF-8 |
57 | SQLite jest biblioteką języka C, która implementuje silnik baz danych | |
58 | SQL (obsługiwana jest większość standardu SQL92). Cała baza danych | |
59 | przechowywana jest w jednym pliku. Aplikacje wykorzystujące tę | |
60 | bibliotekę charakteryzują się siłą i elastycznością SQLowych baz | |
61 | danych bez konieczności utrzymywania osobnego serwera baz danych. | |
62 | Ponieważ pomijana jest komunikacja klient-serwer i dane są zapisywane | |
63 | bezpośrednio na dysku, SQLite jest szybsza od dużych serwerów | |
64 | bazodanowych przy większości operacji na bazie danych. Dodatkowo | |
65 | oprócz biblioteki języka C, dostarczany jest program do zarządzania | |
17b8c9f1 | 66 | bazami danych. |
67 | ||
68 | %package devel | |
69 | Summary: Header files for SQLite development | |
e882a99f | 70 | Summary(pl.UTF-8): Pliki nagłówkowe SQLite |
17b8c9f1 | 71 | Group: Development/Libraries |
72 | Requires: %{name} = %{version}-%{release} | |
73 | ||
74 | %description devel | |
75 | SQLite is a C library that implements an SQL database engine. A large | |
76 | subset of SQL92 is supported. A complete database is stored in a | |
77 | single disk file. The API is designed for convenience and ease of use. | |
78 | Applications that link against SQLite can enjoy the power and | |
79 | flexiblity of an SQL database without the administrative hassles of | |
80 | supporting a separate database server. Because it omits the | |
81 | client-server interaction overhead and writes directly to disk, SQLite | |
82 | is also faster than the big database servers for most operations. In | |
83 | addition to the C library, the SQLite distribution includes a | |
84 | command-line tool for interacting with SQLite databases and SQLite | |
85 | bindings for Tcl/Tk. | |
86 | ||
87 | This package contains the header files needed to develop programs that | |
88 | use these SQLite. | |
89 | ||
b7c0e1f2 JR |
90 | %description devel -l pl.UTF-8 |
91 | SQLite jest biblioteką języka C, która implementuje silnik baz danych | |
92 | SQL (obsługiwana jest większość standardu SQL92). Cała baza danych | |
93 | przechowywana jest w jednym pliku. Aplikacje wykorzystujące tę | |
94 | bibliotekę charakteryzują się siłą i elastycznością SQLowych baz | |
95 | danych bez konieczności utrzymywania osobnego serwera baz danych. | |
96 | Ponieważ pomijana jest komunikacja klient-serwer i dane są zapisywane | |
97 | bezpośrednio na dysku, SQLite jest szybsza od dużych serwerów | |
98 | bazodanowych przy większości operacji na bazie danych. Dodatkowo | |
99 | oprócz biblioteki języka C, dostarczany jest program do zarządzania | |
17b8c9f1 | 100 | bazami danych. |
101 | ||
b7c0e1f2 JR |
102 | Pakiet zawiera pliki nagówkowe niezbedne do kompilowania programów |
103 | używających biblioteki SQLite. | |
17b8c9f1 | 104 | |
105 | %package static | |
106 | Summary: Static libraries for SQLite development | |
e882a99f | 107 | Summary(pl.UTF-8): Statyczne biblioteki SQLite |
17b8c9f1 | 108 | Group: Development/Libraries |
109 | Requires: %{name}-devel = %{version}-%{release} | |
110 | ||
111 | %description static | |
112 | SQLite is a C library that implements an SQL database engine. A large | |
113 | subset of SQL92 is supported. A complete database is stored in a | |
114 | single disk file. The API is designed for convenience and ease of use. | |
115 | Applications that link against SQLite can enjoy the power and | |
116 | flexiblity of an SQL database without the administrative hassles of | |
117 | supporting a separate database server. Because it omits the | |
118 | client-server interaction overhead and writes directly to disk, SQLite | |
119 | is also faster than the big database servers for most operations. In | |
120 | addition to the C library, the SQLite distribution includes a | |
121 | command-line tool for interacting with SQLite databases and SQLite | |
122 | bindings for Tcl/Tk. | |
123 | ||
124 | This package contains the static SQLite libraries. | |
125 | ||
b7c0e1f2 JR |
126 | %description static -l pl.UTF-8 |
127 | SQLite jest biblioteką języka C, która implementuje silnik baz danych | |
128 | SQL (obsługiwana jest większość standardu SQL92). Cała baza danych | |
129 | przechowywana jest w jednym pliku. Aplikacje wykorzystujące tę | |
130 | bibliotekę charakteryzują się siłą i elastycznością SQLowych baz | |
131 | danych bez konieczności utrzymywania osobnego serwera baz danych. | |
132 | Ponieważ pomijana jest komunikacja klient-serwer i dane są zapisywane | |
133 | bezpośrednio na dysku, SQLite jest szybsza od dużych serwerów | |
134 | bazodanowych przy większości operacji na bazie danych. Dodatkowo | |
135 | oprócz biblioteki języka C, dostarczany jest program do zarządzania | |
17b8c9f1 | 136 | bazami danych. |
137 | ||
138 | Pakiet zawiera statyczne biblioteki SQLite. | |
139 | ||
c743401f | 140 | %package -n tcl-%{name} |
8e66772b | 141 | Summary: sqlite3 tcl extension |
e882a99f | 142 | Summary(pl.UTF-8): Rozszerzenie sqlite3 dla Tcl |
8e66772b | 143 | Group: Development/Languages/Tcl |
c743401f AM |
144 | |
145 | %description -n tcl-%{name} | |
146 | sqlite3 tcl extension. | |
147 | ||
b7c0e1f2 | 148 | %description -n tcl-%{name} -l pl.UTF-8 |
c743401f AM |
149 | Rozszerzenie sqlite3 dla Tcl. |
150 | ||
17b8c9f1 | 151 | %prep |
c743401f | 152 | %setup -q -n sqlite-%{version} |
30682d5a | 153 | %patch0 -p1 |
1cd2f537 | 154 | %patch1 -p1 |
155 | ||
17b8c9f1 | 156 | sed -i 's/mkdir doc/#mkdir doc/' Makefile* |
157 | ||
158 | %build | |
159 | %{__libtoolize} | |
160 | cp -f /usr/share/automake/config.sub . | |
161 | %{__aclocal} | |
162 | %{__autoconf} | |
163 | %configure \ | |
1a6aae8d | 164 | %{?with_tcl:--with-tcl=%{_ulibdir}} \ |
165 | %{!?with_tcl:--disable-tcl} \ | |
17b8c9f1 | 166 | --enable-threadsafe |
167 | %{__make} | |
1a6aae8d | 168 | |
e16bc4b1 | 169 | %if %{with doc} |
17b8c9f1 | 170 | %{__make} doc |
1a6aae8d | 171 | %endif |
17b8c9f1 | 172 | |
3e5df83c | 173 | %{?with_tests:LC_ALL=C %{__make} test} |
17b8c9f1 | 174 | |
175 | %install | |
176 | rm -rf $RPM_BUILD_ROOT | |
177 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir},%{_mandir}/man1} | |
178 | ||
179 | %{__make} install \ | |
180 | DESTDIR=$RPM_BUILD_ROOT | |
181 | ||
ec30f86a AM |
182 | sed -i -e "s#$RPM_BUILD_ROOT##g" $RPM_BUILD_ROOT%{_ulibdir}/tcl*/sqlite3/*.tcl |
183 | ||
c743401f | 184 | install sqlite3.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
17b8c9f1 | 185 | |
186 | %clean | |
187 | rm -rf $RPM_BUILD_ROOT | |
188 | ||
189 | %post -p /sbin/ldconfig | |
190 | %postun -p /sbin/ldconfig | |
191 | ||
192 | %files | |
193 | %defattr(644,root,root,755) | |
194 | %doc README | |
195 | %attr(755,root,root) %{_bindir}/sqlite3 | |
196 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
c743401f | 197 | %{_mandir}/man1/sqlite3.1* |
17b8c9f1 | 198 | |
199 | %files devel | |
200 | %defattr(644,root,root,755) | |
201 | %doc doc/* | |
202 | %attr(755,root,root) %{_libdir}/lib*.so | |
203 | %{_libdir}/lib*.la | |
204 | %{_includedir}/sqlite3.h | |
ef88c71c | 205 | %{_includedir}/sqlite3ext.h |
17b8c9f1 | 206 | %{_pkgconfigdir}/*.pc |
207 | ||
208 | %files static | |
209 | %defattr(644,root,root,755) | |
210 | %{_libdir}/lib*.a | |
c743401f | 211 | |
1a6aae8d | 212 | %if %{with tcl} |
c743401f AM |
213 | %files -n tcl-%{name} |
214 | %defattr(644,root,root,755) | |
215 | %dir %{_ulibdir}/tcl*/sqlite3 | |
216 | %attr(755,root,root) %{_ulibdir}/tcl*/sqlite3/*.so | |
217 | %{_ulibdir}/tcl*/sqlite3/*.tcl | |
1a6aae8d | 218 | %endif |