rbenv-gemset-vl.spec 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. %global gitdate 20120606
  2. Summary: Plugin for rbenv that adds basic gemset support
  3. Summary(ja): rbenv 用の gemset サポートプラグイン
  4. Name: rbenv-gemset
  5. Version: 0.3.0.%{gitdate}
  6. Release: 1%{?_dist_release}
  7. License: MIT
  8. Group: Development/Tools
  9. URL: https://github.com/jamis/rbenv-gemset/
  10. Source0: %{name}-%{version}.tar.xz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildArch: noarch
  13. Requires: rbenv
  14. Distribution: Vine Linux
  15. Vendor: Project Vine
  16. Packager: daisuke
  17. %description
  18. rbenv-gemset is an extension for the rbenv ruby version manager that
  19. allows you to use "gemsets", sandboxed collections of gems. This lets
  20. you have multiple collections of gems installed in different
  21. sandboxes, and specify (on a per-application basis) which sets of gems
  22. should be used.
  23. %prep
  24. %setup -q
  25. %build
  26. sed -i -e 's|/usr/local/share/ruby-gemsets|/usr/share/rbenv|g' libexec/rbenv-gemset
  27. %install
  28. rm -rf %{buildroot}
  29. mkdir -p %{buildroot}%{_sysconfdir}/rbenv.d
  30. cp -a etc/rbenv.d/* %{buildroot}%{_sysconfdir}/rbenv.d/
  31. mkdir -p %{buildroot}%{_datadir}/rbenv/libexec
  32. cp -a libexec/* %{buildroot}%{_datadir}/rbenv/libexec/
  33. mkdir -p %{buildroot}%{_bindir}
  34. ln -s %{_datadir}/rbenv/libexec/rbenv-gemset %{buildroot}%{_bindir}/rbenv-gemset
  35. %clean
  36. rm -rf %{buildroot}
  37. %files
  38. %defattr(-,root,root,-)
  39. %doc README.mkd
  40. %{_sysconfdir}/rbenv.d/*/*
  41. %{_bindir}/rbenv-gemset
  42. %{_datadir}/rbenv
  43. %changelog
  44. * Fri Jul 13 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.0.20120606-1
  45. - initial build for Vine Linux