python-virtualenv-clone-vl.spec 1.7 KB

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