Skip to content

Instantly share code, notes, and snippets.

@andreimaxim
Created April 15, 2010 17:42
Show Gist options
  • Save andreimaxim/367398 to your computer and use it in GitHub Desktop.
Save andreimaxim/367398 to your computer and use it in GitHub Desktop.
%define RELEASE 2010.01
Summary: Ruby Enterprise Edition (Release %{RELEASE})
Name: ruby-enterprise
Vendor: Phusion.nl
Version: 1.8.7
Release: %{RELEASE}
License: GPL
Group: Development/Languages
URL: http://www.rubyenterpriseedition.com/
Source0: ruby-enterprise-%{version}-%{RELEASE}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{RELEASE}-root
BuildRequires: gcc-c++ make patch zlib-devel openssl-devel readline-devel
%description
Ruby Enterprise Edition is a server-oriented friendly branch of Ruby which includes various enhancements:
* A copy-on-write friendly garbage collector. Phusion Passenger uses this, in combination with a technique called preforking, to reduce Ruby on Rails applications' memory usage by 33% on average.
* An improved memory allocator called tcmalloc, which improves performance quite a bit.
* The ability to tweak garbage collector settings for maximum server performance, and the ability to inspect the garbage collector's state. (RailsBench GC patch)
* The ability to dump stack traces for all running threads (caller_for_all_threads), making it easier for one to debug multithreaded Ruby web applications.
%prep
%setup -q -n ruby-enterprise-%{version}-%{RELEASE}
%build
cd source
%configure
make %{?_smp_mflags}
%install
cd source
rm -rf %{buildroot}
make DESTDIR=%{buildroot} INSTALL="install -p" CP="cp -p" install
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/erb
%{_bindir}/irb
%{_bindir}/rdoc
%{_bindir}/ri
%{_bindir}/ruby
%{_bindir}/testrb
%{_libdir}/libruby-static.a
%{_libdir}/ruby/*
#%{_mandir}/ruby.1.gz
/usr/share/man/man1/ruby.1.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment