python-psycopg-vl.spec 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. %define _zope2_pythonlibs %{_var}/lib/Zope2/lib/python
  2. %define _zope2_installdir %{_var}/lib/Zope2/Products
  3. %define _product ZPsycopgDA
  4. Summary: psycopg is a PostgreSQL database adapter for Python
  5. Summary(ja): psycopg は Python の PostgreSQL 用データベースアダプタです
  6. Name: python-psycopg
  7. Group: Applications/Databases
  8. Version: 1.1.21
  9. Release: 5%{?_dist_release}
  10. License: GNU GPL2
  11. URL: http://initd.org/software/initd/psycopg
  12. Source0: http://initd.org/pub/software/psycopg/psycopg-%{version}.tar.gz
  13. Patch0: psycopg-1.1.21-DA.patch
  14. Patch1: psycopg-1.1.21-DABase.patch
  15. BuildRequires: python-devel
  16. BuildRequires: postgresql-devel
  17. BuildRequires: python-egenix-mx-base
  18. Requires: python
  19. Requires: postgresql-libs
  20. BuildRoot: %{_tmppath}/psycopg-%{version}-root
  21. Distribution: Vine Linux
  22. Vendor: Project Vine
  23. Packager: owa
  24. %description
  25. psycopg is a PostgreSQL database adapter for the Python programming
  26. language (just like pygresql and popy.) It was written from scratch with
  27. the aim of being very small and fast, and stable as a rock. The main
  28. advantages of psycopg are that it supports the full Python DBAPI-2.0 and
  29. being thread safe at level 2.
  30. %package doc
  31. Summary: Documentation for psycopg python PostgreSQL database adapter
  32. Group: Applications/Databases
  33. %description doc
  34. Documenation and example files for the psycopg python PostgreSQL
  35. database adapter.
  36. %package %{_product}
  37. Summary: ZPsycopgDA is a PostgreSQL database adapter product for Zope
  38. Group: Development/Web Applications
  39. Requires: %{name} == %{version}
  40. Requires: Zope2-zserver >= 2.12
  41. Provides: %{_product}
  42. Obsoletes: Zope-%{_product}
  43. %description %{_product}
  44. ZPsycopgDA is a PostgreSQL database adapter product for Zope.
  45. %prep
  46. %setup -q -n psycopg-%{version}
  47. %patch0 -p1 -b .DA
  48. %patch1 -p1 -b .DABase
  49. %build
  50. %configure \
  51. --with-postgres-libraries=%{_libdir} \
  52. --with-postgres-includes=%{_includedir}/pgsql \
  53. --with-mxdatetime-includes=%{python_sitearch}/mx/DateTime/mxDateTime \
  54. --with-zope=%{_libdir}/Zope2 \
  55. ;
  56. make
  57. %install
  58. rm -rf $RPM_BUILD_ROOT
  59. mkdir -p $RPM_BUILD_ROOT%{python_sitearch}
  60. install -m 755 psycopgmodule.so $RPM_BUILD_ROOT%{python_sitearch}
  61. mkdir -p $RPM_BUILD_ROOT%{_zope2_pythonlibs}
  62. ln -sf %{python_sitearch}/psycopgmodule.so $RPM_BUILD_ROOT%{_zope2_pythonlibs}
  63. find %{_product} -name CVS | xargs rm -fr
  64. mkdir -p $RPM_BUILD_ROOT%{_zope2_installdir}
  65. cp -pR %{_product} $RPM_BUILD_ROOT%{_zope2_installdir}
  66. %clean
  67. rm -rf $RPM_BUILD_ROOT
  68. %preun %{_product}
  69. if [ $1 = 0 ]; then
  70. rm -rf %{_zope2_installdir}/%{_product}/*.pyc
  71. fi
  72. %files
  73. %defattr(-,root,root)
  74. %{python_sitearch}/psycopgmodule.so
  75. %files doc
  76. %defattr(-,root,root)
  77. %doc AUTHORS COPYING CREDITS FAQ INSTALL NEWS README RELEASE-1.0 SUCCESS TODO doc
  78. %files %{_product}
  79. %defattr(-,Zope2,Zope2)
  80. %{_zope2_pythonlibs}/psycopgmodule.so
  81. %{_zope2_installdir}/%{_product}
  82. %changelog
  83. * Wed Dec 15 2010 Shu KONNO <owa@bg.wakwak.com> 1.1.21-5
  84. - added psycopg-1.1.21-DA.patch
  85. - added psycopg-1.1.21-DABase.patch
  86. - rename sub-package: Zope-%{_product} => %{name}-%{_product}
  87. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 1.1.21-4
  88. - rebuild with python-2.6
  89. * Wed Jul 08 2009 Shu KONNO <owa@bg.wakwak.com> 1.1.21-3
  90. - rebuilt with postgresql-8.4.0
  91. * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> python-psycopg-1.1.21-2vl5
  92. - rebuilt with python-2.5.2
  93. * Thu Jul 17 2008 Shu KONNO <owa@bg.wakwak.com> python-psycopg-1.1.21-1vl5
  94. - applied new versioning policy and spec in utf-8
  95. * Fri Oct 13 2006 Shu KONNO <owa@bg.wakwak.com> python-psycopg-1.1.21-0vl1
  96. - update psycopg to 1.1.21
  97. - changed install directory with %{_libdir}/zope/lib/python/Products/
  98. * Sat May 28 2005 Shu KONNO <owa@bg.wakwak.com> python-psycopg-1.1.18-0vl1
  99. - changed spec for vine seed
  100. * Sun May 01 2005 Shu KONNO <owa@bg.wakwak.com> python-psycopg-1.1.18-uvl3
  101. - added option "--with-postgres-libraries" to configure
  102. * Mon Mar 21 2005 Shu KONNO <owa@bg.wakwak.com> python-psycopg-1.1.18-uvl2
  103. - rebuilded with python 2.4
  104. * Thu Mar 10 2005 Shu KONNO <owa@bg.wakwak.com> python-psycopg-1.1.18-uvl1
  105. - updated psycopg to 1.1.18
  106. * Tue Feb 15 2005 Shu KONNO <owa@bg.wakwak.com> python-psycopg-1.1.17-uvl1
  107. - updated psycopg to 1.1.17
  108. * Fri Jul 30 2004 Shu KONNO <owa@bg.wakwak.com> python-psycopg-1.1.15-uvl1
  109. - updated psycopg to 1.1.15
  110. * Mon May 24 2004 Shu KONNO <owa@bg.wakwak.com> python-psycopg-1.1.13-uvl1
  111. - updated psycopg to 1.1.13
  112. * Thu Apr 29 2004 Shu KONNO <owa@bg.wakwak.com> python-psycopg-1.1.11-uvl3
  113. - rebuild
  114. * Sat Apr 24 2004 Shu KONNO <owa@bg.wakwak.com> python-psycopg-1.1.11-uvl1
  115. - renamed
  116. - build with python-2.3.3-0vl1
  117. * Sat Feb 28 2004 Shu KONNO <owa@bg.wakwak.com> python2.3-psycopg-1.1.10-uvl1
  118. - changed package name
  119. * Fri Nov 21 2003 Shu KONNO <owa@bg.wakwak.com> psycopg-1.1.10-py2.1_uvl1
  120. - removed memory leak by adding some DECREFs (by Chris Douty)
  121. * Sun Aug 31 2003 Shu KONNO <owa@bg.wakwak.com> psycopg-1.1.6-py2.1_uvl1
  122. * Wed Jun 25 2003 Shu KONNO <owa@bg.wakwak.com> psycopg-1.1.5.1-py2.1_uvl1
  123. * Wed Mar 5 2003 Shu KONNO <owa@bg.wakwak.com> psycopg-1.0.14-py2.1_0vp1
  124. * Mon Jul 1 2002 Shu KONNO <owa@bg.wakwak.com> psycopg-1.0.9-0vp1
  125. - created new