Accepting request 929886 from home:expeehaa:branches:devel:languages:ruby:extensions

- Update to v20211019.
- Changelog: https://github.com/rbenv/ruby-build/releases/tag/v20211019
- Enable testing.

OBS-URL: https://build.opensuse.org/request/show/929886
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby:extensions/ruby-build?expand=0&rev=34
This commit is contained in:
Andrey Gankov 2021-11-08 15:27:32 +00:00 committed by Git OBS Bridge
parent 90b5ff6484
commit 020eac390f
6 changed files with 73 additions and 34 deletions

View File

@ -2,11 +2,11 @@
<service name="download_url"> <service name="download_url">
<param name="protocol">https</param> <param name="protocol">https</param>
<param name="host">github.com</param> <param name="host">github.com</param>
<param name="path">rbenv/ruby-build/archive/v20210423.tar.gz</param> <param name="path">rbenv/ruby-build/archive/v20211019.tar.gz</param>
</service> </service>
<service name="verify_file"> <service name="verify_file">
<param name="file">_service:download_url:v20210423.tar.gz</param> <param name="file">_service:download_url:v20211019.tar.gz</param>
<param name="verifier">sha256</param> <param name="verifier">sha256</param>
<param name="checksum">bffdf6f9572a9a2d3cf6d9cbc44a27470b5c9b77009abd3489876a2e452e44ac</param> <param name="checksum">1e3e03bf36e5ab253803fd62a83acca246f78d5cbf96ccaec305a9ece02661a1</param>
</service> </service>
</services> </services>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bffdf6f9572a9a2d3cf6d9cbc44a27470b5c9b77009abd3489876a2e452e44ac
size 71007

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1e3e03bf36e5ab253803fd62a83acca246f78d5cbf96ccaec305a9ece02661a1
size 73000

View File

@ -0,0 +1,15 @@
diff --git a/test/rbenv.bats b/test/rbenv.bats
index bca34d3..3b981f3 100644
--- a/test/rbenv.bats
+++ b/test/rbenv.bats
@@ -66,9 +66,7 @@ The following versions contain \`1.9.3' in the name:
See all available versions with \`rbenv install --list'.
-If the version you need is missing, try upgrading ruby-build:
-
- git -C ${BATS_TEST_DIRNAME}/.. pull
+If the version you need is missing, try upgrading ruby-build.
OUT
unstub ruby-build

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Nov 6 14:34:40 UTC 2021 - Lukas Müller <expeehaa@outlook.com>
- Update to v20211019.
- Changelog: https://github.com/rbenv/ruby-build/releases/tag/v20211019
- Enable testing.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Apr 27 07:45:14 UTC 2021 - Andrey Gankov <gav@qsolution.ru> Tue Apr 27 07:45:14 UTC 2021 - Andrey Gankov <gav@qsolution.ru>

View File

@ -1,5 +1,12 @@
# 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 Name: ruby-build
Version: 20210423 Version: 20211019
Release: 0 Release: 0
BuildArch: noarch BuildArch: noarch
License: MIT License: MIT
@ -7,6 +14,10 @@ Group: Development/Languages/Ruby
Url: https://github.com/rbenv/ruby-build Url: https://github.com/rbenv/ruby-build
Summary: Compile and install Ruby Summary: Compile and install Ruby
Source0: v%{version}.tar.gz Source0: v%{version}.tar.gz
Patch0: fix-test-requiring-git-repository.patch
%if %{with test}
BuildRequires: bats
%endif
Requires: bash Requires: bash
Requires: curl Requires: curl
Requires: gcc Requires: gcc
@ -21,24 +32,30 @@ Requires: readline-devel
Requires: tk-devel Requires: tk-devel
Requires: automake Requires: automake
Requires: libffi-devel Requires: libffi-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
ruby-build provides a simple way to compile and install different versions of Ruby on UNIX-like systems. ruby-build provides a simple way to compile and install different versions of Ruby on UNIX-like systems.
%prep %prep
%setup -q %setup -q
%patch0 -p1
%build %build
%install %install
%__mkdir_p %{buildroot}%{_bindir} PREFIX="%{buildroot}%{_prefix}" ./install.sh
cp bin/* %{buildroot}%{_bindir}
%__mkdir_p %{buildroot}%{_datadir}/ruby-build sed -i 's|#!/usr/bin/env bash|#!/bin/bash|g' %{buildroot}%{_bindir}/*
cp share/ruby-build/* %{buildroot}%{_datadir}/ruby-build
%check
%if %{with test}
bats test
%endif
%files %files
%defattr(-,root, root) %license LICENSE
%doc README.md
%{_bindir}/* %{_bindir}/*
%dir %{_datadir}/ruby-build %dir %{_datadir}/ruby-build
%{_datadir}/ruby-build/* %{_datadir}/ruby-build/*