Specs added from this server
This commit is contained in:
68
centos/SPECS/ruby.spec
Normal file
68
centos/SPECS/ruby.spec
Normal file
@@ -0,0 +1,68 @@
|
||||
%define rubyver 2.4.1
|
||||
|
||||
Name: ruby
|
||||
Version: %{rubyver}
|
||||
Release: 1%{?dist}
|
||||
License: Ruby License/GPL - see COPYING
|
||||
URL: http://www.ruby-lang.org/
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
Requires: readline ncurses gdbm glibc openssl libyaml libffi zlib
|
||||
BuildRequires: readline-devel ncurses-devel gdbm-devel glibc-devel gcc openssl-devel make libyaml-devel libffi-devel zlib-devel
|
||||
Source0: ftp://ftp.ruby-lang.org/pub/ruby/ruby-%{rubyver}.tar.gz
|
||||
Summary: An interpreter of object-oriented scripting language
|
||||
Group: Development/Languages
|
||||
Provides: ruby(abi) = 2.3
|
||||
Provides: ruby-irb
|
||||
Provides: ruby-rdoc
|
||||
Provides: ruby-libs
|
||||
Provides: ruby-devel
|
||||
Provides: rubygems
|
||||
Obsoletes: ruby
|
||||
Obsoletes: ruby-libs
|
||||
Obsoletes: ruby-irb
|
||||
Obsoletes: ruby-rdoc
|
||||
Obsoletes: ruby-devel
|
||||
Obsoletes: rubygems
|
||||
|
||||
%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}
|
||||
|
||||
%build
|
||||
export CFLAGS="$RPM_OPT_FLAGS -Wall -fno-strict-aliasing"
|
||||
|
||||
%configure \
|
||||
--enable-shared \
|
||||
--disable-rpath \
|
||||
--without-X11 \
|
||||
--without-tk \
|
||||
--includedir=%{_includedir}/ruby \
|
||||
--libdir=%{_libdir}
|
||||
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
# installing binaries ...
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
|
||||
#we don't want to keep the src directory
|
||||
rm -rf $RPM_BUILD_ROOT/usr/src
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%{_bindir}/*
|
||||
%{_includedir}/*
|
||||
%{_datadir}/*
|
||||
%{_libdir}/*
|
||||
|
||||
%changelog
|
||||
* Sun Apr 23 2017 Daniel Steiner <dsteiner@redhat.com>
|
||||
- Update ruby version to 2.4.1
|
||||
Reference in New Issue
Block a user