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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 617149 - (show annotations) (download)
Sun Apr 20 16:41:29 2014 UTC (10 years ago) by philippem
File size: 1953 byte(s)
update to 1.5.4
1 %define pypi_name pip
2
3 Name: python-pip
4 Version: 1.5.4
5 Release: %mkrel 1
6 Group: Development/Python
7 Summary: pip installs packages. Python packages. An easy_install replacement
8
9 License: MIT
10 URL: http://pypi.python.org/pypi/pip
11 Source0: http://pypi.python.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
12 Patch0: pip-1.5rc1-allow-stripping-prefix-from-wheel-RECORD-files.patch
13
14 BuildArch: noarch
15
16 BuildRequires: pkgconfig(python)
17 BuildRequires: python-setuptools
18
19 Requires: python-setuptools
20 Requires: python-pkg-resources
21
22 %description
23 `pip` is a tool for installing and managing Python packages, such as
24 those found in the `Python Package Index`_. It's a replacement for
25 easy_install_.
26
27 %package -n python3-pip
28 Summary: A tool for installing and managing Python3 packages
29 Group: Development/Python
30
31 BuildRequires: pkgconfig(python3)
32 BuildRequires: python3-setuptools
33 Requires: python3-setuptools
34
35 %description -n python3-pip
36 Pip is a replacement for `easy_install
37 <http://peak.telecommunity.com/DevCenter/EasyInstall>`_. It uses mostly the
38 same techniques for finding packages, so packages that were made
39 easy_installable should be pip-installable as well.
40
41 %prep
42 %setup -q -n %{pypi_name}-%{version}
43 # Remove bundled egg-info
44 rm -rf %{pypi_name}.egg-info
45
46 %apply_patches
47 %{__sed} -i '1d' pip/__init__.py
48
49 cp -a . %{py3dir}
50
51 %build
52 %{__python} setup.py build
53 pushd %{py3dir}
54 %{__python3} setup.py build
55 popd
56
57 %install
58 pushd %{py3dir}
59 %{__python3} setup.py install --skip-build --root %{buildroot}
60 popd
61 %{__python} setup.py install -O1 --skip-build --root %{buildroot}
62
63
64 %files
65 %doc LICENSE.txt PKG-INFO docs
66 %attr(755,root,root) %{_bindir}/pip
67 %attr(755,root,root) %{_bindir}/pip2*
68 %{python_sitelib}/pip*
69
70 %files -n python3-pip
71 %doc LICENSE.txt PKG-INFO docs
72 %attr(755,root,root) %{_bindir}/pip3*
73 %{python3_sitelib}/pip*
74

  ViewVC Help
Powered by ViewVC 1.1.30