1 | %define pyexeclib %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)') |
---|
2 | %define name pysqlite |
---|
3 | %define major 2.6 |
---|
4 | %define version 2.6.3 |
---|
5 | %define release 1%{?_dist_release} |
---|
6 | |
---|
7 | Summary: Python DB-API 2.0 interface for SQLite |
---|
8 | Summary(ja): SQLite の Python バインディング |
---|
9 | Name: %{name} |
---|
10 | Version: %{version} |
---|
11 | Release: %{release} |
---|
12 | Source0: http://pysqlite.googlecode.com/files/%{name}-%{version}.tar.gz |
---|
13 | License: redistributable |
---|
14 | Group: Development/Libraries |
---|
15 | URL: http://trac.edgewall.org/wiki/PySqlite |
---|
16 | |
---|
17 | Requires: python(abi) = %{pyver} |
---|
18 | Requires: sqlite3 |
---|
19 | BuildRequires: python-devel, sqlite3-devel |
---|
20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
21 | |
---|
22 | Vendor: Project Vine |
---|
23 | Distribution: Vine Linux |
---|
24 | |
---|
25 | %description |
---|
26 | pysqlite is a DB-API 2.0-compliant database interface for SQLite. |
---|
27 | |
---|
28 | %description -l ja |
---|
29 | pysqlite は DB-API 2.0 に準拠した SQLite 用の Python バインディングです。 |
---|
30 | |
---|
31 | %prep |
---|
32 | %setup -q |
---|
33 | |
---|
34 | |
---|
35 | %build |
---|
36 | %{__python} setup.py build |
---|
37 | |
---|
38 | %install |
---|
39 | rm -rf $RPM_BUILD_ROOT |
---|
40 | %{__python} setup.py install --prefix=${RPM_BUILD_ROOT}%{_prefix} --install-data=${RPM_BUILD_ROOT}%{_docdir} |
---|
41 | |
---|
42 | %clean |
---|
43 | rm -rf $RPM_BUILD_ROOT |
---|
44 | |
---|
45 | %files |
---|
46 | %defattr(-,root,root) |
---|
47 | %doc LICENSE doc |
---|
48 | %{pyexeclib}/pysqlite2/ |
---|
49 | %{pyexeclib}/pysqlite-%{version}-py%{pyver}.egg-info |
---|
50 | %{_docdir}/pysqlite2-doc/ |
---|
51 | |
---|
52 | %changelog |
---|
53 | * Wed Feb 22 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.3-1 |
---|
54 | - new upstream release |
---|
55 | - update URL to new location |
---|
56 | - add R: python(abi) = %%{pyver} |
---|
57 | |
---|
58 | * Mon Feb 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.1-1 |
---|
59 | - new upstream release |
---|
60 | |
---|
61 | * Mon Jul 21 2008 Shu KONNO <owa@bg.wakwak.com> 2.4.1-1vl5 |
---|
62 | - rebuilt with python-2.5.2 |
---|
63 | - added pyexeclib macro |
---|
64 | - applied new versioning policy and spec in utf-8 |
---|
65 | |
---|
66 | * Wed Feb 6 2008 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 2.4.1-0vl2 |
---|
67 | - upstream release |
---|
68 | |
---|
69 | * Mon Aug 27 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 2.3.5-0vl2 |
---|
70 | - initial build for Vine Linux |
---|