[7234] | 1 | %global gitdate 20121213 |
---|
[6456] | 2 | |
---|
| 3 | Summary: rbenv plugin to compile and install ruby |
---|
| 4 | SUmmary(ja): ruby をコンパイルしてインストールするrbenvプラグイン |
---|
| 5 | |
---|
| 6 | Name: ruby-build |
---|
| 7 | Version: 0.0.%{gitdate} |
---|
[7109] | 8 | Release: 1%{?_dist_release} |
---|
[6456] | 9 | License: MIT |
---|
| 10 | Group: Development/Tools |
---|
| 11 | URL: https://github.com/sstephenson/ruby-build |
---|
| 12 | Source0: %{name}-%{version}.tar.xz |
---|
[6983] | 13 | Source10: ree-1.8.7-build.patch |
---|
[6987] | 14 | Source11: ruby-1.8.7-build.patch |
---|
[6456] | 15 | |
---|
[6987] | 16 | Patch1: ruby-build-1.8.7-build-fix.patch |
---|
[6983] | 17 | |
---|
[6456] | 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 19 | BuildArch: noarch |
---|
| 20 | Requires: gcc |
---|
| 21 | Requires: zlib-devel |
---|
| 22 | Requires: readline-devel |
---|
| 23 | Requires: openssl-devel |
---|
| 24 | |
---|
| 25 | %description |
---|
| 26 | ruby-build provides a simple way to compile and install |
---|
| 27 | different versions of Ruby on UNIX-like systems. |
---|
| 28 | You can also use ruby-build without rbenv in environments |
---|
| 29 | where you need precise control over Ruby version installation. |
---|
| 30 | |
---|
| 31 | %prep |
---|
| 32 | %setup -q |
---|
[6983] | 33 | %patch1 -p1 |
---|
[6456] | 34 | |
---|
| 35 | %build |
---|
| 36 | |
---|
| 37 | %install |
---|
| 38 | rm -rf %{buildroot} |
---|
| 39 | PREFIX=%{buildroot}%{_prefix} ./install.sh |
---|
[6987] | 40 | mkdir -p %{buildroot}%{_datadir}/%{name}/.patches |
---|
| 41 | cp %{SOURCE10} %{buildroot}%{_datadir}/%{name}/.patches/ |
---|
| 42 | cp %{SOURCE11} %{buildroot}%{_datadir}/%{name}/.patches/ |
---|
[6456] | 43 | |
---|
| 44 | %clean |
---|
| 45 | rm -rf %{buildroot} |
---|
| 46 | |
---|
| 47 | %files |
---|
| 48 | %defattr(-,root,root,-) |
---|
| 49 | %doc LICENSE README.md |
---|
| 50 | %{_bindir}/ruby-build |
---|
| 51 | %{_bindir}/rbenv-install |
---|
[6987] | 52 | %{_bindir}/rbenv-uninstall |
---|
[6456] | 53 | %{_datadir}/ruby-build |
---|
| 54 | |
---|
| 55 | %changelog |
---|
[7234] | 56 | * Thu Dec 13 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.20121213-1 |
---|
| 57 | - update to upstream git master |
---|
| 58 | - add 2.0.0-preview2, 1.8.7-p371 |
---|
| 59 | |
---|
[7109] | 60 | * Wed Oct 24 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.20121111-1 |
---|
| 61 | - update to upstream git master |
---|
| 62 | - add 1.9.3-p327, 2.0.0-preview1, rbx-2.0.0-rc1 |
---|
| 63 | |
---|
[6987] | 64 | * Wed Oct 24 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.20121023-3 |
---|
| 65 | - move patches dir to .patches |
---|
| 66 | - add source11 to fix build failure of ruby-1.8.7-* |
---|
| 67 | - update patch1 to build all ruby/ree-1.8.7* |
---|
| 68 | |
---|
[6983] | 69 | * Wed Oct 24 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.20121023-2 |
---|
| 70 | - add patch1, source10 to fix build failure of ree-1.8.7-2012.02 |
---|
| 71 | |
---|
[6982] | 72 | * Tue Oct 23 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.20121023-1 |
---|
| 73 | - update to upstream git master |
---|
| 74 | |
---|
| 75 | * Fri Jun 29 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.20110914-1 |
---|
[6456] | 76 | - initial build for Vine Linux |
---|
| 77 | |
---|