ruby-build/ruby-build.spec
Lukas Müller a34198ddab Accepting request 1120355 from home:expeehaa:branches:devel:languages:ruby:extensions
- Update to version 20231025.
  Changelog: https://github.com/rbenv/ruby-build/releases/tag/v20231025
  * Cleanup in truffleruby+graalvm installation by @mislav in #2272
  * Avoid compiling OpenSSL if the user supplied `--with-openssl-dir` on the command line by @mislav in #2274
  * Cleanup in OpenSSL compilation step by @mislav in #2270
  * Avoiding excessive cd when fetching git repos by @mislav in #2273
  * Remove implicit LDFLAGS, CPPFLAGS, and "ldflags_dirs" build step by @mislav in #2271
  * Add tests for functionality related to linking to OpenSSL by @mislav in #2276
  * Add JRuby 9.4.4.0 by @headius in #2277
  * Remove strict `openssl@1.1` requirement from TruffleRuby, jruby-dev definitions by @mislav in #2278
  * Fix fixing JRuby shebangs on macOS by @mislav in #2280
  * Skip ri/rdoc when installing jruby-launcher by @eregon in #2281
  * Bump up OpenSSL 3.1.4 by @hsbt in #2283
  * Add TruffleRuby and TruffleRuby GraalVM 23.1.1 by @eregon in #2284

OBS-URL: https://build.opensuse.org/request/show/1120355
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby:extensions/ruby-build?expand=0&rev=130
2023-10-25 17:10:34 +00:00

134 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: 20231025
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/*
%files dependencies-mri
%files dependencies-jruby
%files dependencies-truffleruby
%files dependencies-mruby
%files dependencies-picoruby
%changelog