Skip to content

Instantly share code, notes, and snippets.

@todc
Created July 20, 2011 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todc/1094087 to your computer and use it in GitHub Desktop.
Save todc/1094087 to your computer and use it in GitHub Desktop.
Ruby 1.9.2p290 RPM Spec
%define _prefix /opt/ruby-1.9.2p290
%define _localstatedir /opt/ruby-1.9.2p290/var
%define _mandir /opt/ruby-1.9.2p290/man
%define _infodir /opt/ruby-1.9.2p290/share/info
%define rubyver 1.9.2
%define rubyminorver p290
Name: ruby%{rubyver}%{rubyminorver}
Version: %{rubyver}%{rubyminorver}
Release: 1%{?dist}
License: Ruby License/GPL
URL: http://www.ruby-lang.org/
Source0: ftp://ftp.ruby-lang.org/pub/ruby/ruby-%{rubyver}-%{rubyminorver}.tar.gz
Summary: An interpreter of object-oriented scripting language
Group: Development/Languages
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
Ruby is the interpreted scripting language for quick and easy
object-oriented programming. It has many features to process text
files and to do system management tasks (as in Perl). It is simple,
straight-forward, and extensible.
%prep
%setup -n ruby-%{rubyver}-%{rubyminorver}
%build
CFLAGS="$RPM_OPT_FLAGS -Wall -fno-strict-aliasing"
export CFLAGS
%configure \
--enable-shared \
--disable-rpath
make RUBY_INSTALL_NAME=ruby %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc README COPYING ChangeLog LEGAL ToDo
%{_prefix}/*
%changelog
* Tue Jul 19 2011 Tim O'Donnell <tim.odonnell@imperva.com> - 1.9.2-p290
- Initial build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment