3 %bcond_without doc # don't build doc
4 %bcond_without tests # do not perform "make test"
5 %bcond_without python2 # CPython 2.x module
6 %bcond_with python3 # CPython 3.x module
8 %define module virtualenv-clone
9 Summary: Script to clone virtualenvs
10 Name: python-virtualenv-clone
14 Group: Development/Libraries
15 Source0: http://pypi.python.org/packages/source/v/%{module}/%{module}-%{version}.tar.gz
16 # Source0-md5: 71168b975eaaa91e65559bcc79290b3b
17 URL: http://pypi.python.org/pypi/virtualenv-clone
18 BuildRequires: rpm-pythonprov
19 BuildRequires: rpmbuild(macros) >= 1.710
21 BuildRequires: python-distribute
22 BuildRequires: python-virtualenv
25 BuildRequires: python3-virtualenv
27 Requires: python-virtualenv
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 A script for cloning a non-relocatable virtualenv.
34 Virtualenv provides a way to make virtualenv's relocatable which could
35 then be copied as we wanted. However making a virtualenv relocatable
36 this way breaks the no-site-packages isolation of the virtualenv as
37 well as other aspects that come with relative paths and '/usr/bin/env'
38 shebangs that may be undesirable.
40 Also, the .pth and .egg-link rewriting doesn't seem to work as
41 intended. This attempts to overcome these issues and provide a way to
42 easily clone an existing virtualenv.
44 %package -n python3-virtualenv-clone
45 Summary: Script to clone virtualenvs
46 Group: Development/Libraries
47 Requires: python3-virtualenv
49 %description -n python3-virtualenv-clone
50 virtualenv cloning script.
52 A script for cloning a non-relocatable virtualenv.
54 Virtualenv provides a way to make virtualenv's relocatable which could
55 then be copied as we wanted. However making a virtualenv relocatable
56 this way breaks the no-site-packages isolation of the virtualenv as
57 well as other aspects that come with relative paths and '/usr/bin/env'
58 shebangs that may be undesirable.
60 Also, the .pth and .egg-link rewriting doesn't seem to work as
61 intended. This attempts to overcome these issues and provide a way to
62 easily clone an existing virtualenv.
65 %setup -q -n %{module}-%{version}
77 rm -rf $RPM_BUILD_ROOT
89 rm -rf $RPM_BUILD_ROOT
93 %defattr(644,root,root,755)
95 %attr(755,root,root) %{_bindir}/virtualenv-clone
96 %{py_sitescriptdir}/clonevirtualenv.py[co]
97 %{py_sitescriptdir}/virtualenv_clone-%{version}-py*.egg-info
101 %files -n python3-%{module}
102 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_bindir}/virtualenv-clone
105 %{py3_sitescriptdir}/clonevirtualenv.*
106 %{py3_sitescriptdir}/virtualenv_clone-%{version}-*
107 %{py3_sitescriptdir}/__pycache__/*clonevirtualenv*