|
|
a74a2e |
#
|
|
|
a74a2e |
# spec file for package ruby-build
|
|
|
a74a2e |
#
|
|
Bernhard M. Wiedemann |
47b655 |
# Copyright (c) 2023 SUSE LLC
|
|
|
a74a2e |
#
|
|
|
a74a2e |
# All modifications and additions to the file contributed by third parties
|
|
|
a74a2e |
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
a74a2e |
# upon. The license for this file, and modifications and additions to the
|
|
|
a74a2e |
# file, is the same license as for the pristine package itself (unless the
|
|
|
a74a2e |
# license for the pristine package is not an Open Source License, in which
|
|
|
a74a2e |
# case the license is the MIT License). An "Open Source License" is a
|
|
|
a74a2e |
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
a74a2e |
# published by the Open Source Initiative.
|
|
|
a74a2e |
|
|
|
a74a2e |
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
a74a2e |
#
|
|
|
a74a2e |
|
|
|
4c16c3 |
|
|
|
a74a2e |
# SLE does not provide "bats", which is required for testing.
|
|
|
a74a2e |
%if %{undefined sle_version}
|
|
|
a74a2e |
%bcond_without test
|
|
|
a74a2e |
%else
|
|
|
a74a2e |
%bcond_with test
|
|
|
a74a2e |
%endif
|
|
|
a74a2e |
|
|
|
a74a2e |
Name: ruby-build
|
|
Bernhard M. Wiedemann |
514c2a |
Version: 20230202
|
|
|
a74a2e |
Release: 0
|
|
|
a74a2e |
BuildArch: noarch
|
|
|
a74a2e |
License: MIT
|
|
|
a74a2e |
Group: Development/Languages/Ruby
|
|
|
a74a2e |
URL: https://github.com/rbenv/ruby-build
|
|
|
a74a2e |
Summary: Compile and install Ruby
|
|
|
a74a2e |
Source0: https://github.com/rbenv/ruby-build/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
a74a2e |
Patch0: fix-test-requiring-git-repository.patch
|
|
|
a74a2e |
%if %{with test}
|
|
|
a74a2e |
BuildRequires: bats
|
|
|
a74a2e |
%endif
|
|
|
a74a2e |
Requires: bash
|
|
|
a74a2e |
Requires: curl
|
|
|
045974 |
Requires: gzip
|
|
|
b829ff |
Requires: make
|
|
|
b829ff |
Requires: tar
|
|
|
045974 |
# Maybe Requires would be better.
|
|
|
045974 |
Recommends: %{name}-dependencies-mri
|
|
|
045974 |
|
|
|
045974 |
%description
|
|
|
045974 |
ruby-build provides a simple way to compile and install different versions of Ruby on UNIX-like systems.
|
|
|
045974 |
|
|
|
045974 |
%package dependencies-mri
|
|
|
045974 |
Summary: ruby-build dependencies for building MRI
|
|
|
a74a2e |
Requires: automake
|
|
|
045974 |
Requires: bison
|
|
|
045974 |
Requires: gcc
|
|
|
a74a2e |
Requires: gdbm-devel
|
|
|
a74a2e |
Requires: gperf
|
|
|
a74a2e |
Requires: graphviz
|
|
|
a74a2e |
Requires: libffi-devel
|
|
|
a74a2e |
Requires: libjpeg-devel
|
|
|
b829ff |
Requires: libyaml-devel
|
|
|
a74a2e |
Requires: openssl-devel
|
|
|
a74a2e |
Requires: readline-devel
|
|
|
a74a2e |
Requires: tk-devel
|
|
|
a74a2e |
|
|
|
045974 |
%description dependencies-mri
|
|
|
045974 |
ruby-build dependencies for building MRI.
|
|
|
045974 |
|
|
|
045974 |
%package dependencies-jruby
|
|
|
045974 |
Summary: ruby-build dependencies for building JRuby
|
|
|
045974 |
Requires: gcc-c++
|
|
|
045974 |
|
|
|
045974 |
%description dependencies-jruby
|
|
|
045974 |
ruby-build dependencies for building JRuby.
|
|
|
045974 |
|
|
|
045974 |
%package dependencies-truffleruby
|
|
|
045974 |
Summary: ruby-build dependencies for building TruffleRuby
|
|
|
045974 |
Requires: gcc
|
|
|
045974 |
Requires: openssl-devel
|
|
|
045974 |
|
|
|
045974 |
%description dependencies-truffleruby
|
|
|
045974 |
ruby-build dependencies for building TruffleRuby.
|
|
|
045974 |
|
|
|
045974 |
%package dependencies-mruby
|
|
|
045974 |
Summary: ruby-build dependencies for building mruby
|
|
|
045974 |
Requires: gcc
|
|
|
045974 |
Requires: git
|
|
|
045974 |
|
|
|
045974 |
%description dependencies-mruby
|
|
|
045974 |
ruby-build dependencies for building mruby.
|
|
|
045974 |
|
|
|
045974 |
%package dependencies-picoruby
|
|
|
045974 |
Summary: ruby-build dependencies for building PicoRuby
|
|
|
045974 |
Requires: gcc
|
|
|
045974 |
Requires: git
|
|
|
045974 |
|
|
|
045974 |
%description dependencies-picoruby
|
|
|
045974 |
ruby-build dependencies for building PicoRuby.
|
|
|
a74a2e |
|
|
|
a74a2e |
%prep
|
|
|
a74a2e |
%setup -q
|
|
|
a74a2e |
|
|
|
a74a2e |
%patch0 -p1
|
|
|
a74a2e |
|
|
|
a74a2e |
%build
|
|
|
a74a2e |
|
|
|
a74a2e |
%install
|
|
|
a74a2e |
PREFIX="%{buildroot}%{_prefix}" ./install.sh
|
|
|
a74a2e |
|
|
|
a74a2e |
sed -i 's|#!/usr/bin/env bash|#!/bin/bash|g' %{buildroot}%{_bindir}/*
|
|
|
a74a2e |
|
|
|
a74a2e |
%check
|
|
|
a74a2e |
%if %{with test}
|
|
|
a74a2e |
bats test
|
|
|
a74a2e |
%endif
|
|
|
a74a2e |
|
|
|
a74a2e |
%files
|
|
|
a74a2e |
%license LICENSE
|
|
|
a74a2e |
%doc README.md
|
|
|
a74a2e |
%{_bindir}/*
|
|
|
a74a2e |
%dir %{_datadir}/ruby-build
|
|
|
a74a2e |
%{_datadir}/ruby-build/*
|
|
|
a74a2e |
|
|
|
045974 |
%files dependencies-mri
|
|
|
045974 |
|
|
|
045974 |
%files dependencies-jruby
|
|
|
045974 |
|
|
|
045974 |
%files dependencies-truffleruby
|
|
|
045974 |
|
|
|
045974 |
%files dependencies-mruby
|
|
|
045974 |
|
|
|
045974 |
%files dependencies-picoruby
|
|
|
045974 |
|
|
|
a74a2e |
%changelog
|