Group :: Development/Python
RPM: python-module-psycopg2
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Version: 2.0.8
Release: alt1
%setup_python_module psycopg2
Summary: psycopg2 is a PostgreSQL database adapter for Python
Name: %packagename
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
…
Full changelog you can see here
Release: alt1
%setup_python_module psycopg2
Summary: psycopg2 is a PostgreSQL database adapter for Python
Name: %packagename
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
…
Full changelog you can see here