]>
Commit | Line | Data |
---|---|---|
74c7b14d | 1 | Summary: Tool to create isolated Python environments |
d91e0815 | 2 | Summary(pl.UTF-8): Narzędzie do tworzenia oddzielonych środowisk Pythona |
74c7b14d | 3 | Name: python-virtualenv |
9999949c JR |
4 | Version: 1.9.1 |
5 | Release: 1 | |
74c7b14d PZ |
6 | License: MIT |
7 | Group: Development/Languages | |
8 | Source0: http://pypi.python.org/packages/source/v/virtualenv/virtualenv-%{version}.tar.gz | |
9999949c | 9 | # Source0-md5: 07e09df0adfca0b2d487e39a4bf2270a |
4577d65b | 10 | Source1: https://raw.github.com/pypa/virtualenv/%{version}/bin/rebuild-script.py |
9999949c | 11 | # Source1-md5: 5925c9a7d8e8b101c76b9c6cfa9ff297 |
4577d65b | 12 | Source2: unpack-support.py |
4577d65b | 13 | Patch0: virtualenv-pld.patch |
d91e0815 | 14 | URL: http://pypi.python.org/pypi/virtualenv |
91a4a405 | 15 | BuildRequires: python |
91a4a405 | 16 | BuildRequires: python-modules |
17 | BuildRequires: rpm-pythonprov | |
74c7b14d | 18 | Requires: python-setuptools |
4577d65b JR |
19 | # Blame binary-only python packages authors |
20 | # virtualenv wants *.py | |
21 | Requires: python-devel-src | |
74c7b14d PZ |
22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | virtualenv is a tool to create isolated Python environments. | |
27 | virtualenv is a successor to workingenv, and an extension of | |
28 | virtual-python. It is written by Ian Bicking, and sponsored by the | |
29 | Open Planning Project. It is licensed under an MIT-style permissive | |
30 | license. | |
31 | ||
d91e0815 JB |
32 | %description -l pl.UTF-8 |
33 | virtualenv to narzędzie do tworzenia oddzielonych środowisk Pythona. | |
34 | Jest to następca workignenv i rozszerzenie virtual-pythona. Jest | |
35 | tworzone przez Iana Bickinga i sponsorowane przez Open Planning | |
36 | Project. Zostało wydane na liberalnej licencji w stylu MIT. | |
37 | ||
74c7b14d PZ |
38 | %prep |
39 | %setup -q -n virtualenv-%{version} | |
4577d65b JR |
40 | %{__install} -d bin |
41 | %{__install} -m 755 -p %{SOURCE1} bin/ | |
42 | %{__install} -m 755 -p %{SOURCE2} bin/ | |
43 | ||
d91e0815 | 44 | %{__python} ./bin/unpack-support.py |
4577d65b JR |
45 | |
46 | %patch0 -p1 | |
47 | ||
d91e0815 | 48 | %{__python} ./bin/rebuild-script.py |
74c7b14d PZ |
49 | |
50 | %build | |
51 | %{__python} setup.py build | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | %{__python} setup.py install \ | |
56 | --optimize=2 \ | |
57 | --root=$RPM_BUILD_ROOT | |
58 | ||
0881e4b4 | 59 | # not needed |
d91e0815 JB |
60 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/virtualenv-*.* |
61 | %{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/virtualenv_support/[ades]*.py* | |
0881e4b4 | 62 | |
74c7b14d PZ |
63 | %clean |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %files | |
67 | %defattr(644,root,root,755) | |
68 | %doc docs/index.txt | |
c7cabbe1 | 69 | %attr(755,root,root) %{_bindir}/virtualenv |
74c7b14d | 70 | %{py_sitescriptdir}/virtualenv-%{version}-py*.egg-info |
5af66070 | 71 | %{py_sitescriptdir}/virtualenv.py* |
c7cabbe1 | 72 | %dir %{py_sitescriptdir}/virtualenv_support |
0881e4b4 | 73 | %{py_sitescriptdir}/virtualenv_support/__init__.py* |
c7cabbe1 | 74 | %{py_sitescriptdir}/virtualenv_support/*.gz |
0cc4fd25 | 75 | %{py_sitescriptdir}/virtualenv_support/setuptools-*.egg |