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