2022-05-24 02:19:28 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
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
|
2022-12-25 21:20:02 +01:00
|
|
|
Version: 20221225
|
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
|
|
|
|
Summary: ruby-build dependencies for building 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
|
|
|
|
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.
|
2011-11-16 11:36:05 +01:00
|
|
|
|
2022-09-12 04:40:25 +02:00
|
|
|
%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.
|
|
|
|
|
2011-11-16 11:36:05 +01:00
|
|
|
%prep
|
2012-12-12 13:43:00 +01:00
|
|
|
%setup -q
|
2021-11-08 16:27:32 +01:00
|
|
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
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/*
|
|
|
|
|
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
|