| 1 | %define oname virtualenv-clone |
|---|
| 2 | |
|---|
| 3 | # Basic Information |
|---|
| 4 | Name: python-%{oname} |
|---|
| 5 | Version: 0.2.4 |
|---|
| 6 | Release: 1%{?_dist_release} |
|---|
| 7 | License: MIT |
|---|
| 8 | Group: Development/Tools |
|---|
| 9 | URL: http://github.com/edwardgeorge/virtualenv-clone |
|---|
| 10 | Source0: http://pypi.python.org/packages/source/v/%{oname}/%{oname}-%{version}.tar.gz |
|---|
| 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 12 | BuildArch: noarch |
|---|
| 13 | |
|---|
| 14 | Vendor: Project Vine |
|---|
| 15 | Distribution: Vine Linux |
|---|
| 16 | Packager: yasumichi |
|---|
| 17 | |
|---|
| 18 | Summary: script to clone virtualenvs. |
|---|
| 19 | Summary(ja): virtualenv 環境を複製するスクリプト |
|---|
| 20 | |
|---|
| 21 | # Dependency |
|---|
| 22 | Requires: python |
|---|
| 23 | Requires: python-virtualenv |
|---|
| 24 | BuildRequires: python |
|---|
| 25 | BuildRequires: python-setuptools |
|---|
| 26 | |
|---|
| 27 | %description |
|---|
| 28 | virtualenv cloning script. |
|---|
| 29 | |
|---|
| 30 | A script for cloning a non-relocatable virtualenv. |
|---|
| 31 | |
|---|
| 32 | Virtualenv provides a way to make virtualenv's relocatable which could then |
|---|
| 33 | be copied as we wanted. However making a virtualenv relocatable this way |
|---|
| 34 | breaks the no-site-packages isolation of the virtualenv as well as other |
|---|
| 35 | aspects that come with relative paths and '/usr/bin/env' shebangs that may |
|---|
| 36 | be undesirable. |
|---|
| 37 | |
|---|
| 38 | #%%description -l ja |
|---|
| 39 | #ここに日本語で詳細を記述してください。 |
|---|
| 40 | |
|---|
| 41 | %prep |
|---|
| 42 | %setup -q -n %{oname}-%{version} |
|---|
| 43 | |
|---|
| 44 | %build |
|---|
| 45 | %{__python} setup.py build |
|---|
| 46 | |
|---|
| 47 | %install |
|---|
| 48 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 49 | %{__python} setup.py install --root=${RPM_BUILD_ROOT} |
|---|
| 50 | |
|---|
| 51 | |
|---|
| 52 | %clean |
|---|
| 53 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 54 | |
|---|
| 55 | |
|---|
| 56 | %files |
|---|
| 57 | %defattr(-,root,root) |
|---|
| 58 | %doc README |
|---|
| 59 | /usr/bin/%{oname} |
|---|
| 60 | %{python_sitelib}/clonevirtualenv.py |
|---|
| 61 | %{python_sitelib}/clonevirtualenv.pyc |
|---|
| 62 | %{python_sitelib}/virtualenv_clone-%{version}-py%{pyver}.egg-info |
|---|
| 63 | |
|---|
| 64 | |
|---|
| 65 | %changelog |
|---|
| 66 | * Fri Aug 03 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.2.4-1 |
|---|
| 67 | - initial build for Vine Linux |
|---|