]>
Commit | Line | Data |
---|---|---|
74c7b14d PZ |
1 | Summary: Tool to create isolated Python environments |
2 | Name: python-virtualenv | |
e17b322a AM |
3 | Version: 1.7.2 |
4 | Release: 1 | |
74c7b14d PZ |
5 | License: MIT |
6 | Group: Development/Languages | |
7 | Source0: http://pypi.python.org/packages/source/v/virtualenv/virtualenv-%{version}.tar.gz | |
e17b322a | 8 | # Source0-md5: b5d63b05373a4344ae099a68875aae78 |
4577d65b JR |
9 | Source1: https://raw.github.com/pypa/virtualenv/%{version}/bin/rebuild-script.py |
10 | # Source1-md5: b9748dcf1c81dc85a8368dcb7c680494 | |
11 | Source2: unpack-support.py | |
74c7b14d | 12 | URL: http://pypi.python.org/pypi/virtualenv |
4577d65b | 13 | Patch0: virtualenv-pld.patch |
91a4a405 | 14 | BuildRequires: python |
91a4a405 | 15 | BuildRequires: python-modules |
16 | BuildRequires: rpm-pythonprov | |
74c7b14d | 17 | Requires: python-setuptools |
4577d65b JR |
18 | # Blame binary-only python packages authors |
19 | # virtualenv wants *.py | |
20 | Requires: python-devel-src | |
74c7b14d PZ |
21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | virtualenv is a tool to create isolated Python environments. | |
26 | virtualenv is a successor to workingenv, and an extension of | |
27 | virtual-python. It is written by Ian Bicking, and sponsored by the | |
28 | Open Planning Project. It is licensed under an MIT-style permissive | |
29 | license. | |
30 | ||
31 | %prep | |
32 | %setup -q -n virtualenv-%{version} | |
4577d65b JR |
33 | %{__install} -d bin |
34 | %{__install} -m 755 -p %{SOURCE1} bin/ | |
35 | %{__install} -m 755 -p %{SOURCE2} bin/ | |
36 | ||
37 | python ./bin/unpack-support.py | |
38 | ||
39 | %patch0 -p1 | |
40 | ||
41 | python ./bin/rebuild-script.py | |
74c7b14d PZ |
42 | |
43 | %build | |
44 | %{__python} setup.py build | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | %{__python} setup.py install \ | |
49 | --optimize=2 \ | |
50 | --root=$RPM_BUILD_ROOT | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc docs/index.txt | |
c7cabbe1 | 58 | %attr(755,root,root) %{_bindir}/virtualenv |
74c7b14d | 59 | %{py_sitescriptdir}/virtualenv-%{version}-py*.egg-info |
5af66070 | 60 | %{py_sitescriptdir}/virtualenv.py* |
c7cabbe1 | 61 | %dir %{py_sitescriptdir}/virtualenv_support |
e17b322a | 62 | %{py_sitescriptdir}/virtualenv_support/*.py* |
c7cabbe1 | 63 | %{py_sitescriptdir}/virtualenv_support/*.gz |
0cc4fd25 | 64 | %{py_sitescriptdir}/virtualenv_support/setuptools-*.egg |