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