python-psycopg2-vl.spec 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. %define zope_product ZPsycopgDA
  2. %define zope_instance %{_libdir}/zope/lib/python/Products
  3. Summary: psycopg2 is a PostgreSQL database adapter for Python
  4. Summary(ja): psycopg2 は Python の PostgreSQL 用データベースアダプタです
  5. Name: python-psycopg2
  6. Group: Applications/Databases
  7. Version: 2.0.13
  8. Release: 1%{?_dist_release}
  9. License: GNU GPL2
  10. Source: http://initd.org/pub/software/psycopg/psycopg2-%{version}.tar.gz
  11. Distribution: Vine Linux
  12. Vendor: Project Vine
  13. BuildRoot: %{_tmppath}/psycopg-%{version}-root
  14. BuildRequires: python-devel postgresql-devel python-egenix-mx-base
  15. Requires: python postgresql-libs
  16. %description
  17. psycopg is a PostgreSQL database adapter for the Python programming
  18. language. This is version 2, a complete rewrite of the original code to
  19. provide new-style classes for connection and cursor objects and other
  20. sweet candies. Like the original, psycopg 2 was written with the aim of
  21. being very small and fast, and stable as a rock.
  22. %package doc
  23. Summary: Documentation for psycopg python PostgreSQL database adapter
  24. Group: Applications/Databases
  25. %description doc
  26. Documenation and example files for the psycopg python PostgreSQL
  27. database adapter.
  28. %package ZPsycopgDA
  29. Summary: ZPsycopgDA is a PostgreSQL database adapter product for Zope
  30. Group: Development/Web Applications
  31. Requires: %{name} == %{version}
  32. Requires: Zope-zserver >= 2.9
  33. conflicts: Zope-ZPsycopgDA
  34. %description ZPsycopgDA
  35. ZPsycopgDA is a PostgreSQL database adapter product for Zope.
  36. %prep
  37. %setup -q -n psycopg2-%{version}
  38. %build
  39. python setup.py build
  40. %install
  41. python setup.py install --root $RPM_BUILD_ROOT
  42. mkdir -p $RPM_BUILD_ROOT%{zope_instance}
  43. find %{zope_product} -name CVS | xargs rm -fr
  44. cp -pR %{zope_product} $RPM_BUILD_ROOT%{zope_instance}
  45. %clean
  46. rm -rf $RPM_BUILD_ROOT
  47. %post
  48. if [ -d /var/lib/zope/Products/%{zope_product} ]; then
  49. rm -rf /var/lib/zope/Products/%{zope_product}
  50. fi
  51. %files
  52. %defattr(-,root,root)
  53. %{python_sitearch}/psycopg2
  54. %{python_sitearch}/psycopg2-%{version}-py%{pyver}.egg-info
  55. %files doc
  56. %defattr(-,root,root)
  57. %doc AUTHORS INSTALL README doc
  58. %files ZPsycopgDA
  59. %defattr(-,zope,zope)
  60. %{zope_instance}/%{zope_product}
  61. %changelog
  62. * Wed Feb 17 2010 Shu KONNO <owa@bg.wakwak.com> 2.0.13-1
  63. - updated psycopg2 to 2.0.13
  64. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 2.0.11-2
  65. - rebuild with python-2.6
  66. * Wed Jul 08 2009 Shu KONNO <owa@bg.wakwak.com> 2.0.11-1
  67. - updated psycopg2 to 2.0.11
  68. - built with postgresql-8.4.0
  69. * Mon May 04 2009 Shu KONNO <owa@bg.wakwak.com> python-psycopg2-2.0.10-1vl5
  70. - updated psycopg2 to 2.0.10
  71. * Wed Dec 31 2008 Shu KONNO <owa@bg.wakwak.com> python-psycopg2-2.0.8-1vl5
  72. - updated psycopg2 to 2.0.8
  73. * Thu Jul 17 2008 Shu KONNO <owa@bg.wakwak.com> python-psycopg2-2.0.7-1vl5
  74. - packaged new