Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Rubio committed Dec 17, 2010
0 parents commit 02ac040
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
Binary file added ruby-1.9.2-p0.tar.gz
Binary file not shown.
63 changes: 63 additions & 0 deletions ruby19.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
%define rubyver 1.9.2
%define rubyminorver p0

Name: ruby19
Version: %{rubyver}%{rubyminorver}
Release: 2%{?dist}
License: Ruby License/GPL - see COPYING
URL: http://www.ruby-lang.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: readline readline-devel ncurses ncurses-devel gdbm gdbm-devel glibc-devel tcl-devel tk-devel libX11-devel gcc unzip openssl-devel db4-devel byacc
Source0: ftp://ftp.ruby-lang.org/pub/ruby/ruby-%{rubyver}-%{rubyminorver}.tar.gz
Summary: An interpreter of object-oriented scripting language
Group: Development/Languages

%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 \
--program-suffix=19

make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT

# installing binaries ...
make install DESTDIR=$RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT/usr/lib/
rm -rf $RPM_BUILD_ROOT/usr/share/doc/ruby
rm -rf $RPM_BUILD_ROOT/usr/src
rm -f $RPM_BUILD_ROOT/usr/lib64/libruby-static.a
rm -f $RPM_BUILD_ROOT/usr/lib64/libruby.so


%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc README COPYING ChangeLog LEGAL ToDo
%{_bindir}
%{_includedir}
%{_prefix}/lib64/
%{_prefix}/share/

%changelog
* Fri Dec 17 2010 Sergio Rubio <[email protected]> - 1.9.2p0-2
- renamed package to ruby19
- ruby bin renamed to ruby19
- install using standard prefix

* Fri Nov 15 2010 Taylor Kimball <[email protected]> - 1.9.2-p0-1
- Initial build for el5 based off of el5 spec.

0 comments on commit 02ac040

Please sign in to comment.