3 %bcond_with tests # do not perform "make test"
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
8 %define sqlite_ver 3.8.5
10 Summary: Another Python SQLite Wrapper
11 Summary(pl.UTF-8): Another Python SQLite Wrapper - jeszcze jeden pythonowy wrapper dla SQLite
12 Name: python-%{module}
16 Group: Libraries/Python
17 Source0: https://github.com/rogerbinns/apsw/archive/%{version}-r1.tar.gz
18 # Source0-md5: 09eb9f39d7cf9d320ee8e89f9e9ab7ea
19 URL: http://rogerbinns.github.io/apsw/
20 BuildRequires: rpmbuild(macros) >= 1.710
21 BuildRequires: rpm-pythonprov
22 BuildRequires: sqlite3-devel >= %{sqlite_ver}
25 BuildRequires: python-devel
26 BuildRequires: python-distribute
29 BuildRequires: python3-devel
30 BuildRequires: python3-distribute
31 BuildRequires: python3-modules
33 Requires: python-modules
34 Requires: sqlite3 >= %{sqlite_ver}
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 APSW provides an SQLite 3 wrapper that provides the thinnest layer
39 over SQLite 3 possible. Everything you can do from the C API to SQLite
40 3, you can do from Python. Although APSW looks vaguely similar to the
41 DBAPI, it is not compliant with that API and instead works the way
44 %description -l pl.UTF-8
45 APSW udostępnia wrapper SQLite 3 dostarczający najcieńszą jak to tylko
46 możliwe warstwę ponad SQLite 3. Wszystko co można zrobić z poziomu API
47 C SQLite 3 można zrobić także z poziomu Pythona. Chociaż APSQ wygląda
48 dosyć podobnie do DBAPI, nie jest kompatybilne z tym API, natomiast
49 działa tak, jak SQLite 3.
51 %package -n python3-%{module}
54 Group: Libraries/Python
55 Requires: sqlite3 >= %{sqlite_ver}
57 %description -n python3-%{module}
58 APSW provides an SQLite 3 wrapper that provides the thinnest layer
59 over SQLite 3 possible. Everything you can do from the C API to SQLite
60 3, you can do from Python. Although APSW looks vaguely similar to the
61 DBAPI, it is not compliant with that API and instead works the way
64 %description -n python3-%{module} -l pl.UTF-8
65 APSW udostępnia wrapper SQLite 3 dostarczający najcieńszą jak to tylko
66 możliwe warstwę ponad SQLite 3. Wszystko co można zrobić z poziomu API
67 C SQLite 3 można zrobić także z poziomu Pythona. Chociaż APSQ wygląda
68 dosyć podobnie do DBAPI, nie jest kompatybilne z tym API, natomiast
69 działa tak, jak SQLite 3.
72 Summary: %{module} API documentation
73 Summary(pl.UTF-8): Dokumentacja API %{module}
77 API documentation for %{module}.
79 %description apidocs -l pl.UTF-8
80 Dokumentacja API %{module}.
83 %setup -q -n %{module}-%{version}-r1
87 %py_build %{?with_tests:test}
91 %py3_build %{?with_tests:test}
97 rm -rf _build/html/_sources
101 rm -rf $RPM_BUILD_ROOT
114 rm -rf $RPM_BUILD_ROOT
118 %defattr(644,root,root,755)
119 %doc LICENSE README.rst
120 %attr(755,root,root) %{py_sitedir}/*.so
121 %if "%{py_ver}" > "2.4"
122 %{py_sitedir}/%{module}-*.egg-info
127 %files -n python3-%{module}
128 %defattr(644,root,root,755)
129 %doc LICENSE README.rst
130 %{py3_sitedir}/%{module}*.so
131 %{py3_sitedir}/%{module}-%{version}*-py*.egg-info
136 %defattr(644,root,root,755)
137 %doc docs/_build/html/*