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