浏览代码

new package

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@6457 ec354946-7b23-47d6-9f5a-488ba84defc7
daisuke 12 年之前
父节点
当前提交
e43db9a054
共有 1 个文件被更改,包括 56 次插入0 次删除
  1. 56 0
      r/rbenv/rbenv-vl.spec

+ 56 - 0
r/rbenv/rbenv-vl.spec

@@ -0,0 +1,56 @@
+%global gitdate 20120423
+
+Summary: Simple Ruby version management
+Summary(ja): シンプルなRubyバージョン管理システム
+Name: rbenv
+Version: 0.3.0.%{gitdate}
+Release: 1%{?_dist_release}
+License: MIT
+Group: Development/Tools
+URL: https://github.com/sstephenson/rbenv
+Source0: %{name}-%{version}.tar.xz
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildArch: noarch
+
+Distribution: Vine Linux
+Vendor: Project Vine
+Packager: daisuke
+
+%description
+rbenv lets you easily switch between multiple versions of Ruby. It's
+simple, unobtrusive, and follows the UNIX tradition of single-purpose
+tools that do one thing well.
+
+%prep
+%setup -q
+
+%build
+
+%install
+rm -rf %{buildroot}
+
+mkdir -p %{buildroot}%{_datadir}/rbenv
+cp -a libexec completions %{buildroot}%{_datadir}/rbenv/
+
+mkdir -p %{buildroot}%{_bindir}
+ln -s %{_datadir}/rbenv/libexec/rbenv %{buildroot}%{_bindir}/rbenv
+install -p bin/ruby-local-exec %{buildroot}%{_bindir}/ruby-local-exec
+
+%post
+echo You probably want to execute the following line to add rbenv to your shell
+echo echo "'eval \"\$(rbenv init -)\"'" \>\> ~/.bash_profile
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE README.md
+%{_bindir}/rbenv
+%{_bindir}/ruby-local-exec
+%{_datadir}/rbenv
+
+%changelog
+* Fri Jun 29 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.0.20120423-1
+- initial build for Vine Linux