Source0: http://pypi.python.org/packages/source/s/setuptools/setuptools-%{version}.tar.gz
Source1: psfl.txt
Source2: zpl.txt
+Source1001: packaging/python-setuptools.manifest
BuildRequires: python-devel
%setup -q -n setuptools-%{version}
%build
+cp %{SOURCE1001} .
find -name '*.txt' | xargs chmod -x
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
%files
+%manifest python-setuptools.manifest
%{python_sitelib}/*
%exclude %{python_sitelib}/easy_install*
%files devel
+%manifest python-setuptools.manifest
%{python_sitelib}/easy_install*
%{_bindir}/*