Permalink
Browse files

REE build recipe for RPM.

First try!
  • Loading branch information...
h3h committed May 6, 2010
0 parents commit ae3b5292ebe46dcf6059ed9fd3644d692dcf9bdb
Showing with 96 additions and 0 deletions.
  1. +24 −0 LICENSE
  2. +38 −0 README.markdown
  3. +34 −0 spec/ruby-enterprise.spec
24 LICENSE
@@ -0,0 +1,24 @@
+The MIT License
+
+Copyright (c) 2010 Philotic, Inc.
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,38 @@
+# A Recipe for a Ruby Enterprise Edition RPM on CentOS
+
+Perform the following on a build box as root.
+
+## Create an RPM Build Environment
+
+ yum install rpmdevtools
+ rpmdev-setuptree
+
+## Install Prerequisites for RPM Creation
+
+ yum groupinstall 'Development Tools'
+
+## Download REE
+
+ cd /tmp
+ wget http://rubyforge.org/frs/download.php/68719/ruby-enterprise-1.8.7-2010.01.tar.gz
+ cp ruby-enterprise-1.8.7-2010.01.tar.gz ~/rpmbuild/SOURCES/
+
+## Get Necessary System-specific Configs
+
+ git clone git://github.com/causes/ree-centos.git
+ cp ree-centos/spec/ruby-enterprise.spec ~/rpmbuild/SPECS/
+
+## Build the RPM
+
+ cd ~/rpmbuild/
+ rpmbuild -ba SPECS/ruby-enterprise.spec
+
+The resulting RPM will be:
+
+ ~/rpmbuild/RPMS/x86_64/ruby-enterprise-1.8.7-2001.01.x86_64.rpm
+
+## Credits
+
+Based on the `ruby-enterprise.spec` file from Tim Harper found on [a Gist][gs].
+
+ [gs]: http://gist.github.com/35409
@@ -0,0 +1,34 @@
+Summary: Ruby Enterprise Edition
+Name: ruby-enterprise
+Version: 1.8.7
+Release: 2010.01
+License: GPL
+Group: Applications/System
+Source: ruby-enterprise-%{version}-%{release}.tar.gz
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
+
+%description
+Ruby Enterprise Edition is a copy-on-right friendly version of ruby that also
+includes several performance patches.
+
+%prep
+%setup -q -n ruby-enterprise-%{version}-%{release}/source
+
+%build
+./configure --prefix=/opt/ruby
+
+%install
+make
+make DESTDIR=$RPM_BUILD_ROOT install
+
+%files
+%defattr(-,root,root)
+/opt/ruby
+
+%changelog
+* Thu May 06 2010 Brad Fults <brad at causes dot com>
+- Update for use with 1.8.7
+
+* Fri Dec 13 2008 Tim C. Harper <tim.harper@leadmediapartners.com>
+- first build of REE package

0 comments on commit ae3b529

Please sign in to comment.