2cab32c515
- Update to version 20220610. Changelog: //github.com/rbenv/ruby-build/releases/tag/v20220610 * Skip building docs when building openssl * See openssl/openssl#8170 * The install_sw target exists since 1.0.0 or earlier: https://github.com/openssl/openssl/blob/OpenSSL_1_0_0-stable/Makefile.org * Re-enable ssldir creation target for openssl install Prior commit attempts to shorten install by omitting documentation install, however an additional target is needed to get the conf dirs for capturing the PEMs et al. * OpenSSL 1.1+ needs the extra install_ssldirs target to install certificates * Add Darwin-arm64 and Linux-aarch64 for truffleruby-dev and truffleruby+graalvm-dev OBS-URL: https://build.opensuse.org/request/show/982147 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby:extensions/ruby-build?expand=0&rev=48
82 lines
2.0 KiB
RPMSpec
82 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package ruby-build
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
# 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: 20220610
|
|
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: automake
|
|
Requires: gdbm-devel
|
|
Requires: gperf
|
|
Requires: graphviz
|
|
Requires: libffi-devel
|
|
Requires: libjpeg-devel
|
|
Requires: openssl-devel
|
|
Requires: readline-devel
|
|
Requires: tk-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/*
|
|
|
|
%changelog
|