%define pyexeclib %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)') %define name pysqlite %define major 2.6 %define version 2.6.3 %define release 2%{?_dist_release} Summary: Python DB-API 2.0 interface for SQLite Summary(ja): SQLite の Python バインディング Name: %{name} Version: %{version} Release: %{release} Source0: http://pysqlite.googlecode.com/files/%{name}-%{version}.tar.gz License: redistributable Group: Development/Libraries URL: http://trac.edgewall.org/wiki/PySqlite Requires: python(abi) = %{pyver} Requires: sqlite3 BuildRequires: python-devel, sqlite3-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root Vendor: Project Vine Distribution: Vine Linux %description pysqlite is a DB-API 2.0-compliant database interface for SQLite. %description -l ja pysqlite は DB-API 2.0 に準拠した SQLite 用の Python バインディングです。 %prep %setup -q %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install --prefix=${RPM_BUILD_ROOT}%{_prefix} --install-data=${RPM_BUILD_ROOT}%{_docdir} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc LICENSE doc %{pyexeclib}/pysqlite2/ %{pyexeclib}/pysqlite-%{version}-py%{pyver}.egg-info %{_docdir}/pysqlite2-doc/ %changelog * Sun Jan 12 2014 Yoji TOYODA 2.6.3-2 - rebuild with VineSeed environment * Wed Feb 22 2012 Daisuke SUZUKI 2.6.3-1 - new upstream release - update URL to new location - add R: python(abi) = %%{pyver} * Mon Feb 14 2011 Yoji TOYODA 2.6.1-1 - new upstream release * Mon Jul 21 2008 Shu KONNO 2.4.1-1vl5 - rebuilt with python-2.5.2 - added pyexeclib macro - applied new versioning policy and spec in utf-8 * Wed Feb 6 2008 KANEKO Seiji 2.4.1-0vl2 - upstream release * Mon Aug 27 2007 KANEKO Seiji 2.3.5-0vl2 - initial build for Vine Linux