Skip to content

new minor version and build script #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
20 changes: 20 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -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
6 changes: 5 additions & 1 deletion ruby200.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%define rubyver 2.0.0
%define rubyminorver p598
%define rubyminorver p647

Name: ruby
Version: %{rubyver}%{rubyminorver}
Expand All @@ -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
Expand Down Expand Up @@ -64,6 +65,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}

%changelog
* Thu May 3 2018 Alfredo Baldoceda <[email protected]> - 2.0.0-p647
- Update ruby version to 2.0.0-p647

* Wed May 13 2015 Masahito Yoshida <[email protected]> - 2.0.0-p598
- Update ruby version to 2.0.0-p598

Expand Down