pysqlite-vl.spec 1.9 KB

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