# Created by pyp2rpm-1.0.0 %global pypi_name pip %define version 1.2.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: TODO: Source0: http://pypi.python.org/packages/source/p/pip/pip-%{version}.tar.gz BuildArch: noarch BuildRequires: python-devel %description pip === `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_. :: $ pip install simplejson [... progress report ...] Successfully installed simplejson .. _`Python Package Index`: http://pypi.python.org/pypi .. _easy_install: http://peak.telecommunity.com/DevCenter/EasyInstall Upgrading ... %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