File PyGreSQL.spec of Package PyGreSQL
#
# spec file for package PyGreSQL
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: PyGreSQL
BuildRequires: openssl-devel postgresql-devel python-devel
Url: http://www.pygresql.org
Summary: Python Client Library for PostgreSQL
Version: 4.0
Release: 1
License: BSD-3-Clause
Group: Productivity/Databases/Clients
Source0: %{name}-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: postgresql-python pg_pyth
Obsoletes: postgresql-python pg_pyth
Requires: python >= %py_ver, python < %py_ver.99
%description
PyGreSQL is a Python module that interfaces to a PostgreSQL database.
It embeds the PostgreSQL query library to allow easy use of PostgreSQL
features from a Python script.
%prep
%setup -q
%build
./setup.py build
%install
./setup.py install --prefix=%{_prefix} --root=%buildroot
%files
%defattr(-,root,root,-)
%doc docs/* tutorial
%_libdir/python%py_ver/site-packages/*
%changelog