2022-05-24 02:19:28 +02:00
|
|
|
#
|
|
|
|
# spec file for package ruby-build
|
|
|
|
#
|
2024-01-16 17:15:23 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2022-05-24 02:19:28 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2022-06-11 15:58:23 +02:00
|
|
|
|
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
|
|
|
|
|
2022-05-24 02:19:28 +02:00
|
|
|
Name: ruby-build
|
2024-06-12 14:44:02 +02:00
|
|
|
Version: 20240612
|
2022-05-24 02:19:28 +02:00
|
|
|
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
|
2021-11-08 16:27:32 +01:00
|
|
|
%if %{with test}
|
2022-05-24 02:19:28 +02:00
|
|
|
BuildRequires: bats
|
2021-11-08 16:27:32 +01:00
|
|
|
%endif
|
2022-05-24 02:19:28 +02:00
|
|
|
Requires: bash
|
|
|
|
Requires: curl
|
2022-09-12 00:03:03 +02:00
|
|
|
Requires: gzip
|
2022-09-10 15:40:58 +02:00
|
|
|
Requires: make
|
|
|
|
Requires: tar
|
2022-09-12 00:03:03 +02:00
|
|
|
# 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
|
2023-03-11 19:15:15 +01:00
|
|
|
Summary: Meta package for dependencies to build MRI
|
2022-05-24 02:19:28 +02:00
|
|
|
Requires: automake
|
2022-09-12 00:03:03 +02:00
|
|
|
Requires: bison
|
|
|
|
Requires: gcc
|
2022-05-24 02:19:28 +02:00
|
|
|
Requires: gdbm-devel
|
|
|
|
Requires: gperf
|
|
|
|
Requires: graphviz
|
|
|
|
Requires: libffi-devel
|
|
|
|
Requires: libjpeg-devel
|
2022-09-10 15:40:58 +02:00
|
|
|
Requires: libyaml-devel
|
2022-05-24 02:19:28 +02:00
|
|
|
Requires: openssl-devel
|
|
|
|
Requires: readline-devel
|
|
|
|
Requires: tk-devel
|
2011-11-16 11:36:05 +01:00
|
|
|
|
2022-09-12 00:03:03 +02:00
|
|
|
%description dependencies-mri
|
2023-03-11 19:15:15 +01:00
|
|
|
Meta package for ruby-build dependencies to build MRI.
|
2022-09-12 00:03:03 +02:00
|
|
|
|
|
|
|
%package dependencies-jruby
|
2023-03-11 19:15:15 +01:00
|
|
|
Summary: Meta package for dependencies to build JRuby
|
2022-09-12 00:03:03 +02:00
|
|
|
Requires: gcc-c++
|
|
|
|
|
|
|
|
%description dependencies-jruby
|
2023-03-11 19:15:15 +01:00
|
|
|
Meta package for ruby-build dependencies to build JRuby.
|
2011-11-16 11:36:05 +01:00
|
|
|
|
2022-09-12 04:40:25 +02:00
|
|
|
%package dependencies-truffleruby
|
2023-03-11 19:15:15 +01:00
|
|
|
Summary: Meta package for dependencies to build TruffleRuby
|
2022-09-12 04:40:25 +02:00
|
|
|
Requires: gcc
|
|
|
|
Requires: openssl-devel
|
|
|
|
|
|
|
|
%description dependencies-truffleruby
|
2023-03-11 19:15:15 +01:00
|
|
|
Meta package for ruby-build dependencies to build TruffleRuby.
|
2022-09-12 04:40:25 +02:00
|
|
|
|
|
|
|
%package dependencies-mruby
|
2023-03-11 19:15:15 +01:00
|
|
|
Summary: Meta package for dependencies to build mruby
|
2022-09-12 04:40:25 +02:00
|
|
|
Requires: gcc
|
|
|
|
Requires: git
|
|
|
|
|
|
|
|
%description dependencies-mruby
|
2023-03-11 19:15:15 +01:00
|
|
|
Meta package for ruby-build dependencies to build mruby.
|
2022-09-12 04:40:25 +02:00
|
|
|
|
|
|
|
%package dependencies-picoruby
|
2023-03-11 19:15:15 +01:00
|
|
|
Summary: Meta package for dependencies to build PicoRuby
|
2022-09-12 04:40:25 +02:00
|
|
|
Requires: gcc
|
|
|
|
Requires: git
|
|
|
|
|
|
|
|
%description dependencies-picoruby
|
2023-03-11 19:15:15 +01:00
|
|
|
Meta package for ruby-build dependencies to build PicoRuby.
|
2022-09-12 04:40:25 +02:00
|
|
|
|
2011-11-16 11:36:05 +01:00
|
|
|
%prep
|
2024-02-23 16:12:37 +01:00
|
|
|
%autosetup -p1
|
2021-11-08 16:27:32 +01:00
|
|
|
|
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/*
|
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 01:18:07 +01:00
|
|
|
%{_mandir}/man1/ruby-build*
|
2011-11-16 11:36:05 +01:00
|
|
|
|
2022-09-12 00:03:03 +02:00
|
|
|
%files dependencies-mri
|
|
|
|
|
|
|
|
%files dependencies-jruby
|
|
|
|
|
2022-09-12 04:40:25 +02:00
|
|
|
%files dependencies-truffleruby
|
|
|
|
|
|
|
|
%files dependencies-mruby
|
|
|
|
|
|
|
|
%files dependencies-picoruby
|
|
|
|
|
2022-05-24 02:19:28 +02:00
|
|
|
%changelog
|