2009-04-27 15:31:31 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-10-27 12:12:46 +00:00
|
|
|
%define modname psycopg2
|
2009-04-27 15:31:31 +00:00
|
|
|
|
|
|
|
Name: python-psycopg2
|
2006-10-27 12:12:46 +00:00
|
|
|
Summary: A PostgreSQL database adapter for Python
|
2009-08-18 13:17:15 +00:00
|
|
|
Version: 2.0.12
|
2007-01-20 01:54:57 +00:00
|
|
|
Release: 1
|
2009-04-27 15:31:31 +00:00
|
|
|
Url: http://initd.org/projects/psycopg1
|
|
|
|
License: X11/MIT
|
|
|
|
Group: Development/Languages/Python
|
2008-11-20 20:29:18 +00:00
|
|
|
Source: %{modname}-%{version}.tar.bz2
|
2006-10-27 12:12:46 +00:00
|
|
|
%{py_requires}
|
2009-04-27 15:31:31 +00:00
|
|
|
BuildRequires: postgresql-devel python-devel
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2006-10-27 12:12:46 +00:00
|
|
|
|
|
|
|
%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 <fog@initd.org>
|
|
|
|
|
2009-04-27 15:31:31 +00:00
|
|
|
|
2006-10-27 12:12:46 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
|
|
|
|
%build
|
2007-01-20 01:54:57 +00:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
2007-06-13 07:59:33 +00:00
|
|
|
%{__python} setup.py build
|
2006-10-27 12:12:46 +00:00
|
|
|
|
|
|
|
%install
|
2008-11-05 10:58:23 +00:00
|
|
|
%{__python} setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
|
2006-10-27 12:12:46 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files -f INSTALLED_FILES
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc doc examples AUTHORS ChangeLog PKG-INFO README
|
|
|
|
|
|
|
|
%changelog
|