Sophie

Sophie

distrib > Altlinux > 4.1 > i586 > media > core-src > by-pkgid > f2160a95b9c04dad4ab079b9171d207e > files > 3

python-module-psycopg-1.1.21-alt2.1.src.rpm

%define version 1.1.21
%define release alt2
%setup_python_module psycopg

Summary: psycopg is a PostgreSQL database adapter for Python
Name: %packagename
Version: %version
Release: %release.1
Source0: %modulename-%version.tar.gz
Patch0: psycopg-logging.patch
License: GPL
Group: Databases
URL: http://www.initd.org/software/psycopg/
BuildRequires: postgresql-devel python%__python_package_version-module-egenix-mx-base
Obsoletes: psycopg <= 1.1.9-alt4
Requires: python%__python_version(mx)
Packager: Python Development Team <python@packages.altlinux.org>
%def_without ZPsycopgDA

%description
psycopg is a PostgreSQL database adapter for the Python programming
language (just like pygresql and popy.) It was written from scratch with
the aim of being very small and fast, and stable as a rock. The main
advantages of psycopg are that it supports the full Python DBAPI-2.0 and
being thread safe at level 2.

%package doc
Summary: Documentation for psycopg python PostgreSQL database adapter
Group: Databases

%description doc
Documenation and example files for the psycopg python PostgreSQL
database adapter.

%package ZPsycopgDA
Summary: psycopg PostgreSQL database adapter for Zope
Group: System/Servers/ZProducts
Requires: Zope-Modules

%description ZPsycopgDA
ZPsycopgDA is a PostgreSQL database adapter for the Zope application
server. It used psycopg database adapter. The main
advantages of psycopg are that it supports the full Python DBAPI-2.0 and
being thread safe at level 2.

#%package GeoTypes
#Summary: Classes for working with basic 2d geometric types
#Group: Development/Python
#
#%description GeoTypes
#A package of classes for working with basic 2d geometric types.
#
#These classes were designed for use with the geometric functions
#supported by Postgresql (http://www.postgresql.com) although they
#do not need Postgresql to be present for them to be used.

%prep
%setup  -q -n %modulename-%version
%patch0 -p1

%build
%configure --with-python=%__python \
      --with-mxdatetime-includes=/usr/lib/python%__python_version/site-packages/mx/DateTime/mxDateTime \
      --with-postgres-includes=%_includedir/pgsql
make

#pushd GeoTypes
#%__python setup.py build
#popd

%install
install -pDm644 psycopgmodule.so %buildroot%python_dynlibdir/psycopg.so
%if_with ZPsycopgDA
mkdir -p $RPM_BUILD_ROOT/usr/lib/zope/lib/python/Products
install -d ZPsycopgDA $RPM_BUILD_ROOT/usr/lib/zope/lib/python/Products/ZPsycopgDA
install -m 644 ZPsycopgDA/*{py,dtml} $RPM_BUILD_ROOT/usr/lib/zope/lib/python/Products/ZPsycopgDA
install -d ZPsycopgDA/icons $RPM_BUILD_ROOT/usr/lib/zope/lib/python/Products/ZPsycopgDA/icons
install -m 644 ZPsycopgDA/icons/* $RPM_BUILD_ROOT/usr/lib/zope/lib/python/Products/ZPsycopgDA/icons
%endif

#pushd GeoTypes
#%__python setup.py install --root=$RPM_BUILD_ROOT --optimize=2 --record=INSTALLED_FILES
#popd

%files
%python_dynlibdir/*

%files doc
%doc AUTHORS  COPYING  CREDITS  FAQ  INSTALL  NEWS  README  RELEASE-1.0  SUCCESS  TODO doc

%if_with ZPsycopgDA
%files ZPsycopgDA
/usr/lib/zope/lib/python/Products/ZPsycopgDA
%endif

#%files GeoTypes -f GeoTypes/INSTALLED_FILES
#%defattr(-,root,root)

%changelog
* Mon Jan 28 2008 Grigory Batalov <bga@altlinux.ru> 1.1.21-alt2.1
- Rebuilt with python-2.5.

* Thu Jan 24 2008 Grigory Batalov <bga@altlinux.ru> 1.1.21-alt2
- Use __python_version macro while building.

* Mon Apr 30 2007 ALT QA Team Robot <qa-robot@altlinux.org> 1.1.21-alt1.1
- Fixed python-module-psycopg x86-64 packaging (#11655).
- Disabled python-module-psycopg-ZPsycopgDA packaging.

* Fri Mar 30 2007 ALT QA Team Robot <qa-robot@altlinux.org> 1.1.21-alt1.0
- Rebuilt due to libpq.so.4 -> libpq.so.5 soname change.

* Mon Oct 03 2005 Ivan Fedorov <ns@altlinux.ru> 1.1.21-alt1
- 1.1.21

* Fri Aug 12 2005 Ivan Fedorov <ns@altlinux.ru> 1.1.19-alt1
- 1.1.19

* Tue Jan 11 2005 Andrey Orlov <cray@altlinux.ru> 1.1.18-alt1
- New Version

* Fri Jul 02 2004 Andrey Orlov <cray@altlinux.ru> 1.1.11-alt9
- Requires for egenix-mx-base added;

* Wed May 19 2004 Andrey Orlov <cray@altlinux.ru> 1.1.11-alt8
- Obsoleting of previous packages added

* Tue May 18 2004 Andrey Orlov <cray@altlinux.ru> 1.1.11-alt7
- Conditional operators excluded from spec

* Mon May 10 2004 Andrey Orlov <cray@altlinux.ru> 1.1.11-alt6.d
- Fix egenix-mx-base dependence

* Thu Apr 22 2004 Andrey Orlov <cray@altlinux.ru> 1.1.11-alt5.d
- Remove BuildArchitecture: noarch clause

* Tue Apr 13 2004 Andrey Orlov <cray@altlinux.ru> 1.1.11-alt4.d
- Rebuild with new rpm/python macros
- Insert BuildArchitecture: noarch clause

* Fri Mar 26 2004 Andrey Orlov <cray@altlinux.ru> 1.1.11-alt3.d
- New version
- Fix new python policy compatibility

* Wed Dec 10 2003 Andrey Orlov <cray@altlinux.ru> 1.1.9-alt4
- Fix permissions
- Try eliminate libpq2
- Try to use with py23

* Sun Sep 14 2003 Andrey Orlov <cray@altlinux.ru> 1.1.9-alt1
- New release

* Sat Dec 14 2002 Andrey Orlov <cray@altlinux.ru> 1.0.12-alt3
- Declaration of requirements are enhanced

* Mon Dec 02 2002 Andrey Orlov <cray@altlinux.ru> 1.0.12-alt2
- Logging of all queries in debug mode (STUPID_LOG_SEVERITY=DEBUG) was added

* Tue Oct 29 2002 Andrey Orlov <cray@altlinux.ru> 1.0.12-alt1
- Recompile with gcc 3.2.1

* Fri Sep 13 2002 Federico Di Gregorio  <fog@debian.org>
- Release 1.0.12.

- Removed code to support COPY FROM/TO, will be added to new 1.1
  branch to be released next week.

- cursor.c (_mogrify_seq): Fixed memory leak reported by Menno
  Smits (values obtained by calling PySequence_GetItem are *new*
  references!)

* Sun Sep  9 2002 Federico Di Gregorio  <fog@debian.org>

- cursor.c (_psyco_curs_execute): Added skeleton to support COPY
  FROM/TO.

* Fri Sep  6 2002  Federico Di Gregorio  <fog@debian.org>

- configure.in: if libcrypt can't be found we probably are on
  MacOS X: check for libcrypto, as suggested by Aparajita Fishman.

* Tue Sep 3 2002 Federico Di Gregorio  <fog@debian.org>

- ZPsycopgDA/db.py (DB.columns): Applied patch from Dieter Maurer
  to allow the DA-browser to work with mixed case table names.

* Fri Aug 30 2002 Federico Di Gregorio  <fog@debian.org>

- ZPsycopgDA/DA.py (cast_DateTime): Applied patch from Yury to fix
  timestamps (before they were returned with time always set to 0.)

* Mon Aug 26 2002  Federico Di Gregorio  <fog@debian.org>

- Release 1.0.11.1 (to fix a %%&£$"! bug in ZPsycopgDA not
   accepting psycopg 1.0.11 as a valid version.

- Release 1.0.11.

* Thu Aug 22 2002  Federico Di Gregorio  <fog@debian.org>

- Release 1.0.11pre2.

- cursor.c (_psyco_curs_execute): fixed IntegrityError as reported
  by Andy Dustman. (psyco_curs_execute): converting TypeError to
  ProgrammingError on wrong number of %% and/or aeguments.

- doc/examples/integrity.py: added example and check for
  IntegrityError.

* Thu Aug  08 2002  Federico Di Gregorio  <fog@debian.org>

- Release 1.0.11pre1.

* Tue Aug 06 2002  Federico Di Gregorio  <fog@debian.org>

- ZPsycopgDA/DA.py (cast_DateTime): patched as suggested by Tom
  Jenkins; now it shouldwork with time zones too.

* Thu Aug 01 2002  Federico Di Gregorio  <fog@debian.org>

- ZPsycopgDA/DA.py (cast_DateTime): fixed problem with missing
  AM/PM, as reported by Tom Jenkins.

* Tue Jul  23 2002  Federico Di Gregorio  <fog@debian.org>

- Fixed buglets reported by Mike Coleman.

* Mon Jul  22 2002  Federico Di Gregorio  <fog@debian.org>

- Release 1.0.10.

* Sat Jul  14 2002  Federico Di Gregorio  <fog@debian.org>

- Release 1.0.10pre2.

- typeobj.c (psyco_LONGINTEGER_cast): fixed bad segfault by
  INCREFfing Py_None when it is the result of a NULL conversion.