[7373] | 1 | %global gitdate 20130121 |
---|
[6457] | 2 | |
---|
| 3 | Summary: Simple Ruby version management |
---|
| 4 | Summary(ja): シンプルなRubyバージョン管理システム |
---|
| 5 | Name: rbenv |
---|
[7373] | 6 | Version: 0.4.0.%{gitdate} |
---|
[6457] | 7 | Release: 1%{?_dist_release} |
---|
| 8 | License: MIT |
---|
| 9 | Group: Development/Tools |
---|
| 10 | URL: https://github.com/sstephenson/rbenv |
---|
| 11 | Source0: %{name}-%{version}.tar.xz |
---|
| 12 | |
---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 14 | BuildArch: noarch |
---|
| 15 | |
---|
| 16 | Distribution: Vine Linux |
---|
| 17 | Vendor: Project Vine |
---|
| 18 | Packager: daisuke |
---|
| 19 | |
---|
| 20 | %description |
---|
| 21 | rbenv lets you easily switch between multiple versions of Ruby. It's |
---|
| 22 | simple, unobtrusive, and follows the UNIX tradition of single-purpose |
---|
| 23 | tools that do one thing well. |
---|
| 24 | |
---|
| 25 | %prep |
---|
| 26 | %setup -q |
---|
| 27 | |
---|
| 28 | %build |
---|
| 29 | |
---|
| 30 | %install |
---|
| 31 | rm -rf %{buildroot} |
---|
| 32 | |
---|
| 33 | mkdir -p %{buildroot}%{_datadir}/rbenv |
---|
| 34 | cp -a libexec completions %{buildroot}%{_datadir}/rbenv/ |
---|
| 35 | |
---|
| 36 | mkdir -p %{buildroot}%{_bindir} |
---|
| 37 | ln -s %{_datadir}/rbenv/libexec/rbenv %{buildroot}%{_bindir}/rbenv |
---|
| 38 | install -p bin/ruby-local-exec %{buildroot}%{_bindir}/ruby-local-exec |
---|
| 39 | |
---|
| 40 | %post |
---|
| 41 | echo You probably want to execute the following line to add rbenv to your shell |
---|
| 42 | echo echo "'eval \"\$(rbenv init -)\"'" \>\> ~/.bash_profile |
---|
| 43 | |
---|
| 44 | %clean |
---|
| 45 | rm -rf %{buildroot} |
---|
| 46 | |
---|
| 47 | %files |
---|
| 48 | %defattr(-,root,root,-) |
---|
| 49 | %doc LICENSE README.md |
---|
| 50 | %{_bindir}/rbenv |
---|
| 51 | %{_bindir}/ruby-local-exec |
---|
| 52 | %{_datadir}/rbenv |
---|
| 53 | |
---|
| 54 | %changelog |
---|
[7373] | 55 | * Mon Jan 21 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.0.20130121-1 |
---|
| 56 | - update to upstream git master |
---|
| 57 | |
---|
[7233] | 58 | * Sat Dec 15 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.0.20121215-1 |
---|
| 59 | - update to upstream git master |
---|
| 60 | |
---|
[7232] | 61 | * Thu Dec 13 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.0.20121213-1 |
---|
| 62 | - update to upstream git master |
---|
| 63 | |
---|
[6457] | 64 | * Fri Jun 29 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.0.20120423-1 |
---|
| 65 | - initial build for Vine Linux |
---|