From e133c849d853d9572dc57b7dd6db79727adbd4da Mon Sep 17 00:00:00 2001 From: Alfredo Baldoceda Date: Thu, 3 May 2018 18:03:43 -0400 Subject: [PATCH] new minor version and build script --- README.md | 3 +++ build.sh | 20 ++++++++++++++++++++ ruby200.spec | 6 +++++- 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100755 build.sh diff --git a/README.md b/README.md index fbe691b..e4838c7 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,6 @@ Forked from imeyer's ruby-1.9.2-rpm project at https://github.com/imeyer/ruby-1.9.2-rpm and updated for 2.0.0. This spec is an attempt to push for a stable replacement of Ruby 1.8.x with 1.9.2+ on RHEL based systems. The original author based it off of the work of [FrameOS](http://www.frameos.org) specs for Ruby 1.9.2 and Ruby Enterprise Edition. + +# Build script +A simple build script has been added. Just run build.sh to create the rpm. diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..0c4d224 --- /dev/null +++ b/build.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# Author: Alfredo Baldoceda +# Description: Simple build script to create ruby2.0.0 rpm using ruby200.spec file +# spectool and rpmbuild are required +# Uncomment for debugging: +# set -x + +spec_file=ruby200.spec + +if [ -z $RPM_HOME ] +then + RPM_HOME=$HOME +fi + +echo '%_topdir %(echo $RPM_HOME)/rpmbuild' > ~/.rpmmacros + +mkdir -p $RPM_HOME/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS} +cp -av $spec_file $RPM_HOME/rpmbuild/SPECS/ +spectool -g -R $RPM_HOME/rpmbuild/SPECS/$spec_file +rpmbuild -ba $RPM_HOME/rpmbuild/SPECS/$spec_file diff --git a/ruby200.spec b/ruby200.spec index da24d0c..b8888d3 100644 --- a/ruby200.spec +++ b/ruby200.spec @@ -1,5 +1,5 @@ %define rubyver 2.0.0 -%define rubyminorver p598 +%define rubyminorver p647 Name: ruby Version: %{rubyver}%{rubyminorver} @@ -23,6 +23,7 @@ Obsoletes: ruby-irb Obsoletes: ruby-rdoc Obsoletes: ruby-devel Obsoletes: rubygems +Obsoletes: rubygem-json %description Ruby is the interpreted scripting language for quick and easy @@ -64,6 +65,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir} %changelog +* Thu May 3 2018 Alfredo Baldoceda - 2.0.0-p647 +- Update ruby version to 2.0.0-p647 + * Wed May 13 2015 Masahito Yoshida - 2.0.0-p598 - Update ruby version to 2.0.0-p598