%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: python-wsgiproxy Version: 0.1 Release: 1%{?dist} Summary: HTTP proxying tools for WSGI apps Group: Development/Languages License: MIT URL: http://pythonpaste.org/wsgiproxy/ Source0: http://pypi.python.org/packages/source/W/WSGIProxy/WSGIProxy-0.1.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 Requires: python-paste Requires: python-paste-deploy %description WSGIProxy gives tools to proxy arbitrary(ish) WSGI requests to other processes over HTTP. %prep %setup -q -n WSGIProxy-%{version} %build %{__python} setup.py build %install %{__rm} -rf %{buildroot} %{__python} setup.py install --skip-build --root %{buildroot} %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %doc docs/* %{python_sitelib}/wsgiproxy %{python_sitelib}/*.egg-info %changelog * Sat Jun 14 2008 Ricky Zhou - 0.1-1 - Initial RPM Package.