84 lines
2.0 KiB
Plaintext
84 lines
2.0 KiB
Plaintext
Name: ruby
|
|
Version: 3.2.2
|
|
Release: 1%{?dist}
|
|
License: Ruby License/GPL - see COPYING
|
|
URL: http://www.ruby-lang.org/
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
AutoReqProv: no
|
|
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: https://cache.ruby-lang.org/pub/ruby/ruby-%{version}.tar.gz
|
|
Summary: An interpreter of object-oriented scripting language
|
|
Group: Development/Languages
|
|
Provides: ruby(abi) = 3.2
|
|
Provides: ruby-irb
|
|
Provides: ruby-rdoc
|
|
Provides: ruby-libs
|
|
Provides: ruby-devel
|
|
Provides: rubygems
|
|
Obsoletes: ruby < %{version}
|
|
Obsoletes: ruby-devel < %{version}
|
|
Obsoletes: ruby-irb < %{version}
|
|
Obsoletes: ruby-libs < %{version}
|
|
Obsoletes: rubygem-bigdecimal
|
|
Obsoletes: rubygem-io-console
|
|
Obsoletes: rubygem-json
|
|
Obsoletes: rubygem-psych
|
|
Obsoletes: rubygem-rdoc
|
|
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-%{version}
|
|
|
|
|
|
%build
|
|
source /opt/rh/devtoolset-10/enable
|
|
|
|
RPM_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | sed 's/-mdirect-move//g')
|
|
export CFLAGS="$RPM_OPT_FLAGS -Wall -fno-strict-aliasing -std=gnu99"
|
|
|
|
%configure \
|
|
--enable-shared \
|
|
--disable-rpath \
|
|
--without-X11 \
|
|
--includedir=%{_includedir}/ruby \
|
|
--libdir=%{_libdir} \
|
|
--with-archlibdir='%{_libdir}' \
|
|
--with-rubyarchprefix='%{_libdir}' \
|
|
--with-rubyhdrdir='%{_includedir}' \
|
|
--with-rubyarchhdrdir='%{_includedir}' \
|
|
--enable-multiarch \
|
|
.
|
|
|
|
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
|