File PyGreSQL.spec of Package PyGreSQL

#
# spec file for package PyGreSQL (Version 3.8.1)
#
# Copyright (c) 2009 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/
#

# norootforbuild


Name:           PyGreSQL
BuildRequires:  openssl-devel postgresql postgresql-devel python-devel
Url:            http://www.pygresql.org
Summary:        Python Client Library for PostgreSQL
Version:        3.8.1
Release:        194
License:        BSD 3-Clause
Group:          Productivity/Databases/Clients
Source0:        %{name}-%{version}.tar.bz2
Patch0:         PyGreSQL.patch
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.



Authors:
--------
    D'Arcy J.M. Cain <darcy@druid.net>
    Pascal Andre <andre@via.ecp.fr>

%prep
%setup -q
#%patch0

%build
./setup.py build

%install
./setup.py install --prefix=%{_prefix} --root=%buildroot

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc docs/* tutorial
%_libdir/python%py_ver/site-packages/*

%changelog
* Tue Jul 25 2006 max@suse.de
- New version: 3.8.1
- Use string methods instead of deprecated string functions.
- Only use SQL-standard way of escaping quotes.
- Added the functions escape_string() and escape/unescape_bytea().
- Reverted code in clear() method that set date to current.
- Added code for backwards compatibility in OID munging code.
- Reorder attnames tests so that "interval" is checked for before
  "int."
- If caller supplies key dictionary, make sure that all has a
  namespace.
- Installed new favicon.ico from Matthew Sporleder <mspo@mspo.com>
- Replaced snprintf by PyOS_snprintf.
- Removed NO_SNPRINTF switch which is not needed any longer
- Clean up some variable names and namespace
- Add get_relations() method to get any type of relation
- Rewrite get_tables() to use get_relations()
- Use new method in get_attnames method to get attributes of views
  as well
- Add Binary type
- Number of rows is now -1 after executing no-result statements
- Fix some number handling
- Non-simple types do not raise an error any more
- Improvements to documentation framework
- Take into account that nowadays not every table must have an oid
  column
- Simplification and improvement of the inserttable() function
- Fix up unit tests
- The usual assortment of minor fixes and enhancements
* Sat Mar 04 2006 kukuk@suse.de
- updated to reflect python changes due to #149809
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 05 2006 max@suse.de
- New version: 3.7
* Mon Jul 04 2005 tarnold@suse.de
- Neew vrsion: 3.6.2
* Thu Jan 27 2005 max@suse.de
- New version: 3.6.1
* Fri Mar 19 2004 max@suse.de
- Add a dependency to python (bug #36499).
* Fri Mar 05 2004 max@suse.de
- Package postgresql-python separated from the PostgreSQL source
  RPM and renamed to PyGreSQL to reflect the fact, that it is a
  separete project now.
- Version: 3.4
openSUSE Build Service is sponsored by