Blame SPECS/python-setuptools.spec

cfc5aa
%{?scl:%scl_package python-setuptools}
cfc5aa
%{!?scl:%global pkg_name %{name}}
cfc5aa
cfc5aa
%global srcname setuptools
cfc5aa
cfc5aa
Name:           %{?scl_prefix}python-setuptools
cfc5aa
Version:        0.9.8
b56321
Release:        6%{?dist}
cfc5aa
Summary:        Easily build and distribute Python packages
cfc5aa
cfc5aa
Group:          Applications/System
cfc5aa
License:        Python or ZPLv2.0
cfc5aa
URL:            http://pypi.python.org/pypi/%{srcname}
cfc5aa
Source0:        http://pypi.python.org/packages/source/d/%{srcname}/%{srcname}-%{version}.tar.gz
cfc5aa
Source1:        psfl.txt
cfc5aa
Source2:        zpl.txt
cfc5aa
# Submitted upstream
cfc5aa
# https://bitbucket.org/tarek/distribute/issue/363/skip-test_sdist_with_utf8_encoded_filename
cfc5aa
Patch0: distribute-skip-sdist_with_utf8_encoded_filename.patch
cfc5aa
# https://github.com/jaraco/setuptools/pull/2
cfc5aa
# Fixes security issue: http://bugs.python.org/issue17997#msg194950
cfc5aa
Patch1: setuptools-ssl-match_hostname-wildcard.patch
cfc5aa
# Fixes easy_install throwing SSL error when behind HTTPS proxy
cfc5aa
# https://bugzilla.redhat.com/show_bug.cgi?id=1085459
cfc5aa
Patch2: restore-proxy-support-SSL-connection.patch
b56321
# Fix easy_install in FIPS mode
b56321
# https://bugzilla.redhat.com/show_bug.cgi?id=1425141
b56321
Patch3: easy_install-fips-mode.patch
cfc5aa
cfc5aa
BuildRoot:      %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
cfc5aa
cfc5aa
BuildArch:      noarch
cfc5aa
BuildRequires:  %{?scl_prefix}python2-devel
cfc5aa
cfc5aa
# Legacy: We removed this subpackage once easy_install no longer depended on
cfc5aa
# python-devel
cfc5aa
Provides: %{?scl_prefix}python-setuptools-devel = %{version}-%{release}
cfc5aa
Obsoletes: %{?scl_prefix}python-setuptools-devel < 0.6.7-1
cfc5aa
cfc5aa
# Provide this since some people will request distribute by name
cfc5aa
Provides: %{?scl_prefix}python-distribute = %{version}-%{release}
cfc5aa
cfc5aa
%description
cfc5aa
Setuptools is a collection of enhancements to the Python distutils that allow
cfc5aa
you to more easily build and distribute Python packages, especially ones that
cfc5aa
have dependencies on other packages.
cfc5aa
cfc5aa
This package contains the runtime components of setuptools, necessary to
cfc5aa
execute the software that requires pkg_resources.py.
cfc5aa
cfc5aa
This package contains the distribute fork of setuptools.
cfc5aa
cfc5aa
%prep
cfc5aa
%setup -q -n %{srcname}-%{version}
cfc5aa
cfc5aa
%patch0 -p1 
cfc5aa
%patch1 -p1
cfc5aa
%patch2 -p1
b56321
%patch3 -p1
cfc5aa
cfc5aa
find -name '*.txt' -exec chmod -x \{\} \;
cfc5aa
find . -name '*.orig' -exec rm \{\} \;
cfc5aa
cfc5aa
for file in setuptools/command/easy_install.py ; do
cfc5aa
    sed -i '1s|^#!python|#!%{__python}|' $file
cfc5aa
done
cfc5aa
cfc5aa
%build
cfc5aa
%{?scl:scl enable %{scl} - << \EOF}
cfc5aa
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
cfc5aa
%{?scl:EOF}
cfc5aa
cfc5aa
%install
cfc5aa
rm -rf %{buildroot}
cfc5aa
cfc5aa
%{?scl:scl enable %{scl} "}
cfc5aa
%{__python} setup.py install --skip-build --root %{buildroot}
cfc5aa
%{?scl:"}
cfc5aa
cfc5aa
rm -rf %{buildroot}%{python_sitelib}/setuptools/tests
cfc5aa
cfc5aa
install -p -m 0644 %{SOURCE1} %{SOURCE2} .
cfc5aa
find %{buildroot}%{python_sitelib} -name '*.exe' | xargs rm -f
cfc5aa
chmod +x %{buildroot}%{python_sitelib}/setuptools/command/easy_install.py
cfc5aa
cfc5aa
%check
cfc5aa
%{?scl:scl enable %{scl} "}
cfc5aa
%{__python} setup.py test
cfc5aa
%{?scl:"}
cfc5aa
cfc5aa
%clean
cfc5aa
rm -rf %{buildroot}
cfc5aa
cfc5aa
cfc5aa
%files
cfc5aa
%defattr(-,root,root,-)
cfc5aa
%doc *.txt docs
cfc5aa
%{python_sitelib}/*
cfc5aa
%{_bindir}/easy_install
cfc5aa
%{_bindir}/easy_install-2.*
cfc5aa
cfc5aa
%changelog
b56321
* Mon Feb 20 2017 Tomas Orsava <torsava@redhat.com> - 0.9.8-6
b56321
- Fix easy_install in fips mode
b56321
Resolves: rhbz#1425141
b56321
088a3c
* Mon May 18 2015 Matej Stuchlik <mstuchli@redhat.com> - 0.9.8-5
088a3c
- Enhance patch restoring proxy support in SSL connections
088a3c
Resolves: rhbz#1222507
088a3c
cfc5aa
* Thu Apr 10 2014 Matej Stuchlik <mstuchli@redhat.com> - 0.9.8-4
cfc5aa
- Add patch restoring proxy (tunnel) support in SSL connections
cfc5aa
Resolves: rhbz#1085459
cfc5aa
cfc5aa
* Thu Nov 07 2013 Robert Kuska <rkuska@redhat.com> - 0.9.8-3
cfc5aa
- Bump release number to avoid conflict with el7
cfc5aa
cfc5aa
* Thu Nov 07 2013 Robert Kuska <rkuska@redhat.com> - 0.9.8-1
cfc5aa
- Update setuptools to 0.9.8
cfc5aa
- Add patches from f20
cfc5aa
cfc5aa
* Thu Aug 15 2013 Robert Kuska <rkuska@redhat.com> - 0.6.28-7
cfc5aa
- Add SSL to easy_install resolves CVE-2013-1633 and CVE-2013-2099
cfc5aa
- For more info related to these CVEs visit rhbz#994182
cfc5aa
Resolves: rhbz#996705
cfc5aa
cfc5aa
* Mon May 20 2013 Robert Kuska <rkuska@redhat.com> - 0.6.28-6
cfc5aa
- Fix rhbz #963675
cfc5aa
cfc5aa
* Tue May 07 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.6.28-5
cfc5aa
- Rebuild to generate bytecode properly after fixing rhbz#956289
cfc5aa
cfc5aa
* Mon Sep 17 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.6.28-4
cfc5aa
- Rebuilt for SCL.
cfc5aa
cfc5aa
* Fri Aug 03 2012 David Malcolm <dmalcolm@redhat.com> - 0.6.28-3
cfc5aa
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
cfc5aa
cfc5aa
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 0.6.28-2
cfc5aa
- remove rhel logic from with_python3 conditional
cfc5aa
cfc5aa
* Mon Jul 23 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.28-1
cfc5aa
- New upstream release:
cfc5aa
  - python-3.3 fixes
cfc5aa
  - honor umask when setuptools is used to install other modules
cfc5aa
cfc5aa
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.27-3
cfc5aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cfc5aa
cfc5aa
* Mon Jun 11 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.27-2
cfc5aa
- Fix easy_install.py having a python3 shebang in the python2 package
cfc5aa
cfc5aa
* Thu Jun  7 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.27-1
cfc5aa
- Upstream bugfix
cfc5aa
cfc5aa
* Tue May 15 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.24-2
cfc5aa
- Upstream bugfix
cfc5aa
cfc5aa
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.24-2
cfc5aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
cfc5aa
cfc5aa
* Mon Oct 17 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.24-1
cfc5aa
- Upstream bugfix
cfc5aa
- Compile the win32 launcher binary using mingw
cfc5aa
cfc5aa
* Sun Aug 21 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.21-1
cfc5aa
- Upstream bugfix release
cfc5aa
cfc5aa
* Thu Jul 14 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.19-1
cfc5aa
- Upstream bugfix release
cfc5aa
cfc5aa
* Tue Feb 22 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.14-7
cfc5aa
- Switch to patch that I got in to upstream
cfc5aa
cfc5aa
* Tue Feb 22 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.14-6
cfc5aa
- Fix build on python-3.2
cfc5aa
cfc5aa
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.14-5
cfc5aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
cfc5aa
cfc5aa
* Sun Aug 22 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.6.14-4
cfc5aa
- rebuild with python3.2
cfc5aa
  http://lists.fedoraproject.org/pipermail/devel/2010-August/141368.html
cfc5aa
cfc5aa
* Tue Aug 10 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.14-3
cfc5aa
- Update description to mention this is distribute
cfc5aa
cfc5aa
* Thu Jul 22 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.6.14-2
cfc5aa
- bump for building against python 2.7
cfc5aa
cfc5aa
* Thu Jul 22 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.6.14-1
cfc5aa
- update to new version
cfc5aa
- all patches are upsteam
cfc5aa
cfc5aa
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.13-7
cfc5aa
- generalize path of easy_install-2.6 and -3.1 to -2.* and -3.*
cfc5aa
cfc5aa
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.13-6
cfc5aa
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
cfc5aa
cfc5aa
* Sat Jul 3 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.13-5
cfc5aa
- Upstream patch for compatibility problem with setuptools
cfc5aa
- Minor spec cleanups
cfc5aa
- Provide python-distribute for those who see an import distribute and need
cfc5aa
  to get the proper package.
cfc5aa
cfc5aa
* Thu Jun 10 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.13-4
cfc5aa
- Fix race condition in unittests under the python-2.6.x on F-14.
cfc5aa
cfc5aa
* Thu Jun 10 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.13-3
cfc5aa
- Fix few more buildroot macros
cfc5aa
cfc5aa
* Thu Jun 10 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.13-2
cfc5aa
- Include data that's needed for running tests
cfc5aa
cfc5aa
* Thu Jun 10 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.13-1
cfc5aa
- Update to upstream 0.6.13
cfc5aa
- Minor specfile formatting fixes
cfc5aa
cfc5aa
* Thu Feb 04 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.10-3
cfc5aa
- First build with python3 support enabled.
cfc5aa
  
cfc5aa
* Thu Jan 29 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.10-2
cfc5aa
- Really disable the python3 portion
cfc5aa
cfc5aa
* Thu Jan 29 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.10-1
cfc5aa
- Update the python3 portions but disable for now.
cfc5aa
- Update to 0.6.10
cfc5aa
- Remove %%pre scriptlet as the file has a different name than the old
cfc5aa
  package's directory
cfc5aa
cfc5aa
* Tue Jan 26 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.9-4
cfc5aa
- Fix install to make /usr/bin/easy_install the py2 version
cfc5aa
- Don't need python3-tools since the library is now in the python3 package
cfc5aa
- Few other changes to cleanup style
cfc5aa
cfc5aa
* Thu Jan 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.9-2
cfc5aa
- add python3 subpackage
cfc5aa
cfc5aa
* Mon Dec 14 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.9-1
cfc5aa
- New upstream bugfix release.
cfc5aa
cfc5aa
* Sun Dec 13 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.8-2
cfc5aa
- Test rebuild
cfc5aa
cfc5aa
* Mon Nov 16 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.8-1
cfc5aa
- Update to 0.6.8.
cfc5aa
- Fix directory => file transition when updating from setuptools-0.6c9.
cfc5aa
cfc5aa
* Tue Nov 3 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.7-2
cfc5aa
- Fix duplicate inclusion of files.
cfc5aa
- Only Obsolete old versions of python-setuptools-devel
cfc5aa
cfc5aa
* Tue Nov 3 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.7-1
cfc5aa
- Move easy_install back into the main package as the needed files have been
cfc5aa
  moved from python-devel to the main python package.
cfc5aa
- Update to 0.6.7 bugfix.
cfc5aa
cfc5aa
* Fri Oct 16 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.6-1
cfc5aa
- Upstream bugfix release.
cfc5aa
cfc5aa
* Mon Oct 12 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.4-1
cfc5aa
- First build from the distribute codebase -- distribute-0.6.4.
cfc5aa
- Remove svn patch as upstream has chosen to go with an easier change for now.
cfc5aa
cfc5aa
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6c9-5
cfc5aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
cfc5aa
cfc5aa
* Tue Jul 14 2009 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6c9-4
cfc5aa
- Apply SVN-1.6 versioning patch (rhbz #511021)
cfc5aa
cfc5aa
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6c9-3
cfc5aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild