2 %include /usr/lib/rpm/macros.python
5 Summary: psycopg is a PostgreSQL database adapter for Python
6 Summary(pl): psycopg jest przeznaczonym dla Pythona interfejsem do bazy PostgreSQL
11 Group: Applications/Databases
12 Source0: http://initd.org/pub/software/%{module}/%{module}-%{version}.tar.gz
13 Patch0: %{name}-dumb-ac-fix.patch
14 URL: http://www.initd.org/software/psycopg/
15 BuildRequires: postgresql-backend-devel
16 BuildRequires: python-devel
17 BuildRequires: python-mx-DateTime-devel
18 Requires: postgresql-libs
20 Requires: python-egenix-mx-base
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 psycopg is a PostgreSQL database adapter for the Python programming
25 language (just like pygresql and popy.) It was written from scratch
26 with the aim of being very small and fast, and stable as a rock. The
27 main advantages of psycopg are that it supports the full Python
28 DBAPI-2.0 and being thread safe at level 2.
31 psycopg jest przeznaczonym dla Pythona interfejsem do bazy danych
32 PostgreSQL (tak jak pygresql i popy). Zosta³ zakodowany od pocz±tku
33 z za³o¿eniem ¿e ma byæ bardzo ma³y, szybki i stabilny. G³ówna zalet±
34 psycopg jest, ¿e w jest pe³ni zgodny z standardem DBAPI-2.0 i jest
35 'thread safe' na poziomie 2.
38 %setup -q -n %{module}-%{version}
45 --with-python=%{_bindir}/python \
46 --with-mxdatetime-includes=%{py_sitedir}/mx/DateTime/mxDateTime \
47 --with-postgres-includes=%{_includedir}/postgresql/server
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT%{py_sitedir}
54 install psycopgmodule.so $RPM_BUILD_ROOT%{py_sitedir}
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 %doc AUTHORS CREDITS FAQ NEWS README RELEASE-1.0 SUCCESS TODO doc
62 %attr(755,root,root) %{py_sitedir}/*.so