Skip to content

Instantly share code, notes, and snippets.

@spatzle
Created April 3, 2013 17:20
Show Gist options
  • Save spatzle/5303241 to your computer and use it in GitHub Desktop.
Save spatzle/5303241 to your computer and use it in GitHub Desktop.
Name: jruby
Version: 1.6.4
#Version: 1.7.3
Release: 1%{?dist}
Summary: Pure-Java Implementation of the Ruby Programming Language
Group: Development/System
License: Multiple
URL: http://www.jruby.org
Source0: http://jruby.org.s3.amazonaws.com/downloads/%{version}/%{name}-bin-%{version}.tar.gz
Source1: jruby
Source2: jirb
Source3: jrake
Source4: jrdoc
Source5: jrubyc
Source6: jri
Source7: jgem
#BuildArch: noarch
#Requires: jdk
#BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
#Requires: java-1.6.0-openjdk
%define __os_install_post %{nil}
%description
100% Pure-Java Implementation of the Ruby Programming Language
Features:
Ruby 1.8.7 Compatible
High performance
Real threading
Vast array of libraries
%prep
%setup -q
%build
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
mkdir -p $RPM_BUILD_ROOT/opt
mkdir -p $RPM_BUILD_ROOT/%{_docdir}/%{name}
pwd
cp %{SOURCE1} $RPM_BUILD_ROOT/%{_bindir}/
cp %{SOURCE2} $RPM_BUILD_ROOT/%{_bindir}/
cp %{SOURCE3} $RPM_BUILD_ROOT/%{_bindir}/
cp %{SOURCE4} $RPM_BUILD_ROOT/%{_bindir}/
cp %{SOURCE5} $RPM_BUILD_ROOT/%{_bindir}/
cp %{SOURCE6} $RPM_BUILD_ROOT/%{_bindir}/
cp %{SOURCE7} $RPM_BUILD_ROOT/%{_bindir}/
#cp $RPM_BUILD_DIR/%{name}-%{version}/README $RPM_BUILD_ROOT/%{_docdir}/%{name}/
cp $RPM_BUILD_DIR/%{name}-%{version}/LICENSE.RUBY $RPM_BUILD_ROOT/%{_docdir}/%{name}/
cp $RPM_BUILD_DIR/%{name}-%{version}/COPYING $RPM_BUILD_ROOT/%{_docdir}/%{name}/
cp -r $RPM_BUILD_DIR/%{name}-%{version} $RPM_BUILD_ROOT/opt/jruby
cp -r $RPM_BUILD_DIR/%{name}-%{version}/docs/* $RPM_BUILD_ROOT/%{_docdir}/%{name}
%post
chmod +x /opt/jruby/bin/jruby
alternatives --install /opt/jruby/bin/jruby jruby /usr/bin/jruby 20000
chmod +x /usr/bin/jruby
chmod +x /usr/bin/jirb
chmod +x /usr/bin/jirb
chmod +x /usr/bin/jrake
chmod +x /usr/bin/jrdoc
chmod +x /usr/bin/jrubyc
chmod +x /usr/bin/jri
chmod +x /usr/bin/jgem
%postun
rm -rf /opt/jruby
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc %{_docdir}/%{name}
/opt/jruby
/usr/bin
%changelog
* Tue Sep 18 2012 Jorge Falcão <[email protected]> - 1.6.8
- See http://jruby.org/2012/09/18/jruby-1-6-8
* Tue Jul 13 2012 Jorge Falcão <[email protected]> - 1.6.7.2-1
- Update to Rubygems 1.8.24
* Tue Apr 10 2012 Jorge Falcão <[email protected]> - 1.6.7-1
- bump version
* Wed Nov 23 2011 Jorge Falcão <[email protected]> - 1.6.5-1
- bump version
* Fri Jul 08 2011 Sergio Rubio <[email protected]> - 1.6.3-1
- bump version
* Thu Apr 14 2011 Sergio Rubio <[email protected]> - 1.6.1-1
- bumped version
* Thu Mar 17 2011 Sergio Rubio <[email protected]> - 1.6.0
- updated to 1.6.0
* Thu Feb 10 2011 Sergio Rubio <[email protected]> - 1.6.0.RC2-1
- updated to 1.6.0.RC2
* Sun Dec 19 2010 Sergio Rubio <[email protected]> - 1.5.6-1
- updated to 1.5.6
* Fri Oct 15 2010 Sergio Rubio <[email protected]> 1.5.3-3
- Fixed wrapper scripts
* Fri Oct 15 2010 Sergio Rubio <[email protected]> 1.5.3-2
- Install jgem wrapper script
* Fri Oct 15 2010 Sergio Rubio <[email protected]> 1.5.3-1
- Initial release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment