Blame SPECS/python-pip.spec

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