/[packages]/cauldron/python-pip/current/SPECS/python-pip.spec
ViewVC logotype

Diff of /cauldron/python-pip/current/SPECS/python-pip.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 554518 by philippem, Sun Dec 1 12:57:16 2013 UTC revision 617149 by philippem, Sun Apr 20 16:41:29 2014 UTC
# Line 1  Line 1 
1  # Created by pyp2rpm-1.0.0  %define pypi_name pip
 %global pypi_name pip  
 %define version 1.4.1  
2    
3  Name:           python-pip  Name:           python-pip
4  Version:        %{version}  Version:        1.5.4
5  Release:        %mkrel 4  Release:        %mkrel 1
6  Group:          Development/Python  Group:          Development/Python
7  Summary:        pip installs packages. Python packages. An easy_install replacement  Summary:        pip installs packages. Python packages. An easy_install replacement
8    
9  License:        MIT  License:        MIT
10  URL:            http://pypi.python.org/pypi/pip  URL:            http://pypi.python.org/pypi/pip
11  Source0:        http://pypi.python.org/packages/source/p/pip/pip-%{version}.tar.gz  Source0:        http://pypi.python.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
12  Patch0:         pip-1.4.1-mga-change-match_hostname-to-follow-RFC-6125.patch  Patch0:         pip-1.5rc1-allow-stripping-prefix-from-wheel-RECORD-files.patch
13    
14  BuildArch:      noarch  BuildArch:      noarch
15    
# Line 59  popd Line 57  popd
57  %install  %install
58  pushd %{py3dir}  pushd %{py3dir}
59  %{__python3} setup.py install --skip-build --root %{buildroot}  %{__python3} setup.py install --skip-build --root %{buildroot}
   
 # Change the name of the python3 pip executable in order to not conflict with  
 # the python2 executable  
 mv %{buildroot}%{_bindir}/pip %{buildroot}%{_bindir}/python3-pip  
   
 # The install process creates both pip and pip-<python_abiversion> that seem to  
 # be the same. Remove the extra script  
 pushd %{buildroot}%{_bindir}  
 %{__rm} -rf pip-3*  
   
60  popd  popd
61  %{__python} setup.py install -O1 --skip-build --root %{buildroot}  %{__python} setup.py install -O1 --skip-build --root %{buildroot}
62    
 # The install process creates both pip and pip-<python_abiversion> that seem to  
 # be the same. Since removing pip-* also clobbers pip-python3, just remove pip-2*  
 pushd %{buildroot}%{_bindir}  
 %{__rm} -rf pip-2*  
   
63    
64  %files  %files
65  %doc LICENSE.txt PKG-INFO docs  %doc LICENSE.txt PKG-INFO docs
66  %attr(755,root,root) %{_bindir}/pip  %attr(755,root,root) %{_bindir}/pip
67    %attr(755,root,root) %{_bindir}/pip2*
68  %{python_sitelib}/pip*  %{python_sitelib}/pip*
69    
70  %files -n python3-pip  %files -n python3-pip
71  %doc LICENSE.txt PKG-INFO docs  %doc LICENSE.txt PKG-INFO docs
72  %attr(755,root,root) %{_bindir}/python3-pip  %attr(755,root,root) %{_bindir}/pip3*
73  %{python3_sitelib}/pip*  %{python3_sitelib}/pip*
74    

Legend:
Removed from v.554518  
changed lines
  Added in v.617149

  ViewVC Help
Powered by ViewVC 1.1.30