python-psycopg2/python-psycopg2.spec
Tomáš Chvátal e664328c2f Accepting request 578950 from home:sebix:branches:devel:languages:python
- update to version 2.7.4:
 - Moving away from installing the wheel package by default.
   Packages installed from wheel raise a warning on import. Added package
   ``psycopg2-binary`` to install from wheel instead (🎫`#543`).
 - Convert fields names into valid Python identifiers in
   `~psycopg2.extras.NamedTupleCursor` (🎫`#211`).
 - Fixed Solaris 10 support (🎫`#532`).
 - `cursor.mogrify()` can be called on closed cursors (🎫`#579`).
 - Fixed setting session characteristics in corner cases on autocommit
   connections (🎫`#580`).
 - Fixed `~psycopg2.extras.MinTimeLoggingCursor` on Python 3 (🎫`#609`).
 - Fixed parsing of array of points as floats (🎫`#613`).
 - Fixed `~psycopg2.__libpq_version__` building with libpq >= 10.1
   (🎫`632`).
 - Fixed `~cursor.rowcount` after `~cursor.executemany()` with :sql:`RETURNING`
   statements (🎫`633`).
 - Fixed compatibility problem with pypy3 (🎫`#649`).
 - Wheel packages compiled against PostgreSQL 10.1 libpq and OpenSSL 1.0.2n.
 - Wheel packages for Python 2.6 no more available (support dropped from
   wheel building infrastructure).
- update to version 2.7.3.2:
 - not relevant
- update to version 2.7.3.1:
 - not relevant

OBS-URL: https://build.opensuse.org/request/show/578950
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2?expand=0&rev=54
2018-02-22 11:20:22 +00:00

64 lines
2.3 KiB
RPMSpec

#
# spec file for package python-psycopg2
#
# Copyright (c) 2018 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
Version: 2.7.4
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
%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}
%doc AUTHORS LICENSE NEWS README.rst
%{python_sitearch}/psycopg2/
%{python_sitearch}/psycopg2-%{version}-py%{python_version}.egg-info
%changelog