forked from pool/ruby-build
c4ef747bf9
- Update to version 20230208.1. Changelog: https://github.com/rbenv/ruby-build/releases/tag/v20230208.1 * Add Ruby 3.2.1 by @pmor in #2147 * Remove obsolete `topaz-dev` formula by @hsbt in #2146 - Changes from version 20230208. Changelog: https://github.com/rbenv/ruby-build/releases/tag/v20230208 * Remove patch for openssl-1.1.1q by @eregon in #2139 * Add JRuby 9.4.1.0 by @headius in #2138 * Added dependabot update for GitHub Actions by @hsbt in #2141 * Bump actions/checkout from 2 to 3 by @dependabot in #2142 * Update old versions of JRuby URLs by @hsbt in #2145 * Bump up latest stable versions of OpenSSL by @hsbt in #2140 * Bump mislav/bump-homebrew-formula-action from 1 to 2 by @dependabot in #2143 * Bump redhat-plumbers-in-action/differential-shellcheck from 3 to 4 by @dependabot in #2144 OBS-URL: https://build.opensuse.org/request/show/1063892 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby:extensions/ruby-build?expand=0&rev=89
134 lines
3.3 KiB
RPMSpec
134 lines
3.3 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: 20230208.1
|
|
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: ruby-build dependencies for building 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
|
|
ruby-build dependencies for building MRI.
|
|
|
|
%package dependencies-jruby
|
|
Summary: ruby-build dependencies for building JRuby
|
|
Requires: gcc-c++
|
|
|
|
%description dependencies-jruby
|
|
ruby-build dependencies for building JRuby.
|
|
|
|
%package dependencies-truffleruby
|
|
Summary: ruby-build dependencies for building TruffleRuby
|
|
Requires: gcc
|
|
Requires: openssl-devel
|
|
|
|
%description dependencies-truffleruby
|
|
ruby-build dependencies for building TruffleRuby.
|
|
|
|
%package dependencies-mruby
|
|
Summary: ruby-build dependencies for building mruby
|
|
Requires: gcc
|
|
Requires: git
|
|
|
|
%description dependencies-mruby
|
|
ruby-build dependencies for building mruby.
|
|
|
|
%package dependencies-picoruby
|
|
Summary: ruby-build dependencies for building PicoRuby
|
|
Requires: gcc
|
|
Requires: git
|
|
|
|
%description dependencies-picoruby
|
|
ruby-build dependencies for building 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
|