14
0
Files
python-psycopg2/python-psycopg2.spec

66 lines
2.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-psycopg2
#
# Copyright (c) 2017 SUSE LINUX 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-psycopg2
Accepting request 515213 from home:tbechtold:branches:devel:languages:python - update version to 2.7.3: - Restored default :sql:`timestamptz[]` typecasting to Python `!datetime`. Regression introduced in Psycopg 2.7.2 (:ticket:`#578`). - Fixed inconsistent state in externally closed connections (:tickets:`#263, #311, #443`). Was fixed in 2.6.2 but not included in 2.7 by mistake. - Fixed Python exceptions propagation in green callback (:ticket:`#410`). - Don't display the password in `connection.dsn` when the connection string is specified as an URI (:ticket:`#528`). - Return objects with timezone parsing "infinity" :sql:`timestamptz` (:ticket:`#536`). - Dropped dependency on VC9 runtime on Windows binary packages (:ticket:`#541`). - Fixed segfault in `~connection.lobject()` when *mode*\=\ `!None` (:ticket:`#544`). - Fixed `~connection.lobject()` keyword argument *lobject_factory* (:ticket:`#545`). - Fixed `~psycopg2.extras.ReplicationCursor.consume_stream()` *keepalive_interval* argument (:ticket:`#547`). - Maybe fixed random import error on Python 3.6 in multiprocess environment (:ticket:`#550`). - Fixed random `!SystemError` upon receiving abort signal (:ticket:`#551`). - Accept `~psycopg2.sql.Composable` objects in `~psycopg2.extras.ReplicationCursor.start_replication_expert()` (:ticket:`554`). - Parse intervals returned as microseconds from Redshift (:ticket:`#558`). - Added `~psycopg2.extras.Json` `!prepare()` method to consider connection params when adapting (:ticket:`#562`). - `~psycopg2.errorcodes` map updated to PostgreSQL 10 beta 1. OBS-URL: https://build.opensuse.org/request/show/515213 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=52
2017-08-08 15:57:53 +00:00
Version: 2.7.3
Release: 0
Summary: Python-PostgreSQL Database Adapter
License: LGPL-3.0+ and (LGPL-3.0+ or ZPL-2.0) and SUSE-GPL-2.0-with-openssl-exception
Group: Development/Languages/Python
Url: http://initd.org/psycopg/
Source: https://files.pythonhosted.org/packages/source/p/psycopg2/psycopg2-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: fdupes
BuildRequires: postgresql-devel >= 9.1
BuildRequires: python-rpm-macros
Suggests: postgresql-server
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%python_subpackages
%description
psycopg2 is a PostgreSQL database adapter for the Python programming
language.
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 asychronous operations and support
for coroutine libraries.
%prep
%setup -q -n psycopg2-%{version}
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%python_build
%install
%python_install
%python_expand 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 %{python_files}
%defattr(-,root,root,-)
%doc AUTHORS LICENSE NEWS README.rst
%{python_sitearch}/psycopg2/
%{python_sitearch}/psycopg2-%{version}-py%{python_version}.egg-info
%changelog