%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: python-weberror Version: 0.8 Release: 3%{?dist} Summary: Web Error handling and exception catching middleware Group: Development/Languages License: MIT URL: http://pypi.python.org/pypi/WebError Source0: http://pypi.python.org/packages/source/W/WebError/WebError-0.8.tar.gz BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildArch: noarch BuildRequires: python-devel %if 0%{?fedora} >= 8 BuildRequires: python-setuptools-devel %else BuildRequires: python-setuptools %endif BuildRequires: python-nose BuildRequires: python-webob BuildRequires: python-webtest Requires: python-webob Requires: python-tempita %description WebError is WSGI middleware that performs error handling and exception catching. %prep %setup -q -n WebError-%{version} find . -type f -name ._\* -exec rm -f {} \; %{__chmod} 0644 WebError.egg-info/* %build %{__python} setup.py build %check nosetests %install %{__rm} -rf %{buildroot} %{__python} setup.py install --skip-build --root %{buildroot} %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %doc CHANGELOG LICENSE %{python_sitelib}/weberror %{python_sitelib}/*.egg-info %changelog * Thu Jul 17 2008 Ricky Zhou - 0.8-3 - Update Requires for python-webob rename. - Add BuildRequires on python-webob and python-webtest. * Mon Jul 07 2008 Ricky Zhou - 0.8-2 - Add %%check section. * Sat Jun 14 2008 Ricky Zhou - 0.8-1 - Initial RPM Package.