ruby-build-vl.spec 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. %global gitdate 20121023
  2. Summary: rbenv plugin to compile and install ruby
  3. SUmmary(ja): ruby をコンパイルしてインストールするrbenvプラグイン
  4. Name: ruby-build
  5. Version: 0.0.%{gitdate}
  6. Release: 2%{?_dist_release}
  7. License: MIT
  8. Group: Development/Tools
  9. URL: https://github.com/sstephenson/ruby-build
  10. Source0: %{name}-%{version}.tar.xz
  11. Source10: ree-1.8.7-build.patch
  12. Patch1: ruby-build-ree-build-fix.patch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  14. BuildArch: noarch
  15. Requires: gcc
  16. Requires: zlib-devel
  17. Requires: readline-devel
  18. Requires: openssl-devel
  19. %description
  20. ruby-build provides a simple way to compile and install
  21. different versions of Ruby on UNIX-like systems.
  22. You can also use ruby-build without rbenv in environments
  23. where you need precise control over Ruby version installation.
  24. %prep
  25. %setup -q
  26. %patch1 -p1
  27. %build
  28. %install
  29. rm -rf %{buildroot}
  30. PREFIX=%{buildroot}%{_prefix} ./install.sh
  31. mkdir -p %{buildroot}%{_datadir}/%{name}/patches
  32. cp %{SOURCE10} %{buildroot}%{_datadir}/%{name}/patches/
  33. %clean
  34. rm -rf %{buildroot}
  35. %files
  36. %defattr(-,root,root,-)
  37. %doc LICENSE README.md
  38. %{_bindir}/ruby-build
  39. %{_bindir}/rbenv-install
  40. %{_datadir}/ruby-build
  41. %changelog
  42. * Wed Oct 24 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.20121023-2
  43. - add patch1, source10 to fix build failure of ree-1.8.7-2012.02
  44. * Tue Oct 23 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.20121023-1
  45. - update to upstream git master
  46. * Fri Jun 29 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.20110914-1
  47. - initial build for Vine Linux