%define modname psycopg2 Name: python-%{modname} URL: http://initd.org/projects/psycopg1 Summary: A PostgreSQL database adapter for Python Version: 2.0.2 Release: 10 License: GPL Group: Development/Libraries/Python Source: %{modname}-%{version}.tar.bz2 Patch: %{modname}-%{version}-pg_includedir.patch Patch1: %{modname}-stfu.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root %{py_requires} BuildRequires: python-devel postgresql-devel %description psycopg is a PostgreSQL database adapter for the Python programming language. This is version 2, a complete rewrite of the original code to provide new-style classes for connection and cursor objects and other sweet candies. Like the original, psycopg 2 was written with the aim of being very small and fast, and stable as a rock. psycopg is different from the other database adapter because it was designed for heavily multi-threaded applications that create and destroy lots of cursors and make a conspicuous number of concurrent INSERTs or UPDATEs. psycopg 2 also provide full asycronous operations for the really brave programmer. Authors: -------- Federico Di Gregorio %prep %setup -q -n %{modname}-%{version} #%patch -p1 %patch1 -p1 %build export CFLAGS="$RPM_OPT_FLAGS" python setup.py build %install rm -rf %{buildroot} python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES %clean rm -rf %{buildroot} %files -f INSTALLED_FILES %defattr(-,root,root) %doc doc examples AUTHORS ChangeLog PKG-INFO README %changelog * Wed Jul 26 2006 - James Oakley - 2.0.2-10 - Disable debugging * Thu Jun 22 2006 - James Oakley - 2.0.2-1 - Update * Wed Oct 19 2005 - James Oakley - 2.0-ft.1 - Initial release