* The close() methods on connections and cursors don't raise exceptions if called on already closed objects. * Fixed fetchmany() with no argument in cursor subclasses (ticket #84). * Use lo_creat() instead of lo_create() when possible for better interaction with pgpool-II (ticket #88). * Error and its subclasses are picklable, useful for multiprocessing interaction (ticket #90). * Better efficiency and formatting of timezone offset objects thanks to Menno Smits (tickets #94, #95). * Fixed 'rownumber' during iteration on cursor subclasses. Regression introduced in 2.4.4 (ticket #100). * Added support for 'inet' arrays. * Fixed 'commit()' concurrency problem (ticket #103). * Codebase cleaned up using the GCC Python plugin's static analysis tool, which has revealed several unchecked return values, possible NULL dereferences, reference counting problems. Many thanks to David Malcolm for the useful tool and the assistance provided using it. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=32
78 lines
2.8 KiB
RPMSpec
78 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package python-psycopg2
|
|
#
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: python-psycopg2
|
|
Version: 2.4.5
|
|
Release: 0
|
|
License: LGPL-3.0+ or ZPL-2.0
|
|
Summary: Python-PostgreSQL Database Adapter
|
|
Url: http://initd.org/psycopg/
|
|
Group: Development/Languages/Python
|
|
Source: http://pypi.python.org/packages/source/p/psycopg2/psycopg2-%{version}.tar.gz
|
|
BuildRequires: fdupes
|
|
BuildRequires: postgresql-devel
|
|
BuildRequires: python-devel
|
|
Suggests: postgresql-server
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
%endif
|
|
|
|
%description
|
|
psycopg2 is a PostgreSQL database adapter for the Python programming
|
|
language. psycopg2 was written with the aim of being very small and fast,
|
|
and stable as a rock.
|
|
|
|
psycopg2 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. psycopg2 also provide full asycronous operations and support
|
|
for coroutine libraries.
|
|
|
|
%package doc
|
|
Summary: Documentation for psycopg python PostgreSQL database adapter
|
|
Group: Documentation/HTML
|
|
Requires: %{name} = %{version}
|
|
|
|
%description doc
|
|
Documentation and example files for the psycopg python PostgreSQL database adapter.
|
|
|
|
%prep
|
|
%setup -q -n psycopg2-%{version}
|
|
|
|
%build
|
|
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
|
|
rm -rf doc/src doc/html/.buildinfo # Remove junk
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
rm -rf %{buildroot}%{python_sitearch}/psycopg2/tests # Don't package testsuite
|
|
%fdupes -s %{buildroot}/%{_mandir} # Create symlinks for man pages
|
|
%fdupes %{buildroot} # Create hardlinks for the rest
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc AUTHORS ChangeLog LICENSE NEWS PKG-INFO README
|
|
%{python_sitearch}/*
|
|
|
|
%files doc
|
|
%defattr(-,root,root)
|
|
%doc doc/html examples/
|
|
|
|
%changelog
|