16cfaec
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
e1be309
e1be309
%global srcname distribute
9eb4e2d
9eb4e2d
Name:           python-setuptools
16cfaec
Version:        0.6.7
e1be309
Release:        1%{?dist}
613f26d
Summary:        Easily build and distribute Python packages
9eb4e2d
6f21ed3
Group:          Applications/System
6f21ed3
License:        Python or ZPLv2.0
e1be309
URL:            http://pypi.python.org/pypi/%{srcname}
e1be309
Source0:        http://pypi.python.org/packages/source/d/%{srcname}/%{srcname}-%{version}.tar.gz
af65ae5
Source1:        psfl.txt
af65ae5
Source2:        zpl.txt
e1be309
# Upstream has chosen to improve this incrementally for now by whitelisting the
e1be309
# new svn version.
e1be309
#Patch0:         http://bugs.python.org/setuptools/file55/svn_versioning_4.patch
9eb4e2d
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
9eb4e2d
9eb4e2d
BuildArch:      noarch
9eb4e2d
BuildRequires:  python-devel
9eb4e2d
16cfaec
# Legacy: We removed this subpackage once easy_install no longer depended on
16cfaec
# python-devel
16cfaec
Provides: python-setuptools-devel = %{version}-%{release}
16cfaec
Obsoletes: python-setuptools-devel < %{version}-%{release}
16cfaec
6f21ed3
%description
613f26d
Setuptools is a collection of enhancements to the Python distutils that allow
6f21ed3
you to more easily build and distribute Python packages, especially ones that
6f21ed3
have dependencies on other packages.
6f21ed3
6f21ed3
This package contains the runtime components of setuptools, necessary to
6f21ed3
execute the software that requires pkg_resources.py.
6f21ed3
9eb4e2d
%prep
e1be309
%setup -q -n %{srcname}-%{version}
5a12225
find -name '*.txt' | xargs chmod -x
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
6f21ed3
%check
5a12225
%{__python} setup.py test
6f21ed3
6f21ed3
9eb4e2d
%install
9eb4e2d
rm -rf $RPM_BUILD_ROOT
e1be309
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
6f21ed3
6f21ed3
rm -rf $RPM_BUILD_ROOT%{python_sitelib}/setuptools/tests
6f21ed3
47099cd
install -p -m 0644 %{SOURCE1} %{SOURCE2} .
5cd637b
find $RPM_BUILD_ROOT%{python_sitelib} -name '*.exe' | xargs rm -f
72c279c
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,-)
e1be309
%doc psfl.txt zpl.txt docs
79e1104
%{python_sitelib}/*
79e1104
%{python_sitelib}/easy_install*
6f21ed3
%{_bindir}/*
5cd637b
9eb4e2d
9eb4e2d
%changelog
16cfaec
* Tue Nov 3 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.7-1
16cfaec
- Move easy_install back into the main package as the needed files have been
16cfaec
  moved from python-devel to the main python package.
16cfaec
- Update to 0.6.7 bugfix.
16cfaec
875dd74
* Fri Oct 16 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.6-1
875dd74
- Upstream bugfix release.
875dd74
e1be309
* Mon Oct 12 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.4-1
e1be309
- First build from the distribute codebase -- distribute-0.6.4.
e1be309
- Remove svn patch as upstream has chosen to go with an easier change for now.
e1be309
03aa0df
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6c9-5
03aa0df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
03aa0df
66503d5
* Tue Jul 14 2009 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c9-4
66503d5
- Apply SVN-1.6 versioning patch (rhbz #511021)
66503d5
6a010e7
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6c9-3
6a010e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6a010e7
aecc89b
* Fri Nov 28 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.6c9-2
aecc89b
- Rebuild for Python 2.6
aecc89b
613f26d
* Sun Nov 23 2008 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c9-1
613f26d
- Update to 0.6c9
613f26d
- Small fixes to URL, summary and description
613f26d
5a12225
* Sat Jun 21 2008 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c8-1
5a12225
- Update to 0.6c8
5a12225
- Accept small tweaks from Gareth Armstrong
5a12225
23fa8b3
* Mon Sep 24 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c7-2
23fa8b3
- Move pretty much everything back into runtime in order to avoid more
23fa8b3
  brokenness than we're trying to address with these fixes.
23fa8b3
79e1104
* Fri Sep 14 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c7-1
79e1104
- Upstream 0.6c7
79e1104
- Move some things from devel into runtime, in order to not break other
79e1104
  projects.
79e1104
6f21ed3
* Sat Aug 18 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c6-2
6f21ed3
- Make license tag conform to the new Licensing Guidelines
6f21ed3
- Move everything except pkg_resources.py into a separate -devel package
6f21ed3
  so we avoid bundling python-devel when it's not required (#251645)
6f21ed3
- Do not package tests
6f21ed3
918cf6a
* Sun Jun 10 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c6-1
918cf6a
- Upstream 0.6c6
918cf6a
- Require python-devel (#240707)
918cf6a
60dc427
* Sun Jan 28 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c5-1
60dc427
- Upstream 0.6c5 (known bugs, but the promised 0.6c6 is taking too long)
0464c24
72c279c
* Tue Dec 05 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c3-1
72c279c
- Upstream 0.6c3 (#218540, thanks to Michel Alexandre Salim for the patch)
72c279c
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