%global gitdate 20121023 Summary: rbenv plugin to compile and install ruby SUmmary(ja): ruby をコンパイルしてインストールするrbenvプラグイン Name: ruby-build Version: 0.0.%{gitdate} Release: 3%{?_dist_release} License: MIT Group: Development/Tools URL: https://github.com/sstephenson/ruby-build Source0: %{name}-%{version}.tar.xz Source10: ree-1.8.7-build.patch Source11: ruby-1.8.7-build.patch Patch1: ruby-build-1.8.7-build-fix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch Requires: gcc Requires: zlib-devel Requires: readline-devel Requires: openssl-devel %description ruby-build provides a simple way to compile and install different versions of Ruby on UNIX-like systems. You can also use ruby-build without rbenv in environments where you need precise control over Ruby version installation. %prep %setup -q %patch1 -p1 %build %install rm -rf %{buildroot} PREFIX=%{buildroot}%{_prefix} ./install.sh mkdir -p %{buildroot}%{_datadir}/%{name}/.patches cp %{SOURCE10} %{buildroot}%{_datadir}/%{name}/.patches/ cp %{SOURCE11} %{buildroot}%{_datadir}/%{name}/.patches/ %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc LICENSE README.md %{_bindir}/ruby-build %{_bindir}/rbenv-install %{_bindir}/rbenv-uninstall %{_datadir}/ruby-build %changelog * Wed Oct 24 2012 Daisuke SUZUKI 0.0.20121023-3 - move patches dir to .patches - add source11 to fix build failure of ruby-1.8.7-* - update patch1 to build all ruby/ree-1.8.7* * Wed Oct 24 2012 Daisuke SUZUKI 0.0.20121023-2 - add patch1, source10 to fix build failure of ree-1.8.7-2012.02 * Tue Oct 23 2012 Daisuke SUZUKI 0.0.20121023-1 - update to upstream git master * Fri Jun 29 2012 Daisuke SUZUKI 0.0.20110914-1 - initial build for Vine Linux