# Created by pyp2rpm-1.0.0 %global pypi_name pip %define version 1.3.1 Name: python-pip Version: %{version} Release: %mkrel 1 Group: Development/Python Summary: pip installs packages. Python packages. An easy_install replacement License: MIT URL: http://pypi.python.org/pypi/pip Source0: http://pypi.python.org/packages/source/p/pip/pip-%{version}.tar.gz BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools Requires: python-setuptools Requires: python-pkg-resources %description `pip` is a tool for installing and managing Python packages, such as those found in the `Python Package Index`_. It's a replacement for easy_install_. %prep %setup -q -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %{__python} setup.py build %install %{__python} setup.py install --skip-build --root %{buildroot} %files %doc LICENSE.txt %{_bindir}/pip %{_bindir}/pip-2.7 %{python_sitelib}/%{pypi_name} %{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info