2021-11-08 16:27:32 +01:00
|
|
|
# SLE does not provide "bats", which is required for testing.
|
|
|
|
%if %{undefined sle_version}
|
|
|
|
%bcond_without test
|
|
|
|
%else
|
|
|
|
%bcond_with test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Name: ruby-build
|
2022-04-26 15:41:14 +02:00
|
|
|
Version: 20220426
|
2021-11-08 16:27:32 +01:00
|
|
|
Release: 0
|
|
|
|
BuildArch: noarch
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Ruby
|
|
|
|
Url: https://github.com/rbenv/ruby-build
|
|
|
|
Summary: Compile and install Ruby
|
2021-11-11 08:58:45 +01:00
|
|
|
Source0: https://github.com/rbenv/ruby-build/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2021-11-08 16:27:32 +01:00
|
|
|
Patch0: fix-test-requiring-git-repository.patch
|
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: bats
|
|
|
|
%endif
|
|
|
|
Requires: bash
|
|
|
|
Requires: curl
|
|
|
|
Requires: gcc
|
2012-01-04 12:36:47 +01:00
|
|
|
# ruby MRI BuildRequires
|
2021-11-08 16:27:32 +01:00
|
|
|
Requires: bison
|
|
|
|
Requires: gdbm-devel
|
|
|
|
Requires: gperf
|
|
|
|
Requires: graphviz
|
|
|
|
Requires: libjpeg-devel
|
|
|
|
Requires: openssl-devel
|
|
|
|
Requires: readline-devel
|
|
|
|
Requires: tk-devel
|
|
|
|
Requires: automake
|
|
|
|
Requires: libffi-devel
|
2011-11-16 11:36:05 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
ruby-build provides a simple way to compile and install different versions of Ruby on UNIX-like systems.
|
|
|
|
|
|
|
|
%prep
|
2012-12-12 13:43:00 +01:00
|
|
|
%setup -q
|
2021-11-08 16:27:32 +01:00
|
|
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
2011-11-16 11:36:05 +01:00
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
2021-11-08 16:27:32 +01:00
|
|
|
PREFIX="%{buildroot}%{_prefix}" ./install.sh
|
|
|
|
|
|
|
|
sed -i 's|#!/usr/bin/env bash|#!/bin/bash|g' %{buildroot}%{_bindir}/*
|
2011-11-16 11:36:05 +01:00
|
|
|
|
2021-11-08 16:27:32 +01:00
|
|
|
%check
|
|
|
|
%if %{with test}
|
|
|
|
bats test
|
|
|
|
%endif
|
2011-11-16 11:36:05 +01:00
|
|
|
|
|
|
|
%files
|
2021-11-08 16:27:32 +01:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
2011-11-16 11:36:05 +01:00
|
|
|
%{_bindir}/*
|
|
|
|
%dir %{_datadir}/ruby-build
|
|
|
|
%{_datadir}/ruby-build/*
|
|
|
|
|