# # spec file for package python # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. %define modname psycopg2 Name: python-psycopg2 Summary: A PostgreSQL database adapter for Python Version: 2.2.2 Release: 1 Url: http://initd.org/tracker/psycopg License: GPL with exceptions or ZPL Group: Development/Languages/Python Source: %{modname}-%{version}.tar.bz2 %{py_requires} BuildRequires: postgresql-devel python-devel >= 2.4 dos2unix BuildRoot: %{_tmppath}/%{name}-%{version}-build #Vendor: Federico Di Gregorio %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} %build export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %{__python} setup.py build %{__rm} -rf doc/src %install %{__python} setup.py install \ --prefix=%{_prefix} \ --root=$RPM_BUILD_ROOT \ --record-rpm=INSTALLED_FILES \ --optimize=2 %clean rm -rf %{buildroot} %files -f INSTALLED_FILES %defattr(-,root,root) %doc doc examples AUTHORS ChangeLog PKG-INFO README %changelog