Skip to content

Instantly share code, notes, and snippets.

@tank-bohr
Last active August 29, 2015 14:18
Show Gist options
  • Save tank-bohr/9ef7611db821a6e83f14 to your computer and use it in GitHub Desktop.
Save tank-bohr/9ef7611db821a6e83f14 to your computer and use it in GitHub Desktop.
Ruby 2.1.5 rpm spec
%define rubyver_major 2
%define rubyver_minor 1
%define rubyver_patch 6
%define rubyver %{rubyver_major}.%{rubyver_minor}.%{rubyver_patch}
%define ruby_archive ruby-%{rubyver}
%define prefix /opt/%{ruby_archive}
Summary: An interpreter of object-oriented scripting language
Name: ruby
Version: %{rubyver}
Release: 1
BuildRequires: autoconf
BuildRequires: gcc
BuildRequires: make
BuildRequires: unzip
BuildRequires: byacc
BuildRequires: gdbm-devel
BuildRequires: glibc-devel
BuildRequires: libdb-devel
BuildRequires: libffi-devel
BuildRequires: libyaml-devel
BuildRequires: tcl-devel
BuildRequires: tk-devel
BuildRequires: ncurses-devel
BuildRequires: openssl-devel
BuildRequires: readline-devel
Requires: libyaml
License: GPL v2
Group: Development/Languages
Source: http://cache.ruby-lang.org/pub/ruby/%{rubyver_major}.%{rubyver_minor}/%{ruby_archive}.tar.gz
URL: https://www.ruby-lang.org
Packager: Alexey Nikitin <nikitin@bookmate.com>
%description
A dynamic, open source programming language with a
focus on simplicity and productivity. It has an elegant
syntax that is natural to read and easy to write.
%prep
%setup -n %{ruby_archive}
%build
export CFLAGS=$RPM_OPT_FLAGS
./configure --disable-install-doc --prefix=%{prefix}
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root)
%{prefix}/bin
%{prefix}/include
%{prefix}/lib
%{prefix}/share
%changelog
* Fri Apr 25 2014 Alexey Nikitin <nikitin@bookmate.com>
- Bumps version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment