|
|
aded0dc |
%if (! 0%{?rhel}) || 0%{?rhel} > 6
|
|
|
aded0dc |
%global with_python3 1
|
|
|
aded0dc |
%endif
|
|
|
aded0dc |
%if 0%{?rhel} && 0%{?rhel} < 6
|
|
|
aded0dc |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
aded0dc |
%endif
|
|
Peter Halliday |
fc2018e |
|
|
Peter Halliday |
fc2018e |
%global srcname pip
|
|
Peter Halliday |
fc2018e |
|
|
Peter Halliday |
fc2018e |
Name: python-%{srcname}
|
|
|
aded0dc |
Version: 1.0.2
|
|
|
3c8c959 |
Release: 2%{?dist}
|
|
|
aded0dc |
Summary: Pip installs packages. Python3 packages. An easy_install replacement
|
|
Peter Halliday |
fc2018e |
|
|
Peter Halliday |
fc2018e |
Group: Development/Libraries
|
|
Peter Halliday |
fc2018e |
License: MIT
|
|
|
74924e0 |
URL: http://www.pip-installer.org
|
|
Peter Halliday |
fc2018e |
Source0: http://pypi.python.org/packages/source/p/pip/%{srcname}-%{version}.tar.gz
|
|
Peter Halliday |
fc2018e |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Peter Halliday |
fc2018e |
|
|
Peter Halliday |
fc2018e |
BuildArch: noarch
|
|
Peter Halliday |
fc2018e |
BuildRequires: python-devel
|
|
|
aded0dc |
BuildRequires: python-setuptools
|
|
Peter Halliday |
36e99b1 |
Requires: python-setuptools
|
|
Peter Halliday |
fc2018e |
|
|
Peter Halliday |
fc2018e |
%description
|
|
Peter Halliday |
fc2018e |
Pip is a replacement for `easy_install
|
|
Peter Halliday |
fc2018e |
<http://peak.telecommunity.com/DevCenter/EasyInstall>`_. It uses mostly the
|
|
Peter Halliday |
fc2018e |
same techniques for finding packages, so packages that were made
|
|
Peter Halliday |
fc2018e |
easy_installable should be pip-installable as well.
|
|
Peter Halliday |
fc2018e |
|
|
|
aded0dc |
|
|
|
aded0dc |
%if 0%{?with_python3}
|
|
|
aded0dc |
%package -n python3-pip
|
|
|
aded0dc |
Summary: Pip installs packages. Python3 packages. An easy_install replacement
|
|
|
aded0dc |
Group: Development/Libraries
|
|
|
aded0dc |
|
|
|
aded0dc |
BuildRequires: python3-devel
|
|
|
aded0dc |
BuildRequires: python3-setuptools
|
|
|
aded0dc |
Requires: python3-setuptools
|
|
|
aded0dc |
|
|
|
aded0dc |
%description -n python3-pip
|
|
|
aded0dc |
Pip is a replacement for `easy_install
|
|
|
aded0dc |
<http://peak.telecommunity.com/DevCenter/EasyInstall>`_. It uses mostly the
|
|
|
aded0dc |
same techniques for finding packages, so packages that were made
|
|
|
aded0dc |
easy_installable should be pip-installable as well.
|
|
|
aded0dc |
%endif # with_python3
|
|
Peter Halliday |
fc2018e |
|
|
Peter Halliday |
fc2018e |
%prep
|
|
Peter Halliday |
fc2018e |
%setup -q -n %{srcname}-%{version}
|
|
Peter Halliday |
36e99b1 |
%{__sed} -i '1d' pip/__init__.py
|
|
Peter Halliday |
fc2018e |
|
|
|
aded0dc |
%if 0%{?with_python3}
|
|
|
aded0dc |
cp -a . %{py3dir}
|
|
|
aded0dc |
%endif # with_python3
|
|
|
aded0dc |
|
|
Peter Halliday |
fc2018e |
%build
|
|
Peter Halliday |
fc2018e |
%{__python} setup.py build
|
|
Peter Halliday |
fc2018e |
|
|
|
aded0dc |
%if 0%{?with_python3}
|
|
|
aded0dc |
pushd %{py3dir}
|
|
|
aded0dc |
%{__python3} setup.py build
|
|
|
aded0dc |
popd
|
|
|
aded0dc |
%endif # with_python3
|
|
|
aded0dc |
|
|
Peter Halliday |
fc2018e |
%install
|
|
Peter Halliday |
fc2018e |
%{__rm} -rf %{buildroot}
|
|
|
aded0dc |
|
|
|
aded0dc |
%if 0%{?with_python3}
|
|
|
aded0dc |
pushd %{py3dir}
|
|
|
aded0dc |
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
aded0dc |
|
|
|
aded0dc |
# Change the name of the pip executable in order to not conflict with perl-pip
|
|
|
aded0dc |
# https://bugzilla.redhat.com/show_bug.cgi?id=616399
|
|
|
aded0dc |
mv %{buildroot}%{_bindir}/pip %{buildroot}%{_bindir}/pip-python3
|
|
|
aded0dc |
|
|
|
aded0dc |
# The install process creates both pip and pip-<python_abiversion> that seem to
|
|
|
aded0dc |
# be the same. Remove the extra script
|
|
|
aded0dc |
rm %{buildroot}%{_bindir}/pip-3*
|
|
|
aded0dc |
|
|
|
aded0dc |
popd
|
|
|
aded0dc |
%endif # with_python3
|
|
|
aded0dc |
|
|
Peter Halliday |
fc2018e |
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
aded0dc |
|
|
|
aded0dc |
# The install process creates both pip and pip-<python_abiversion> that seem to
|
|
|
aded0dc |
# be the same. Since removing pip-* also clobbers pip-python3, just remove pip-2*
|
|
|
aded0dc |
%{__rm} -rf %{buildroot}%{_bindir}/pip-2*
|
|
|
74924e0 |
|
|
|
74924e0 |
# Change the name of the pip executable in order to not conflict with perl-pip
|
|
|
74924e0 |
# https://bugzilla.redhat.com/show_bug.cgi?id=616399
|
|
Peter Halliday |
3155cdf |
mv %{buildroot}%{_bindir}/pip %{buildroot}%{_bindir}/pip-python
|
|
Peter Halliday |
fc2018e |
|
|
|
aded0dc |
|
|
Peter Halliday |
fc2018e |
%clean
|
|
Peter Halliday |
fc2018e |
%{__rm} -rf %{buildroot}
|
|
Peter Halliday |
fc2018e |
|
|
|
aded0dc |
# unfortunately, pip's test suite requires virtualenv >= 1.6 which isn't in
|
|
|
aded0dc |
# fedora yet. Once it is, check can be implemented
|
|
|
aded0dc |
|
|
Peter Halliday |
fc2018e |
%files
|
|
|
aded0dc |
%defattr(-,root,root,-)
|
|
Peter Halliday |
fc2018e |
%doc PKG-INFO docs
|
|
Peter Halliday |
3155cdf |
%attr(755,root,root) %{_bindir}/pip-python
|
|
Peter Halliday |
fc2018e |
%{python_sitelib}/pip*
|
|
Peter Halliday |
fc2018e |
|
|
|
aded0dc |
%if 0%{?with_python3}
|
|
|
aded0dc |
%files -n python3-pip
|
|
|
aded0dc |
%defattr(-,root,root,-)
|
|
|
aded0dc |
%doc PKG-INFO docs
|
|
|
aded0dc |
%attr(755,root,root) %{_bindir}/pip-python3
|
|
|
aded0dc |
%{python3_sitelib}/pip*
|
|
|
aded0dc |
%endif # with_python3
|
|
|
aded0dc |
|
|
Peter Halliday |
fc2018e |
%changelog
|
|
|
3c8c959 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
|
|
|
3c8c959 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
3c8c959 |
|
|
|
aded0dc |
* Sat Oct 22 2011 Tim Flink <tflink@fedoraproject.org> - 1.0.2-1
|
|
|
aded0dc |
- update to 1.0.2 and added python3 subpackage
|
|
|
aded0dc |
|
|
|
74924e0 |
* Wed Jun 22 2011 Tim Flink <tflink@fedoraproject.org> - 0.8.3-1
|
|
|
74924e0 |
- update to 0.8.3 and project home page
|
|
|
74924e0 |
|
|
|
8709b73 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.2-2
|
|
|
8709b73 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
8709b73 |
|
|
Luke Macken |
9557dd6 |
* Mon Dec 20 2010 Luke Macken <lmacken@redhat.com> - 0.8.2-1
|
|
Luke Macken |
9557dd6 |
- update to 0.8.2 of pip
|
|
Peter Halliday |
3155cdf |
* Mon Aug 30 2010 Peter Halliday <phalliday@excelsiorsystems.net> - 0.8-1
|
|
Peter Halliday |
3155cdf |
- update to 0.8 of pip
|
|
|
089f2c5 |
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.7.2-5
|
|
|
089f2c5 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
089f2c5 |
|
|
Peter Halliday |
6b45ab4 |
* Wed Jul 7 2010 Peter Halliday <phalliday@excelsiorsystems.net> - 0.7.2-1
|
|
Peter Halliday |
6b45ab4 |
- update to 0.7.2 of pip
|
|
Peter Halliday |
36e99b1 |
* Sun May 23 2010 Peter Halliday <phalliday@excelsiorsystems.net> - 0.7.1-1
|
|
Peter Halliday |
6b45ab4 |
- update to 0.7.1 of pip
|
|
Peter Halliday |
36e99b1 |
* Fri Jan 1 2010 Peter Halliday <phalliday@excelsiorsystems.net> - 0.6.1.4
|
|
Peter Halliday |
97657b9 |
- fix dependency issue
|
|
Peter Halliday |
365f19e |
* Tue Dec 18 2009 Peter Halliday <phalliday@excelsiorsystems.net> - 0.6.1-2
|
|
Peter Halliday |
365f19e |
- fix spec file
|
|
Peter Halliday |
365f19e |
* Mon Dec 17 2009 Peter Halliday <phalliday@excelsiorsystems.net> - 0.6.1-1
|
|
Peter Halliday |
365f19e |
- upgrade to 0.6.1 of pip
|
|
Peter Halliday |
fc2018e |
* Mon Aug 31 2009 Peter Halliday <phalliday@excelsiorsystems.net> - 0.4-1
|
|
Peter Halliday |
fc2018e |
- Initial package
|
|
Peter Halliday |
365f19e |
|