Blob Blame History Raw
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           python-setuptools
Version:        0.6b3
Release:        1%{?dist}
Summary:        Download, build, install, upgrade, and uninstall Python packages

Group:          Development/Languages
License:        PSFL/ZPL
Source1:		psfl.txt
Source2:		zpl.txt
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  python-devel

setuptools is a collection of enhancements to the Python distutils that allow
you to more easily build and distribute Python packages, especially ones that
have dependencies on other packages.

%setup -q -n setuptools-%{version}
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'

CFLAGS="$RPM_OPT_FLAGS" %{__python} build

%{__python} install -O1 --skip-build \
	--root $RPM_BUILD_ROOT \
cp -a %{SOURCE1} %{SOURCE2} .
find $RPM_BUILD_ROOT%{python_sitelib} -name '*.exe' | xargs rm -f


%doc *.txt
%dir %{python_sitelib}/setuptools
%dir %{python_sitelib}/setuptools/command
%dir %{python_sitelib}/setuptools/tests
%ghost %{python_sitelib}/*.pyo
%ghost %{python_sitelib}/*/*.pyo
%ghost %{python_sitelib}/*/*/*.pyo

* Wed Jun 28 2006 Konstantin Ryabitsev <> - 0.6b3-1
- Taking over from Ignacio
- Version 0.6b3
- Ghost .pyo files in sitelib
- Add license files
- Remove manual python-abi, since we're building FC4 and up
- Kill .exe files

* Wed Feb 15 2006 Ignacio Vazquez-Abrams <> 0.6a10-1
- Upstream update

* Mon Jan 16 2006 Ignacio Vazquez-Abrams <> 0.6a9-1
- Upstream update

* Sat Dec 24 2005 Ignacio Vazquez-Abrams <> 0.6a8-1
- Initial RPM release