pysqlite-vl.spec 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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.4
  4. %define version 2.4.1
  5. %define release 1%{?_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://initd.org/pub/software/pysqlite/releases/%{major}/%{version}/%{name}-%{version}.tar.gz
  12. License: redistributable
  13. Group: Development/Libraries
  14. URL: http://initd.org/tracker/pysqlite
  15. Requires: python, sqlite3
  16. BuildRequires: python-devel, sqlite3-devel
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. %description
  21. pysqlite is a DB-API 2.0-compliant database interface for SQLite.
  22. %description -l ja
  23. pysqlite は DB-API 2.0 に準拠した SQLite 用の Python バインディングです。
  24. %prep
  25. %setup -q
  26. %build
  27. %{__python} setup.py build
  28. %install
  29. rm -rf $RPM_BUILD_ROOT
  30. %{__python} setup.py install --prefix=${RPM_BUILD_ROOT}%{_prefix} --install-data=${RPM_BUILD_ROOT}%{_docdir}
  31. %clean
  32. rm -rf $RPM_BUILD_ROOT
  33. %files
  34. %defattr(-,root,root)
  35. %doc LICENSE doc
  36. %{pyexeclib}/pysqlite2/
  37. %{_docdir}/pysqlite2-doc/
  38. %changelog
  39. * Mon Jul 21 2008 Shu KONNO <owa@bg.wakwak.com> 2.4.1-1vl5
  40. - rebuilt with python-2.5.2
  41. - added pyexeclib macro
  42. - applied new versioning policy and spec in utf-8
  43. * Wed Feb 6 2008 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 2.4.1-0vl2
  44. - upstream release
  45. * Mon Aug 27 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 2.3.5-0vl2
  46. - initial build for Vine Linux