python-psycopg2/python-psycopg2.spec

82 lines
2.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-psycopg2
#
# Copyright (c) 2011 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
- Update to 2.4.4: * register_composite() also works with the types implicitly defined after a table row, not only with the ones created by CREATE TYPE. * Values for the isolation level symbolic constants restored to what they were before release 2.4.2 to avoid breaking apps using the values instead of the constants. * Named DictCursor/RealDictCursor honour itersize (ticket #80). * Fixed rollback on error on Zope (ticket #73). * Raise DatabaseError instead of Error with empty libpq errors, consistently with other disconnection-related errors: regression introduced in release 2.4.1 (ticket #82). - Version 2.4.3: * connect() supports all the keyword arguments supported by the database * Added new_array_type() function for easy creation of array typecasters. * Added support for arrays of hstores and composite types (ticket #66). * Fixed segfault in case of transaction started with connection lost (and possibly other events). * Fixed adaptation of Decimal type in sub-interpreters, such as in certain mod_wsgi configurations (ticket #52). * Rollback connections in transaction or in error before putting them back into a pool. Also discard broken connections (ticket #62). * Lazy import of the slow uuid module, thanks to Marko Kreen. * Fixed NamedTupleCursor.executemany() (ticket #65). * Fixed --static-libpq setup option (ticket #64). * Fixed interaction between RealDictCursor and named cursors (ticket #67). * Dropped limit on the columns length in COPY operations (ticket #68). * Fixed reference leak with arguments referenced more than once in queries (ticket #81). * Fixed typecasting of arrays containing consecutive backslashes. * errorcodes map updated to PostgreSQL 9.1. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=28
2012-01-12 22:04:03 +00:00
Version: 2.4.4
Release: 0
Url: http://initd.org/psycopg/
Summary: Python-PostgreSQL Database Adapter
License: LGPL-3.0+ or ZPL-2.0
Group: Development/Languages/Python
Source: psycopg2-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: postgresql-devel
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1010
BuildRequires: fdupes
%endif
%endif
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%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
%if 0%{?suse_version} > 1010
%fdupes -s %{buildroot}/%_mandir # Create symlinks for man pages
%fdupes %{buildroot} # Create hardlinks for the rest
%endif
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog LICENSE NEWS PKG-INFO README
%{python_sitearch}/*
%files doc
%defattr(-,root,root)
%doc doc/html examples/
%changelog