Sisyphus repositório
Última atualização: 21 outubro 2019 | SRPMs: 17510 | Visitas: 15355745
en ru br
ALT Linux repositórios
S:2.8.3-alt1
5.0: 2.0.8-alt1
4.1: 2.0.6-alt3.1
4.0: 2.0.6-alt1.svn876
3.0: 2.0-alt0.b4

Group :: Desenvolvimento/Python
RPM: python-module-psycopg2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define oname psycopg2
%def_with python3

Version: 2.8.3
Release: alt1
%setup_python_module %oname

Summary: psycopg2 is a PostgreSQL database adapter for Python
Name: %packagename
# https://github.com/psycopg/psycopg2.git
Source0: psycopg2.tar
License: GPL
Group: Development/Python
URL: http://www.psycopg.org/psycopg/
# Automatically added by buildreq on Fri Jan 29 2016 (-bi)
# optimized out: elfutils libpq-devel libsasl2-3 python-base python-modules python-modules-compiler python-modules-email python3 python3-base
BuildRequires: postgresql-devel python-devel python3-devel rpm-build-python3

#BuildRequires: postgresql-devel

%if_with python3
BuildRequires(pre): rpm-build-python3
#BuildRequires: python3-devel python-tools-2to3
%endif

Requires: python-modules-json

%description
psycopg is a PostgreSQL database adapter for the Python programming
language (just like pygresql and popy.) It was written from scratch with
the aim of being very small and fast, and stable as a rock. The main
advantages of psycopg are that it supports the full Python DBAPI-2.0 and
being thread safe at level 2.

%if_with python3
%package -n python3-module-%oname
Summary: psycopg2 is a PostgreSQL database adapter for Python 3
Group: Development/Python3

%description -n python3-module-%oname
psycopg is a PostgreSQL database adapter for the Python 3 programming
language (just like pygresql and popy.) It was written from scratch with
the aim of being very small and fast, and stable as a rock. The main
advantages of psycopg are that it supports the full Python DBAPI-2.0 and
being thread safe at level 2.
%endif

%package doc
Summary: Documentation for psycopg2 python PostgreSQL database adapter
Group: Development/Python
BuildArch: noarch

%description doc
Documenation and example files for the psycopg2 python PostgreSQL
database adapter.

%prep
%setup

echo "include_dirs=.:/usr/include/pgsql" >> setup.cfg

%build
%add_optflags -fno-strict-aliasing
%python_build

%if_with python3
%python3_build
%endif

%install
%python_install --optimize=2 --record=INSTALLED_FILES

%if_with python3
%python3_install
%endif

%files -f INSTALLED_FILES
%dir %python_sitelibdir/psycopg2

%files doc
%doc AUTHORS INSTALL README* doc

%if_with python3
%files -n python3-module-%oname
%python3_sitelibdir/*
%endif

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009