SHA256
1
0
forked from pool/ruby-build
ruby-build/ruby-build.spec
Lukas Müller 0674f47a9b Accepting request 1124141 from home:expeehaa:branches:devel:languages:ruby:extensions
- Update to version 20231107.
  Changelog: https://github.com/rbenv/ruby-build/releases/tag/v20231107
  * ruby-build now prints external commands as they are executed - @mislav in #2230
    Now there is more transparency to what ruby-build does: at the glance of the output, it should be clear that ruby-build is mostly just a wrapper around the curl → untar → `./configure` → `make` → `make install` combo. Furthermore, when an error arises, it should now be more apparent which build step failed, even before having to dive into the log file.
    Additionally, network downloaders such as `curl`, `wget`, and `git` are now connected directly to the terminal, allowing them to display progress information.
    In `ruby-build --verbose` mode, the output of all external commands is now connected to the same stdout/stderr as the ruby-build process, and a log file doesn't get created anymore.
    The "BUILD FAILED" output is now improved: it includes CPU architecture information and is cleaner, drawing attention to the location of the build log on disk. (Most often, the real cause of a build failure is only discoverable via the log.)
  * Automatically link to Homebrew OpenSSL by @mislav in #2275 #2292
    With this change, it is no longer necessary to set `RUBY_CONFIGURE_OPTS=--with-openssl-dir=...` after doing `brew install openssl@3`. An appropriate OpenSSL version installed with Homebrew will get used for configuring Ruby automatically, even if the formula is "keg-only".
  * Add JRuby 9.4.5.0 and 9.3.13.0 by @headius in #2289
  * Add `ruby-build(1)` man page by @mislav in #2297
  * Respect NO_COLOR and CLICOLOR_FORCE by @mislav in #2295
  * Remove support for Topaz and Maglev by @mislav in #2294
  * Unmark Ruby 2.7 as soon-to-be-EOL since it's already EOL by @mislav in #2286

OBS-URL: https://build.opensuse.org/request/show/1124141
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby:extensions/ruby-build?expand=0&rev=132
2023-11-08 00:18:07 +00:00

135 lines
3.4 KiB
RPMSpec

#
# spec file for package ruby-build
#
# Copyright (c) 2023 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: 20231107
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: gzip
Requires: make
Requires: tar
# Maybe Requires would be better.
Recommends: %{name}-dependencies-mri
%description
ruby-build provides a simple way to compile and install different versions of Ruby on UNIX-like systems.
%package dependencies-mri
Summary: Meta package for dependencies to build MRI
Requires: automake
Requires: bison
Requires: gcc
Requires: gdbm-devel
Requires: gperf
Requires: graphviz
Requires: libffi-devel
Requires: libjpeg-devel
Requires: libyaml-devel
Requires: openssl-devel
Requires: readline-devel
Requires: tk-devel
%description dependencies-mri
Meta package for ruby-build dependencies to build MRI.
%package dependencies-jruby
Summary: Meta package for dependencies to build JRuby
Requires: gcc-c++
%description dependencies-jruby
Meta package for ruby-build dependencies to build JRuby.
%package dependencies-truffleruby
Summary: Meta package for dependencies to build TruffleRuby
Requires: gcc
Requires: openssl-devel
%description dependencies-truffleruby
Meta package for ruby-build dependencies to build TruffleRuby.
%package dependencies-mruby
Summary: Meta package for dependencies to build mruby
Requires: gcc
Requires: git
%description dependencies-mruby
Meta package for ruby-build dependencies to build mruby.
%package dependencies-picoruby
Summary: Meta package for dependencies to build PicoRuby
Requires: gcc
Requires: git
%description dependencies-picoruby
Meta package for ruby-build dependencies to build PicoRuby.
%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/*
%{_mandir}/man1/ruby-build*
%files dependencies-mri
%files dependencies-jruby
%files dependencies-truffleruby
%files dependencies-mruby
%files dependencies-picoruby
%changelog