[521] | 1 | %define pyexeclib %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)') |
---|
| 2 | %define name pysqlite |
---|
[2691] | 3 | %define major 2.6 |
---|
[5731] | 4 | %define version 2.6.3 |
---|
[8154] | 5 | %define release 2%{?_dist_release} |
---|
[521] | 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} |
---|
[5731] | 12 | Source0: http://pysqlite.googlecode.com/files/%{name}-%{version}.tar.gz |
---|
[521] | 13 | License: redistributable |
---|
| 14 | Group: Development/Libraries |
---|
[5731] | 15 | URL: http://trac.edgewall.org/wiki/PySqlite |
---|
[521] | 16 | |
---|
[5731] | 17 | Requires: python(abi) = %{pyver} |
---|
| 18 | Requires: sqlite3 |
---|
[521] | 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/ |
---|
[5731] | 49 | %{pyexeclib}/pysqlite-%{version}-py%{pyver}.egg-info |
---|
[521] | 50 | %{_docdir}/pysqlite2-doc/ |
---|
| 51 | |
---|
| 52 | %changelog |
---|
[8154] | 53 | * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.3-2 |
---|
| 54 | - rebuild with VineSeed environment |
---|
| 55 | |
---|
[5731] | 56 | * Wed Feb 22 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.3-1 |
---|
| 57 | - new upstream release |
---|
| 58 | - update URL to new location |
---|
| 59 | - add R: python(abi) = %%{pyver} |
---|
| 60 | |
---|
[2691] | 61 | * Mon Feb 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.1-1 |
---|
| 62 | - new upstream release |
---|
| 63 | |
---|
[521] | 64 | * Mon Jul 21 2008 Shu KONNO <owa@bg.wakwak.com> 2.4.1-1vl5 |
---|
| 65 | - rebuilt with python-2.5.2 |
---|
| 66 | - added pyexeclib macro |
---|
| 67 | - applied new versioning policy and spec in utf-8 |
---|
| 68 | |
---|
| 69 | * Wed Feb 6 2008 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 2.4.1-0vl2 |
---|
| 70 | - upstream release |
---|
| 71 | |
---|
| 72 | * Mon Aug 27 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 2.3.5-0vl2 |
---|
| 73 | - initial build for Vine Linux |
---|