Created
July 20, 2011 00:35
-
-
Save todc/1094087 to your computer and use it in GitHub Desktop.
Ruby 1.9.2p290 RPM Spec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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 <[email protected]> - 1.9.2-p290 | |
- Initial build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment