%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: python-zope-sqlalchemy
Version: 0.3
Release: 1%{?dist}
Summary: Minimal Zope/SQLAlchemy transaction integration
Group: Development/Languages
License: ZPL
URL: http://pypi.python.org/pypi/zope.sqlalchemy
Source0: http://pypi.python.org/packages/source/z/zope.sqlalchemy/zope.sqlalchemy-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel python-setuptools-devel
Requires: python-transaction
Requires: python-sqlalchemy >= 0.4.7
Requires: python-zope-interface
%description
The aim of this package is to unify the plethora of existing packages
integrating SQLAlchemy with Zope's transaction management. As such it seeks
only to provide a data manager and makes no attempt to define a zopeish way to
configure engines.
%prep
%setup -q -n zope.sqlalchemy-%{version}
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README.txt
%{python_sitelib}/*
%changelog
* Tue Oct 21 2008 Luke Macken <lmacken@redhat.com> - 0.3-1
- Initial package