forked from pool/ruby-build
01bb9eeb87
- Update to version 20220324. Changelog: https://github.com/rbenv/ruby-build/releases/tag/v20220324 * Bump up OpenSSL 1.1.1n and 3.0.2 * Update openssl version at 2.4.0-preview versions * Add JRuby 9.3.4.0 OBS-URL: https://build.opensuse.org/request/show/964743 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby:extensions/ruby-build?expand=0&rev=42
63 lines
1.3 KiB
RPMSpec
63 lines
1.3 KiB
RPMSpec
# 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
|
|
Version: 20220324
|
|
Release: 0
|
|
BuildArch: noarch
|
|
License: MIT
|
|
Group: Development/Languages/Ruby
|
|
Url: https://github.com/rbenv/ruby-build
|
|
Summary: Compile and install Ruby
|
|
Source0: https://github.com/rbenv/ruby-build/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
Patch0: fix-test-requiring-git-repository.patch
|
|
%if %{with test}
|
|
BuildRequires: bats
|
|
%endif
|
|
Requires: bash
|
|
Requires: curl
|
|
Requires: gcc
|
|
# ruby MRI BuildRequires
|
|
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
|
|
|
|
%description
|
|
ruby-build provides a simple way to compile and install different versions of Ruby on UNIX-like systems.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%patch0 -p1
|
|
|
|
%build
|
|
|
|
%install
|
|
PREFIX="%{buildroot}%{_prefix}" ./install.sh
|
|
|
|
sed -i 's|#!/usr/bin/env bash|#!/bin/bash|g' %{buildroot}%{_bindir}/*
|
|
|
|
%check
|
|
%if %{with test}
|
|
bats test
|
|
%endif
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/*
|
|
%dir %{_datadir}/ruby-build
|
|
%{_datadir}/ruby-build/*
|
|
|