Group :: Desenvolvimento/Python
RPM: python-module-pyPgSQL
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define version 2.5.1
%define release alt2
%setup_python_module pyPgSQL
Summary: pyPgSQL - A Python DB-API 2.0 compliant interface to PostgreSQL.
Name: %packagename
Version: %version
Release: %release.1
Source0: %modulename.tar
License: Python
Group: Development/Python
Vendor: pyPgSQL developers <pypgsql-devel at lists.sourceforge.net>
URL: http://pypgsql.sourceforge.net/
Packager: Python Development Team <python at packages.altlinux.org>
BuildPreReq: python-devel
# Automatically added by buildreq on Thu Mar 22 2007
BuildRequires: postgresql-devel
%description
pyPgSQL is a package of two (2) modules that provide a Python DB-API 2.0
compliant interface to PostgreSQL databases. The first module, libpq,
exports the PostgreSQL C API to Python. This module is written in C and
can be compiled into Python or can be dynamically loaded on demand. The
second module, PgSQL, provides the DB-API 2.0 compliant interface and
support for various PostgreSQL data types, such as INT8, NUMERIC, MONEY,
BOOL, ARRAYS, etc. This module is written in Python. This version works
with PostgreSQL 7.0 or later and Python 2.1 or later.
%prep
%setup -q -n %modulename
%build
env CFLAGS="$RPM_OPT_FLAGS" %__python setup.py build
%install
%__python setup.py install --root=%buildroot --optimize=2 --record=INSTALLED_FILES
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc examples README README.html
%changelog
…
Todas as alterações você pod ver aqui
%define release alt2
%setup_python_module pyPgSQL
Summary: pyPgSQL - A Python DB-API 2.0 compliant interface to PostgreSQL.
Name: %packagename
Version: %version
Release: %release.1
Source0: %modulename.tar
License: Python
Group: Development/Python
Vendor: pyPgSQL developers <pypgsql-devel at lists.sourceforge.net>
URL: http://pypgsql.sourceforge.net/
Packager: Python Development Team <python at packages.altlinux.org>
BuildPreReq: python-devel
# Automatically added by buildreq on Thu Mar 22 2007
BuildRequires: postgresql-devel
%description
pyPgSQL is a package of two (2) modules that provide a Python DB-API 2.0
compliant interface to PostgreSQL databases. The first module, libpq,
exports the PostgreSQL C API to Python. This module is written in C and
can be compiled into Python or can be dynamically loaded on demand. The
second module, PgSQL, provides the DB-API 2.0 compliant interface and
support for various PostgreSQL data types, such as INT8, NUMERIC, MONEY,
BOOL, ARRAYS, etc. This module is written in Python. This version works
with PostgreSQL 7.0 or later and Python 2.1 or later.
%prep
%setup -q -n %modulename
%build
env CFLAGS="$RPM_OPT_FLAGS" %__python setup.py build
%install
%__python setup.py install --root=%buildroot --optimize=2 --record=INSTALLED_FILES
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc examples README README.html
%changelog
…
Todas as alterações você pod ver aqui