%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: python-transaction Version: 1.0 Release: 0.2.a1%{?dist} Summary: Transaction Management for Python Group: Development/Languages License: ZPLv2.1 URL: http://pypi.python.org/pypi/transaction Source0: http://pypi.python.org/packages/source/t/transaction/transaction-1.0a1.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools #BuildRequires: python-zope-testing #BuildRequires: python-zope-interface 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-1.0a1 %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %check #%{__python} setup.py test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc CHANGES.txt README.txt LICENSE.txt %{python_sitelib}/* %changelog * Mon Dec 15 2008 Conrad Meyer - 1.0-0.2.a1 - Added a missing BR (python-setuptools). - Added LICENSE.txt to doc. * Mon Dec 15 2008 Conrad Meyer - 1.0-0.1.a1 - Initial package.