e03eb1
%global srcname setuptools
e03eb1
e03eb1
Name:           python-setuptools
e03eb1
Version:        0.9.8
e03eb1
Release:        7%{?dist}
e03eb1
Summary:        Easily build and distribute Python packages
e03eb1
e03eb1
Group:          Applications/System
e03eb1
License:        Python or ZPLv2.0
e03eb1
URL:            http://pypi.python.org/pypi/%{srcname}
e03eb1
Source0:        http://pypi.python.org/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz
e03eb1
Source1:        psfl.txt
e03eb1
Source2:        zpl.txt
e03eb1
e03eb1
Patch0:         python-setuptools-0.9.8-use-ssl-match-hostname-from-backports.patch
e03eb1
e03eb1
# Restore proxy support in SSL connections
e03eb1
Patch1:         restore-proxy-support-SSL-connection.patch
e03eb1
e03eb1
# Fix path separator handling in build
e03eb1
# Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1388549
e03eb1
Patch2:         work-properly-with-path-separators.patch
e03eb1
e03eb1
# Fix easy_install in FIPS mode
e03eb1
Patch3: easy_install-fips-mode.patch
e03eb1
e03eb1
BuildArch:      noarch
e03eb1
BuildRequires:  python2-devel
e03eb1
BuildRequires:  python-backports-ssl_match_hostname
e03eb1
Requires:       python-backports-ssl_match_hostname
e03eb1
e03eb1
# Legacy: We removed this subpackage once easy_install no longer depended on
e03eb1
# python-devel
e03eb1
Provides: python-setuptools-devel = %{version}-%{release}
e03eb1
Obsoletes: python-setuptools-devel < 0.6.7-1
e03eb1
e03eb1
# Provide this since some people will request distribute by name
e03eb1
Provides: python-distribute = %{version}-%{release}
e03eb1
e03eb1
# Provide the python2 namespace for the package
e03eb1
Provides: python2-setuptools = %{version}-%{release}
e03eb1
e03eb1
%description
e03eb1
Setuptools is a collection of enhancements to the Python distutils that allow
e03eb1
you to more easily build and distribute Python packages, especially ones that
e03eb1
have dependencies on other packages.
e03eb1
e03eb1
This package contains the runtime components of setuptools, necessary to
e03eb1
execute the software that requires pkg_resources.py.
e03eb1
e03eb1
This package contains the distribute fork of setuptools.
e03eb1
e03eb1
%prep
e03eb1
%setup -q -n %{srcname}-%{version}
e03eb1
e03eb1
sed -i '1s|^#!python|#!%{__python}|' setuptools/command/easy_install.py
e03eb1
e03eb1
%patch0 -p1
e03eb1
%patch1 -p1
e03eb1
%patch2 -p1
e03eb1
%patch3 -p1
e03eb1
e03eb1
%build
e03eb1
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
e03eb1
e03eb1
%install
e03eb1
rm -rf %{buildroot}
e03eb1
e03eb1
%{__python} setup.py install --skip-build --root %{buildroot}
e03eb1
e03eb1
rm -rf %{buildroot}%{python_sitelib}/setuptools/tests
e03eb1
e03eb1
install -p -m 0644 %{SOURCE1} %{SOURCE2} .
e03eb1
find %{buildroot}%{python_sitelib} -name '*.exe' | xargs rm -f
e03eb1
chmod +x %{buildroot}%{python_sitelib}/setuptools/command/easy_install.py
e03eb1
e03eb1
%check
e03eb1
LANG=en_US.utf8 %{__python} setup.py test
e03eb1
e03eb1
%files
e03eb1
%doc *.txt docs
e03eb1
%{python_sitelib}/*
e03eb1
%{_bindir}/easy_install
e03eb1
%{_bindir}/easy_install-2.*
e03eb1
e03eb1
%changelog
e03eb1
* Wed Feb 15 2017 Charalampos Stratakis <cstratak@redhat.com> - 0.9.8-7
e03eb1
- Fix easy_install in fips mode
e03eb1
Resolves: rhbz#966970
e03eb1
e03eb1
* Wed Feb 01 2017 Charalampos Stratakis <cstratak@redhat.com> - 0.9.8-6
e03eb1
- Provide the python2-setuptools name
e03eb1
Resolves: rhbz#1259474
e03eb1
e03eb1
* Tue Oct 25 2016 Petr Vobornik <pvoborni@redhat.com> - 0.9.8-5
e03eb1
- Fix path separator handling in build
e03eb1
Resolves: rhbz#1388549
e03eb1
e03eb1
* Tue Jun 30 2015 Matej Stuchlik <mstuchli@redhat.com> - 0.9.8-4
e03eb1
- Restore proxy support in SSL connections
e03eb1
Resolves: rhbz#1121007
e03eb1
e03eb1
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.9.8-3
e03eb1
- Mass rebuild 2013-12-27
e03eb1
e03eb1
* Wed Sep 18 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.9.8-2
e03eb1
- Always use match_hostname function from backports-ssl_match_hostname.
e03eb1
Resolves: rhbz#999863
e03eb1
e03eb1
* Mon Jul 29 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.9.8-1
e03eb1
- Update to setuptools 0.9.8.
e03eb1
e03eb1
* Wed Jul 17 2013 Matej Stuchlik <mstuchli@redhat.com> - 0.9.5-1
e03eb1
- Updated to 0.9.5, fixing rhbz#963260
e03eb1
e03eb1
* Mon Jul 15 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.9.1-1
e03eb1
- Update to setuptools 0.9.1.
e03eb1
e03eb1
* Thu Jul 11 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.8-1
e03eb1
- Switch source from distribute to setuptools, that are now uptodate and supported.
e03eb1
- Update to setuptools 0.8.0.
e03eb1
- Specfile cleanup (unnecessary Python 3 logic, old RPM stuff, bogus changelog dates)
e03eb1
e03eb1
* Thu Apr 11 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.36-1
e03eb1
- Update to upstream 0.6.36.  Many bugfixes
e03eb1
e03eb1
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.28-4
e03eb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e03eb1
e03eb1
* Fri Aug 03 2012 David Malcolm <dmalcolm@redhat.com> - 0.6.28-3
e03eb1
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
e03eb1
e03eb1
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 0.6.28-2
e03eb1
- remove rhel logic from with_python3 conditional
e03eb1
e03eb1
* Mon Jul 23 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.28-1
e03eb1
- New upstream release:
e03eb1
  - python-3.3 fixes
e03eb1
  - honor umask when setuptools is used to install other modules
e03eb1
e03eb1
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.27-3
e03eb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e03eb1
e03eb1
* Mon Jun 11 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.27-2
e03eb1
- Fix easy_install.py having a python3 shebang in the python2 package
e03eb1
e03eb1
* Thu Jun  7 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.27-1
e03eb1
- Upstream bugfix
e03eb1
e03eb1
* Tue May 15 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.24-2
e03eb1
- Upstream bugfix
e03eb1
e03eb1
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.24-2
e03eb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e03eb1
e03eb1
* Mon Oct 17 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.24-1
e03eb1
- Upstream bugfix
e03eb1
- Compile the win32 launcher binary using mingw
e03eb1
e03eb1
* Sun Aug 21 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.21-1
e03eb1
- Upstream bugfix release
e03eb1
e03eb1
* Thu Jul 14 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.19-1
e03eb1
- Upstream bugfix release
e03eb1
e03eb1
* Tue Feb 22 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.14-7
e03eb1
- Switch to patch that I got in to upstream
e03eb1
e03eb1
* Tue Feb 22 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.14-6
e03eb1
- Fix build on python-3.2
e03eb1
e03eb1
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.14-5
e03eb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e03eb1
e03eb1
* Sun Aug 22 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.6.14-4
e03eb1
- rebuild with python3.2
e03eb1
  http://lists.fedoraproject.org/pipermail/devel/2010-August/141368.html
e03eb1
e03eb1
* Tue Aug 10 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.14-3
e03eb1
- Update description to mention this is distribute
e03eb1
e03eb1
* Thu Jul 22 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.6.14-2
e03eb1
- bump for building against python 2.7
e03eb1
e03eb1
* Thu Jul 22 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.6.14-1
e03eb1
- update to new version
e03eb1
- all patches are upsteam
e03eb1
e03eb1
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.13-7
e03eb1
- generalize path of easy_install-2.6 and -3.1 to -2.* and -3.*
e03eb1
e03eb1
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.13-6
e03eb1
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
e03eb1
e03eb1
* Sat Jul 3 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.13-5
e03eb1
- Upstream patch for compatibility problem with setuptools
e03eb1
- Minor spec cleanups
e03eb1
- Provide python-distribute for those who see an import distribute and need
e03eb1
  to get the proper package.
e03eb1
e03eb1
* Thu Jun 10 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.13-4
e03eb1
- Fix race condition in unittests under the python-2.6.x on F-14.
e03eb1
e03eb1
* Thu Jun 10 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.13-3
e03eb1
- Fix few more buildroot macros
e03eb1
e03eb1
* Thu Jun 10 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.13-2
e03eb1
- Include data that's needed for running tests
e03eb1
e03eb1
* Thu Jun 10 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.13-1
e03eb1
- Update to upstream 0.6.13
e03eb1
- Minor specfile formatting fixes
e03eb1
e03eb1
* Thu Feb 04 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.10-3
e03eb1
- First build with python3 support enabled.
e03eb1
  
e03eb1
* Fri Jan 29 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.10-2
e03eb1
- Really disable the python3 portion
e03eb1
e03eb1
* Fri Jan 29 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.10-1
e03eb1
- Update the python3 portions but disable for now.
e03eb1
- Update to 0.6.10
e03eb1
- Remove %%pre scriptlet as the file has a different name than the old
e03eb1
  package's directory
e03eb1
e03eb1
* Tue Jan 26 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.9-4
e03eb1
- Fix install to make /usr/bin/easy_install the py2 version
e03eb1
- Don't need python3-tools since the library is now in the python3 package
e03eb1
- Few other changes to cleanup style
e03eb1
e03eb1
* Fri Jan 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.9-2
e03eb1
- add python3 subpackage
e03eb1
e03eb1
* Mon Dec 14 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.9-1
e03eb1
- New upstream bugfix release.
e03eb1
e03eb1
* Sun Dec 13 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.8-2
e03eb1
- Test rebuild
e03eb1
e03eb1
* Mon Nov 16 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.8-1
e03eb1
- Update to 0.6.8.
e03eb1
- Fix directory => file transition when updating from setuptools-0.6c9.
e03eb1
e03eb1
* Tue Nov 3 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.7-2
e03eb1
- Fix duplicate inclusion of files.
e03eb1
- Only Obsolete old versions of python-setuptools-devel
e03eb1
e03eb1
* Tue Nov 3 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.7-1
e03eb1
- Move easy_install back into the main package as the needed files have been
e03eb1
  moved from python-devel to the main python package.
e03eb1
- Update to 0.6.7 bugfix.
e03eb1
e03eb1
* Fri Oct 16 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.6-1
e03eb1
- Upstream bugfix release.
e03eb1
e03eb1
* Mon Oct 12 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.4-1
e03eb1
- First build from the distribute codebase -- distribute-0.6.4.
e03eb1
- Remove svn patch as upstream has chosen to go with an easier change for now.
e03eb1
e03eb1
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6c9-5
e03eb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e03eb1
e03eb1
* Tue Jul 14 2009 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c9-4
e03eb1
- Apply SVN-1.6 versioning patch (rhbz #511021)
e03eb1
e03eb1
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6c9-3
e03eb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild