1 Summary: PostgreSQL driver and tools library
2 Name: python3-py-postgresql
5 Group: Development/Languages/Python
7 Source0: http://python.projects.postgresql.org/files/py-postgresql-%{version}.tar.gz
8 # Source0-md5: c9239b83d5055058b993076f9c92fd6d
9 URL: http://python.projects.postgresql.org/
10 BuildRequires: python3-devel
11 %pyrequires_eq python3-modules
12 Requires: python3-modules
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 py-postgresql is a set of Python modules providing interfaces to various parts
17 of PostgreSQL. Notably, it provides a pure-Python driver + C optimizations for
18 querying a PostgreSQL database.
21 %setup -q -n py-postgresql-%{version}
24 python3 -- setup.py build
27 rm -rf $RPM_BUILD_ROOT
28 python3 -- setup.py install \
30 --root=$RPM_BUILD_ROOT
35 rm -rf $RPM_BUILD_ROOT
38 %defattr(644,root,root,755)
39 %attr(755,root,root) %{_bindir}/*
40 %{py3_sitedir}/postgresql
41 %{py3_sitedir}/*.egg-info