Summary: PostgreSQL driver and tools library Name: python3-py-postgresql Version: 1.0.2 Release: 2 License: BSD Group: Development/Languages/Python Source0: http://python.projects.postgresql.org/files/py-postgresql-%{version}.tar.gz # Source0-md5: 12c7ef62c78c9466a7fdd7fa985890e1 URL: http://python.projects.postgresql.org/ BuildRequires: python3-devel BuildRequires: python3-modules BuildRequires: rpm-pythonprov %pyrequires_eq python3-modules Requires: python3-modules BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description py-postgresql is a set of Python modules providing interfaces to various parts of PostgreSQL. Notably, it provides a pure-Python driver + C optimizations for querying a PostgreSQL database. %prep %setup -q -n py-postgresql-%{version} %build python3 -- setup.py build %install rm -rf $RPM_BUILD_ROOT python3 -- setup.py install \ --optimize=2 \ --root=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %{py3_sitedir}/postgresql %{py3_sitedir}/*.egg-info