python-PyGreSQL-vl.spec 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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: 4%{?_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. * Tue Apr 12 2010 Shu KONNO <owa@bg.wakwak.com> 4.0-4
  42. - rebuilt with postgresql-9.0.3
  43. * Wed Feb 17 2010 Shu KONNO <owa@bg.wakwak.com> 4.0-3
  44. - rebuilt with postgresql-8.4.1
  45. * Wed Jul 08 2009 Shu KONNO <owa@bg.wakwak.com> 4.0-2
  46. - rebuilt with postgresql-8.4.0
  47. * Mon May 04 2009 Shu KONNO <owa@bg.wakwak.com> 4.0-1vl5
  48. - updated to 4.0
  49. * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> 3.8.1-2vl5
  50. - rebuilt with python-2.5.2
  51. * Sat Jul 05 2008 Shu KONNO <owa@bg.wakwak.com> 3.8.1-1vl5
  52. - applied new versioning policy, and spec in utf-8
  53. - rebuilt with postgresql-8.3.3
  54. * Sun Jan 27 2008 Shu KONNO <owa@bg.wakwak.com> 3.8.1-0vl5
  55. - rebuilt
  56. * Tue Jan 08 2008 Shu KONNO <owa@bg.wakwak.com> 3.8.1-0vl4
  57. - rebuilt with postgresql-8.2.6
  58. * Sat Dec 01 2007 Shu KONNO <owa@bg.wakwak.com> 3.8.1-0vl3
  59. - changed source url
  60. * Wed Oct 24 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.8.1-0vl2
  61. - rebuilt with postgresql 8.2.5
  62. * Thu Jun 02 2005 Shu KONNO <owa@bg.wakwak.com> 3.8.1-0vl1
  63. - changed url
  64. - updated PyGreSQL to 3.8.1
  65. - rebuilt for x86_64 architecture support
  66. * Thu Jun 02 2005 Shu KONNO <owa@bg.wakwak.com> 3.6.2-0vl3
  67. - dropped "Provides: postgresql-python"
  68. - added Distribution and Vendor lines
  69. * Sun Apr 03 2005 Shu KONNO <owa@bg.wakwak.com> 3.6.2-0vl2
  70. - rebuilt with python 2.4.1
  71. * Sun Mar 20 2005 Shu KONNO <owa@bg.wakwak.com> 3.6.2-0vl1
  72. - created new