Group :: Banco de dados
RPM: python-module-psycopg2
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define version 2.0
%define subver b4
%define release alt0.%subver
%setup_python_module psycopg2
Summary: psycopg2 is a PostgreSQL database adapter for Python
Name: %packagename
Version: %version
Release: %release
Source0: %modulename-%version%subver.tar.gz
License: GPL
Group: Databases
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: Databases
%description doc
Documenation and example files for the psycopg2 python PostgreSQL
database adapter.
%prep
%setup -q -n %modulename-%version%subver
echo "include_dirs=.:/usr/include/pgsql" >> setup.cfg
%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)
%files doc
%doc AUTHORS INSTALL README doc/* examples
%changelog
…
Todas as alterações você pod ver aqui
%define subver b4
%define release alt0.%subver
%setup_python_module psycopg2
Summary: psycopg2 is a PostgreSQL database adapter for Python
Name: %packagename
Version: %version
Release: %release
Source0: %modulename-%version%subver.tar.gz
License: GPL
Group: Databases
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: Databases
%description doc
Documenation and example files for the psycopg2 python PostgreSQL
database adapter.
%prep
%setup -q -n %modulename-%version%subver
echo "include_dirs=.:/usr/include/pgsql" >> setup.cfg
%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)
%files doc
%doc AUTHORS INSTALL README doc/* examples
%changelog
…
Todas as alterações você pod ver aqui