python-PyGreSQL-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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: 5%{?_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. BuildRequires: python python-devel postgresql-devel
  15. Requires: postgresql
  16. Obsoletes: postgresql-python
  17. Requires: python >= %{pyver}
  18. Requires: mxDateTime
  19. Vendor: Project Vine
  20. Distribution: Vine Linux
  21. %description
  22. PyGreSQL package includes a module for developers to use when writing
  23. Python code for accessing a PostgreSQL database.
  24. %prep
  25. %setup -q -n %{pygresql}-%{version}
  26. %build
  27. python setup.py build --build-lib lib
  28. %install
  29. rm -rf $RPM_BUILD_ROOT
  30. install -d $RPM_BUILD_ROOT%{install_dir}
  31. install -m 755 lib/_pg.so $RPM_BUILD_ROOT%{install_dir}
  32. install -m 644 lib/*.py $RPM_BUILD_ROOT%{install_dir}
  33. touch $RPM_BUILD_ROOT%{install_dir}/__init__.py
  34. %clean
  35. rm -rf $RPM_BUILD_ROOT
  36. %files
  37. %defattr(-,root,root)
  38. %doc docs
  39. %dir %{_libdir}/python?.?/site-packages/%{pygresql}
  40. %{_libdir}/python?.?/site-packages/%{pygresql}/_pg.so
  41. %{_libdir}/python?.?/site-packages/%{pygresql}/*.py
  42. %changelog
  43. * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.0-5
  44. - rebuild with VineSeed environment
  45. * Mon Apr 12 2010 Shu KONNO <owa@bg.wakwak.com> 4.0-4
  46. - rebuilt with postgresql-9.0.3
  47. * Wed Feb 17 2010 Shu KONNO <owa@bg.wakwak.com> 4.0-3
  48. - rebuilt with postgresql-8.4.1
  49. * Wed Jul 08 2009 Shu KONNO <owa@bg.wakwak.com> 4.0-2
  50. - rebuilt with postgresql-8.4.0
  51. * Mon May 04 2009 Shu KONNO <owa@bg.wakwak.com> 4.0-1vl5
  52. - updated to 4.0
  53. * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> 3.8.1-2vl5
  54. - rebuilt with python-2.5.2
  55. * Sat Jul 05 2008 Shu KONNO <owa@bg.wakwak.com> 3.8.1-1vl5
  56. - applied new versioning policy, and spec in utf-8
  57. - rebuilt with postgresql-8.3.3
  58. * Sun Jan 27 2008 Shu KONNO <owa@bg.wakwak.com> 3.8.1-0vl5
  59. - rebuilt
  60. * Tue Jan 08 2008 Shu KONNO <owa@bg.wakwak.com> 3.8.1-0vl4
  61. - rebuilt with postgresql-8.2.6
  62. * Sat Dec 01 2007 Shu KONNO <owa@bg.wakwak.com> 3.8.1-0vl3
  63. - changed source url
  64. * Wed Oct 24 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.8.1-0vl2
  65. - rebuilt with postgresql 8.2.5
  66. * Thu Jun 02 2005 Shu KONNO <owa@bg.wakwak.com> 3.8.1-0vl1
  67. - changed url
  68. - updated PyGreSQL to 3.8.1
  69. - rebuilt for x86_64 architecture support
  70. * Thu Jun 02 2005 Shu KONNO <owa@bg.wakwak.com> 3.6.2-0vl3
  71. - dropped "Provides: postgresql-python"
  72. - added Distribution and Vendor lines
  73. * Sun Apr 03 2005 Shu KONNO <owa@bg.wakwak.com> 3.6.2-0vl2
  74. - rebuilt with python 2.4.1
  75. * Sun Mar 20 2005 Shu KONNO <owa@bg.wakwak.com> 3.6.2-0vl1
  76. - created new