Blame SPECS/python-pip.spec

6ceca7
%{?scl:%scl_package python-setuptools}
6ceca7
%{!?scl:%global pkg_name %{name}}
6ceca7
6ceca7
%if (! 0%{?rhel}) || 0%{?rhel} > 6
6ceca7
%global build_wheel 1
6ceca7
%endif
6ceca7
%if 0%{?rhel} && 0%{?rhel} < 6
6ceca7
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
6ceca7
%endif
6ceca7
6ceca7
%global srcname pip
6ceca7
%if 0%{?build_wheel}
6ceca7
%global python3_wheelname %{srcname}-%{version}-py2.py3-none-any.whl
6ceca7
%endif
6ceca7
6ceca7
Name:           %{?scl_prefix}python-%{srcname}
6ceca7
Version:        9.0.1
6ceca7
Release:        2%{?dist}
6ceca7
Summary:        A tool for installing and managing Python packages
6ceca7
6ceca7
Group:          Development/Libraries
6ceca7
License:        MIT
6ceca7
URL:            http://www.pip-installer.org
6ceca7
Source0:        https://files.pythonhosted.org/packages/source/p/pip/%{srcname}-%{version}.tar.gz
6ceca7
Patch0:         allow-stripping-given-prefix-from-wheel-RECORD-files.patch
6ceca7
6ceca7
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
6ceca7
6ceca7
BuildArch:      noarch
6ceca7
BuildRequires:  %{?scl_prefix}python-devel
6ceca7
BuildRequires:  %{?scl_prefix}python-setuptools
6ceca7
%if 0%{?build_wheel}
6ceca7
BuildRequires:  %{?scl_prefix}python-pip
6ceca7
BuildRequires:  %{?scl_prefix}python-wheel
6ceca7
%endif
6ceca7
Requires:       %{?scl_prefix}python-setuptools
6ceca7
6ceca7
%description
6ceca7
Pip is a replacement for `easy_install
6ceca7
<http://peak.telecommunity.com/DevCenter/EasyInstall>`_.  It uses mostly the
6ceca7
same techniques for finding packages, so packages that were made
6ceca7
easy_installable should be pip-installable as well.
6ceca7
6ceca7
6ceca7
%prep
6ceca7
%{?scl:scl enable %{scl} - << \EOF}
6ceca7
%setup -q -n %{srcname}-%{version}
6ceca7
6ceca7
%patch0 -p1
6ceca7
6ceca7
%{__sed} -i '1d' pip/__init__.py
6ceca7
%{?scl:EOF}
6ceca7
6ceca7
6ceca7
%build
6ceca7
%{?scl:scl enable %{scl} - << \EOF}
6ceca7
%if 0%{?build_wheel}
6ceca7
%{__python3} setup.py bdist_wheel
6ceca7
%else
6ceca7
%{__python3} setup.py build
6ceca7
%endif
6ceca7
%{?scl:EOF}
6ceca7
6ceca7
6ceca7
%install
6ceca7
%{__rm} -rf %{buildroot}
6ceca7
6ceca7
%{?scl:scl enable %{scl} - << \EOF}
6ceca7
%if 0%{?build_wheel}
6ceca7
pip3 install -I dist/%{python3_wheelname} --root %{buildroot} --strip-file-prefix %{buildroot}
6ceca7
%else
6ceca7
%{__python3} setup.py install --skip-build --root %{buildroot}
6ceca7
%endif
6ceca7
%{?scl:EOF}
6ceca7
6ceca7
6ceca7
%clean
6ceca7
%{__rm} -rf %{buildroot}
6ceca7
6ceca7
# unfortunately, pip's test suite requires virtualenv >= 1.6 which isn't in
6ceca7
# fedora yet. Once it is, check can be implemented
6ceca7
6ceca7
%files
6ceca7
%defattr(-,root,root,-)
6ceca7
%doc LICENSE.txt README.rst docs
6ceca7
%attr(755,root,root) %{_bindir}/pip
6ceca7
%attr(755,root,root) %{_bindir}/pip3*
6ceca7
%{python3_sitelib}/pip*
6ceca7
6ceca7
%changelog
6ceca7
* Wed Jun 14 2017 Charalampos Stratakis <cstratak@redhat.com> - 9.0.1-2
6ceca7
- Rebuild as wheel
6ceca7
6ceca7
* Wed Jun 14 2017 Charalampos Stratakis <cstratak@redhat.com> - 9.0.1-1
6ceca7
- Update to 9.0.1 for rh-python36
6ceca7
6ceca7
* Sat Feb 13 2016 Robert Kuska <rkuska@redhat.com> - 7.1.0-2
6ceca7
- Rebuilt with rewheel
6ceca7
6ceca7
* Sat Feb 13 2016 Robert Kuska <rkuska@redhat.com> - 7.1.0-1
6ceca7
- Rebuilt for rh-python35
6ceca7
6ceca7
* Mon Jan 19 2015 Matej Stuchlik <mstuchli@redhat.com> - 1.5.6-4
6ceca7
- Rebuild as wheel
6ceca7
6ceca7
* Tue Nov 18 2014 Matej Stuchlik <mstuchli@redhat.com> - 1.5.6-3
6ceca7
- Added patch for local dos with predictable temp dictionary names
6ceca7
  (http://seclists.org/oss-sec/2014/q4/655)
6ceca7
6ceca7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-2
6ceca7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
6ceca7
6ceca7
* Sun May 25 2014 Matej Stuchlik <mstuchli@redhat.com> - 1.5.6-1
6ceca7
- Update to 1.5.6
6ceca7
6ceca7
* Fri Apr 25 2014 Matej Stuchlik <mstuchli@redhat.com> - 1.5.4-4
6ceca7
- Rebuild as wheel for Python 3.4
6ceca7
6ceca7
* Thu Apr 24 2014 Matej Stuchlik <mstuchli@redhat.com> - 1.5.4-3
6ceca7
- Disable build_wheel
6ceca7
6ceca7
* Thu Apr 24 2014 Matej Stuchlik <mstuchli@redhat.com> - 1.5.4-2
6ceca7
- Rebuild as wheel for Python 3.4
6ceca7
6ceca7
* Mon Apr 07 2014 Matej Stuchlik <mstuchli@redhat.com> - 1.5.4-1
6ceca7
- Updated to 1.5.4
6ceca7
6ceca7
* Mon Oct 14 2013 Tim Flink <tflink@fedoraproject.org> - 1.4.1-1
6ceca7
- Removed patch for CVE 2013-2099 as it has been included in the upstream 1.4.1 release
6ceca7
- Updated version to 1.4.1
6ceca7
6ceca7
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-5
6ceca7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
6ceca7
6ceca7
* Tue Jul 16 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 1.3.1-4
6ceca7
- Fix for CVE 2013-2099
6ceca7
6ceca7
* Thu May 23 2013 Tim Flink <tflink@fedoraproject.org> - 1.3.1-3
6ceca7
- undo python2 executable rename to python-pip. fixes #958377
6ceca7
- fix summary to match upstream
6ceca7
6ceca7
* Mon May 06 2013 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.3.1-2
6ceca7
- Fix main package Summary, it's for Python 2, not 3 (#877401)
6ceca7
6ceca7
* Fri Apr 26 2013 Jon Ciesla <limburgher@gmail.com> - 1.3.1-1
6ceca7
- Update to 1.3.1, fix for CVE-2013-1888.
6ceca7
6ceca7
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-3
6ceca7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6ceca7
6ceca7
* Tue Oct 09 2012 Tim Flink <tflink@fedoraproject.org> - 1.2.1-2
6ceca7
- Fixing files for python3-pip
6ceca7
6ceca7
* Thu Oct 04 2012 Tim Flink <tflink@fedoraproject.org> - 1.2.1-1
6ceca7
- Update to upstream 1.2.1
6ceca7
- Change binary from pip-python to python-pip (RHBZ#855495)
6ceca7
- Add alias from python-pip to pip-python, to be removed at a later date
6ceca7
6ceca7
* Tue May 15 2012 Tim Flink <tflink@fedoraproject.org> - 1.1.0-1
6ceca7
- Update to upstream 1.1.0
6ceca7
6ceca7
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
6ceca7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6ceca7
6ceca7
* Sat Oct 22 2011 Tim Flink <tflink@fedoraproject.org> - 1.0.2-1
6ceca7
- update to 1.0.2 and added python3 subpackage
6ceca7
6ceca7
* Wed Jun 22 2011 Tim Flink <tflink@fedoraproject.org> - 0.8.3-1
6ceca7
- update to 0.8.3 and project home page
6ceca7
6ceca7
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.2-2
6ceca7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
6ceca7
6ceca7
* Mon Dec 20 2010 Luke Macken <lmacken@redhat.com> - 0.8.2-1
6ceca7
- update to 0.8.2 of pip
6ceca7
* Mon Aug 30 2010 Peter Halliday <phalliday@excelsiorsystems.net> - 0.8-1
6ceca7
- update to 0.8 of pip
6ceca7
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.7.2-5
6ceca7
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
6ceca7
6ceca7
* Wed Jul 7 2010 Peter Halliday <phalliday@excelsiorsystems.net> - 0.7.2-1
6ceca7
- update to 0.7.2 of pip
6ceca7
* Sun May 23 2010 Peter Halliday <phalliday@excelsiorsystems.net> - 0.7.1-1
6ceca7
- update to 0.7.1 of pip
6ceca7
* Fri Jan 1 2010 Peter Halliday <phalliday@excelsiorsystems.net> - 0.6.1.4
6ceca7
- fix dependency issue
6ceca7
* Fri Dec 18 2009 Peter Halliday <phalliday@excelsiorsystems.net> - 0.6.1-2
6ceca7
- fix spec file 
6ceca7
* Thu Dec 17 2009 Peter Halliday <phalliday@excelsiorsystems.net> - 0.6.1-1
6ceca7
- upgrade to 0.6.1 of pip
6ceca7
* Mon Aug 31 2009 Peter Halliday <phalliday@excelsiorsystems.net> - 0.4-1
6ceca7
- Initial package
6ceca7