Peter Halliday fc2018e
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Peter Halliday fc2018e
Peter Halliday fc2018e
%global srcname pip
Peter Halliday fc2018e
Peter Halliday fc2018e
Name:           python-%{srcname}
Peter Halliday 3155cdf
Version:        0.8
Peter Halliday 3155cdf
Release:        1%{?dist}
Peter Halliday fc2018e
Summary:        Pip installs packages.  Python packages.  An easy_install replacement
Peter Halliday fc2018e
Peter Halliday fc2018e
Group:          Development/Libraries
Peter Halliday fc2018e
License:        MIT
Peter Halliday fc2018e
URL:            http://pip.openplans.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
Peter Halliday fc2018e
BuildRequires:  python-setuptools-devel
Peter Halliday 36e99b1
Requires:       python-setuptools
Peter Halliday fc2018e
Peter Halliday fc2018e
%description
Peter Halliday fc2018e
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
Peter Halliday fc2018e
pip is meant to improve on easy_install.bulletin boards, etc.).
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
Peter Halliday fc2018e
%build
Peter Halliday fc2018e
%{__python} setup.py build
Peter Halliday fc2018e
Peter Halliday fc2018e
%install
Peter Halliday fc2018e
%{__rm} -rf %{buildroot}
Peter Halliday fc2018e
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
Peter Halliday 3155cdf
%{__rm} -rf %{buildroot}%{_bindir}/pip-*
Peter Halliday 3155cdf
mv %{buildroot}%{_bindir}/pip %{buildroot}%{_bindir}/pip-python
Peter Halliday fc2018e
Peter Halliday fc2018e
%clean
Peter Halliday fc2018e
%{__rm} -rf %{buildroot}
Peter Halliday fc2018e
Peter Halliday fc2018e
%files
Peter Halliday fc2018e
%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
Peter Halliday fc2018e
%changelog
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