]>
Commit | Line | Data |
---|---|---|
b9bee2d9 | 1 | |
e57f897e | 2 | %define module sqlite |
b9bee2d9 | 3 | |
4 | Summary: A DB API v2.0 compatible interface to SQLite | |
1491eeca | 5 | Summary(pl.UTF-8): Interfejs do SQLite kompatybilny z DB API v2.0 |
b9bee2d9 | 6 | Name: python-%{module} |
64ed4843 | 7 | Version: 2.5.4 |
ec7c0f29 | 8 | Release: 1 |
162b76a5 | 9 | License: zlib/libpng |
b344ef05 | 10 | Group: Development/Languages/Python |
ec7c0f29 | 11 | Source0: http://oss.itsystementwicklung.de/download/pysqlite/2.5/%{version}/pysqlite-%{version}.tar.gz |
64ed4843 | 12 | # Source0-md5: d165bdaf753870348018cee07ac1422c |
9ffb9c29 | 13 | URL: http://www.pysqlite.org/ |
b9bee2d9 | 14 | %pyrequires_eq python-modules |
64ed4843 | 15 | BuildRequires: python-devel >= 1:2.5 |
ec7c0f29 | 16 | BuildRequires: sqlite3-devel >= 3.6.11 |
b9bee2d9 | 17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
20 | This is an extension module for the SQLite embedded relational | |
21 | database. It tries to conform to the Python DB-API Spec v2 as far as | |
22 | possible. One problem is that SQLite returns everything as text. This | |
23 | is a result of SQLite's internal representation of data, however it | |
24 | still may be possible to return data in the type specified by the | |
25 | table definitions. | |
26 | ||
0437c1a1 JR |
27 | %description -l pl.UTF-8 |
28 | Ten pakiet zawiera moduł rozszerzenia dla osadzalnej relacyjnej bazy | |
29 | danych SQLite. Próbuje on być w zgodzie ze specyfikacją Python DB-API | |
30 | v2 na tyle, na ile to możliwe. Jednym problemem jest to, że SQLite | |
31 | zwraca wszystko jako tekst. Jest to wynik wewnętrznej reprezentacji | |
32 | danych przez SQLite; mimo to nadal jest możliwe zwracanie danych typu | |
b344ef05 JB |
33 | podanego w definicji tabeli. |
34 | ||
b9bee2d9 | 35 | %prep |
9ffb9c29 | 36 | %setup -q -n pysqlite-%{version} |
b9bee2d9 | 37 | |
38 | %build | |
39 | CFLAGS="%{rpmcflags}" | |
de50f6f9 | 40 | export CFLAGS |
b9bee2d9 | 41 | python setup.py build |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
e2d7090a | 45 | install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_examplesdir}/%{name}-%{version}} |
b9bee2d9 | 46 | |
ed600f9c | 47 | PYTHONPATH=$RPM_BUILD_ROOT%{py_sitedir} \ |
48 | python setup.py install \ | |
55e1ebe6 | 49 | --root=$RPM_BUILD_ROOT --optimize=2 |
b344ef05 | 50 | |
ed600f9c | 51 | rm -rf $RPM_BUILD_ROOT%{py_sitedir}/pysqlite2/{,test/}*.py \ |
52 | $RPM_BUILD_ROOT%{_prefix}/pysqlite2-doc | |
b9bee2d9 | 53 | |
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
ed600f9c | 59 | %doc doc/*.txt |
9ffb9c29 | 60 | %dir %{py_sitedir}/pysqlite2 |
64ed4843 | 61 | %{py_sitedir}/*.egg-info |
9ffb9c29 AM |
62 | %{py_sitedir}/pysqlite2/*.py[co] |
63 | %attr(755,root,root) %{py_sitedir}/pysqlite2/_%{module}.so | |
64 | %dir %{py_sitedir}/pysqlite2/test | |
65 | %{py_sitedir}/pysqlite2/test/*.py[co] |