Summary: PostgreSQL driver and tools library Name: python3-py-postgresql Version: 1.0.4 Release: 5 License: BSD Group: Development/Languages/Python Source0: http://python.projects.postgresql.org/files/py-postgresql-%{version}.tar.gz # Source0-md5: 4b0e06a03c2d2ad3aae9100871f83e45 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