9eb4e2d
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
9eb4e2d
9eb4e2d
Name:           python-setuptools
a540389
Version:        0.6c7
af65ae5
Release:        1%{?dist}
9eb4e2d
Summary:        Download, build, install, upgrade, and uninstall Python packages
9eb4e2d
9eb4e2d
Group:          Development/Languages
a540389
License:        Python or ZPLv2.0
9eb4e2d
URL:            http://peak.telecommunity.com/DevCenter/setuptools
ed4983c
Source0:        http://cheeseshop.python.org/packages/source/s/setuptools/setuptools-%{version}.tar.gz
af65ae5
Source1:        psfl.txt
af65ae5
Source2:        zpl.txt
9eb4e2d
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
9eb4e2d
9eb4e2d
BuildArch:      noarch
9eb4e2d
BuildRequires:  python-devel
9eb4e2d
5bb9c52
Requires:       python-devel
5bb9c52
a540389
Provides:       python-setuptools-devel
a540389
9eb4e2d
%description
9eb4e2d
setuptools is a collection of enhancements to the Python distutils that allow
9eb4e2d
you to more easily build and distribute Python packages, especially ones that
9eb4e2d
have dependencies on other packages.
9eb4e2d
5cd637b
9eb4e2d
%prep
9eb4e2d
%setup -q -n setuptools-%{version}
ed4983c
chmod -x *.txt
5cd637b
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'
5cd637b
9eb4e2d
9eb4e2d
%build
9eb4e2d
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
9eb4e2d
5cd637b
9eb4e2d
%install
9eb4e2d
rm -rf $RPM_BUILD_ROOT
5cd637b
%{__python} setup.py install -O1 --skip-build \
af65ae5
    --root $RPM_BUILD_ROOT \
af65ae5
    --single-version-externally-managed
47099cd
install -p -m 0644 %{SOURCE1} %{SOURCE2} .
5cd637b
find $RPM_BUILD_ROOT%{python_sitelib} -name '*.exe' | xargs rm -f
ed4983c
find $RPM_BUILD_ROOT%{python_sitelib} -name '*.txt' | xargs chmod -x
ed4983c
chmod +x $RPM_BUILD_ROOT%{python_sitelib}/setuptools/command/easy_install.py
5cd637b
9eb4e2d
9eb4e2d
%clean
9eb4e2d
rm -rf $RPM_BUILD_ROOT
9eb4e2d
5cd637b
9eb4e2d
%files
9eb4e2d
%defattr(-,root,root,-)
5cd637b
%doc *.txt
9eb4e2d
%{_bindir}/*
af65ae5
%{python_sitelib}/*
5cd637b
9eb4e2d
9eb4e2d
%changelog
a540389
* Fri Sep 14 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c7-1
a540389
- Upstream 0.6c7
a540389
- Provide python-setuptools-devel to make packagers' lives easier
a540389
5bb9c52
* Sun Jun 10 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c6-1
5bb9c52
- Upstream 0.6c6
5bb9c52
- Require python-devel (#240707)
5bb9c52
e707e73
* Sun Jan 28 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c5-1
e707e73
- Upstream 0.6c5 (known bugs, but the promised 0.6c6 is taking too long)
e707e73
ed4983c
* Tue Dec 05 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c3-1
ed4983c
- Upstream 0.6c3 (#218540, thanks to Michel Alexandre Salim for the patch)
ed4983c
af65ae5
* Tue Sep 12 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c2-1
af65ae5
- Upstream 0.6c2
af65ae5
- Ghostbusting
af65ae5
47099cd
* Mon Jul 31 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c1-2
47099cd
- Set perms on license files (#200768)
47099cd
68646f0
* Sat Jul 22 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c1-1
68646f0
- Version 0.6c1
68646f0
5cd637b
* Wed Jun 28 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6b3-1
5cd637b
- Taking over from Ignacio
5cd637b
- Version 0.6b3
5cd637b
- Ghost .pyo files in sitelib
5cd637b
- Add license files
5cd637b
- Remove manual python-abi, since we're building FC4 and up
5cd637b
- Kill .exe files
5cd637b
1d9cb8d
* Wed Feb 15 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.6a10-1
1d9cb8d
- Upstream update
1d9cb8d
f644c38
* Mon Jan 16 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.6a9-1
f644c38
- Upstream update
f644c38
9eb4e2d
* Sat Dec 24 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.6a8-1
9eb4e2d
- Initial RPM release