python-psycopg2/python-psycopg2.spec

65 lines
2.1 KiB
RPMSpec

#
# 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.0.10
Release: 1
Url: http://initd.org/projects/psycopg1
License: X11/MIT
Group: Development/Languages/Python
Source: %{modname}-%{version}.tar.bz2
%{py_requires}
BuildRequires: postgresql-devel python-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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>
%prep
%setup -q -n %{modname}-%{version}
%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%{__python} setup.py build
%install
%{__python} setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%clean
rm -rf %{buildroot}
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc doc examples AUTHORS ChangeLog PKG-INFO README
%changelog