Blame SPECS/python-pip.spec

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