Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37048548
en ru br
ALT Linux repositórios
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 version 2.0.6
%define rel 1
%define subver svn876

%setup_python_module psycopg2

Summary: psycopg2 is a PostgreSQL database adapter for Python
Name: %packagename
Version: %version
%ifdef subver
Release: alt%rel.%subver
%else
Release: alt%rel
%endif
Source0: %modulename.tar
License: GPL
Group: Development/Python
URL: http://www.initd.org/software/psycopg/
BuildRequires: postgresql-devel
Packager: Python Development Team <python at packages.altlinux.org>

%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.

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

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

%package -n %__python_module_prefix-psycopg2da
Summary: PostgreSQL Database Adapter for Zope 3
Group: Development/Python

%description -n %__python_module_prefix-psycopg2da
PostgreSQL Database Adapter for Zope 3

%prep
%setup  -q -n %modulename

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

%build
env CFLAGS="$RPM_OPT_FLAGS" %__python setup.py build

%install
mkdir -p %buildroot/%python_sitelibdir/psycopg2da/
%__python setup.py install --root=%buildroot --optimize=2 --record=INSTALLED_FILES

install -m644 psycopg2da/__init__.py %buildroot/%python_sitelibdir/psycopg2da/
install -m644 psycopg2da/adapter.py %buildroot/%python_sitelibdir/psycopg2da/
install -m644 psycopg2da/*.zcml %buildroot/%python_sitelibdir/psycopg2da/

%files -f INSTALLED_FILES
%defattr(-,root,root)
%dir %python_sitelibdir/psycopg2

%files doc
%doc AUTHORS INSTALL README doc/* examples

%files -n %__python_module_prefix-psycopg2da
%dir %python_sitelibdir/psycopg2da
%python_sitelibdir/psycopg2da/*

%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