python-PyGreSQL-vl.spec 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. %{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
  2. %define pygresql PyGreSQL
  3. %define install_dir %{_libdir}/python%{pyver}/site-packages/%{pygresql}
  4. Summary: A Python interface for PostgreSQL database.
  5. Summary(ja): PostgreSQL DB にアクセスするための Python モジュール
  6. Name: python-%{pygresql}
  7. Version: 4.0
  8. Release: 3%{?_dist_release}
  9. License: BSD
  10. Group: Applications/Databases
  11. URL: http://www.druid.net/pygresql/
  12. Source: ftp://ftp.pygresql.org/pub/distrib/PyGreSQL-%{version}.tgz
  13. Buildroot: %{_tmppath}/%{pygresql}-%{version}-root
  14. BuildPrereq: python python-devel postgresql-devel
  15. Requires: postgresql
  16. Obsoletes: postgresql-python
  17. Requires: python >= %{pyver}
  18. Requires: mxDateTime
  19. %description
  20. PyGreSQL package includes a module for developers to use when writing
  21. Python code for accessing a PostgreSQL database.
  22. %prep
  23. %setup -q -n %{pygresql}-%{version}
  24. %build
  25. python setup.py build --build-lib lib
  26. %install
  27. rm -rf $RPM_BUILD_ROOT
  28. install -d $RPM_BUILD_ROOT%{install_dir}
  29. install -m 755 lib/_pg.so $RPM_BUILD_ROOT%{install_dir}
  30. install -m 644 lib/*.py $RPM_BUILD_ROOT%{install_dir}
  31. touch $RPM_BUILD_ROOT%{install_dir}/__init__.py
  32. %clean
  33. rm -rf $RPM_BUILD_ROOT
  34. %files
  35. %defattr(-,root,root)
  36. %doc docs
  37. %dir %{_libdir}/python?.?/site-packages/%{pygresql}
  38. %{_libdir}/python?.?/site-packages/%{pygresql}/_pg.so
  39. %{_libdir}/python?.?/site-packages/%{pygresql}/*.py
  40. %changelog
  41. * Wed Feb 17 2010 Shu KONNO <owa@bg.wakwak.com> 4.0-3
  42. - rebuilt with postgresql-8.4.1
  43. * Wed Jul 08 2009 Shu KONNO <owa@bg.wakwak.com> 4.0-2
  44. - rebuilt with postgresql-8.4.0
  45. * Mon May 04 2009 Shu KONNO <owa@bg.wakwak.com> 4.0-1vl5
  46. - updated to 4.0
  47. * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> 3.8.1-2vl5
  48. - rebuilt with python-2.5.2
  49. * Sat Jul 05 2008 Shu KONNO <owa@bg.wakwak.com> 3.8.1-1vl5
  50. - applied new versioning policy, and spec in utf-8
  51. - rebuilt with postgresql-8.3.3
  52. * Sun Jan 27 2008 Shu KONNO <owa@bg.wakwak.com> 3.8.1-0vl5
  53. - rebuilt
  54. * Tue Jan 08 2008 Shu KONNO <owa@bg.wakwak.com> 3.8.1-0vl4
  55. - rebuilt with postgresql-8.2.6
  56. * Sat Dec 01 2007 Shu KONNO <owa@bg.wakwak.com> 3.8.1-0vl3
  57. - changed source url
  58. * Wed Oct 24 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.8.1-0vl2
  59. - rebuilt with postgresql 8.2.5
  60. * Thu Jun 02 2005 Shu KONNO <owa@bg.wakwak.com> 3.8.1-0vl1
  61. - changed url
  62. - updated PyGreSQL to 3.8.1
  63. - rebuilt for x86_64 architecture support
  64. * Thu Jun 02 2005 Shu KONNO <owa@bg.wakwak.com> 3.6.2-0vl3
  65. - dropped "Provides: postgresql-python"
  66. - added Distribution and Vendor lines
  67. * Sun Apr 03 2005 Shu KONNO <owa@bg.wakwak.com> 3.6.2-0vl2
  68. - rebuilt with python 2.4.1
  69. * Sun Mar 20 2005 Shu KONNO <owa@bg.wakwak.com> 3.6.2-0vl1
  70. - created new