%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%define alphaver a1
Name: python-transaction
Version: 1.0
Release: 0.1.%{alphaver}%{?dist}
Summary: Transaction management for Python
Group: Development/Languages
License: ZPL
URL: http://pypi.python.org/pypi/transaction
Source0: http://pypi.python.org/packages/source/t/transaction/transaction-%{version}%{alphaver}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel python-setuptools-devel
Requires: python-zope-interface
%description
This package contains a generic transaction implementation for Python. It is
mainly used by the ZODB, though.
%prep
%setup -q -n transaction-%{version}%{alphaver}
%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 LICENSE.txt COPYRIGHT.txt
%{python_sitelib}/transaction/
%{python_sitelib}/*.egg-info
%changelog
* Tue Oct 21 2008 Luke Macken <lmacken@redhat.com> - 1.0-0.1.a2
- Initial package