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:
parent
90b5ff6484
commit
020eac390f
6
_service
6
_service
@ -2,11 +2,11 @@
|
||||
<service name="download_url">
|
||||
<param name="protocol">https</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 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="checksum">bffdf6f9572a9a2d3cf6d9cbc44a27470b5c9b77009abd3489876a2e452e44ac</param>
|
||||
<param name="checksum">1e3e03bf36e5ab253803fd62a83acca246f78d5cbf96ccaec305a9ece02661a1</param>
|
||||
</service>
|
||||
</services>
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bffdf6f9572a9a2d3cf6d9cbc44a27470b5c9b77009abd3489876a2e452e44ac
|
||||
size 71007
|
3
_service:download_url:v20211019.tar.gz
Normal file
3
_service:download_url:v20211019.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1e3e03bf36e5ab253803fd62a83acca246f78d5cbf96ccaec305a9ece02661a1
|
||||
size 73000
|
15
fix-test-requiring-git-repository.patch
Normal file
15
fix-test-requiring-git-repository.patch
Normal 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
|
@ -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>
|
||||
|
||||
|
@ -1,44 +1,61 @@
|
||||
Name: ruby-build
|
||||
Version: 20210423
|
||||
Release: 0
|
||||
BuildArch: noarch
|
||||
License: MIT
|
||||
Group: Development/Languages/Ruby
|
||||
Url: https://github.com/rbenv/ruby-build
|
||||
Summary: Compile and install Ruby
|
||||
Source0: v%{version}.tar.gz
|
||||
Requires: bash
|
||||
Requires: curl
|
||||
Requires: gcc
|
||||
# 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: 20211019
|
||||
Release: 0
|
||||
BuildArch: noarch
|
||||
License: MIT
|
||||
Group: Development/Languages/Ruby
|
||||
Url: https://github.com/rbenv/ruby-build
|
||||
Summary: Compile and install Ruby
|
||||
Source0: v%{version}.tar.gz
|
||||
Patch0: fix-test-requiring-git-repository.patch
|
||||
%if %{with test}
|
||||
BuildRequires: bats
|
||||
%endif
|
||||
Requires: bash
|
||||
Requires: curl
|
||||
Requires: gcc
|
||||
# ruby MRI BuildRequires
|
||||
Requires: bison
|
||||
Requires: gdbm-devel
|
||||
Requires: gperf
|
||||
Requires: graphviz
|
||||
Requires: libjpeg-devel
|
||||
Requires: openssl-devel
|
||||
Requires: readline-devel
|
||||
Requires: tk-devel
|
||||
Requires: automake
|
||||
Requires: libffi-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Requires: bison
|
||||
Requires: gdbm-devel
|
||||
Requires: gperf
|
||||
Requires: graphviz
|
||||
Requires: libjpeg-devel
|
||||
Requires: openssl-devel
|
||||
Requires: readline-devel
|
||||
Requires: tk-devel
|
||||
Requires: automake
|
||||
Requires: libffi-devel
|
||||
|
||||
%description
|
||||
ruby-build provides a simple way to compile and install different versions of Ruby on UNIX-like systems.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
%__mkdir_p %{buildroot}%{_bindir}
|
||||
cp bin/* %{buildroot}%{_bindir}
|
||||
PREFIX="%{buildroot}%{_prefix}" ./install.sh
|
||||
|
||||
%__mkdir_p %{buildroot}%{_datadir}/ruby-build
|
||||
cp share/ruby-build/* %{buildroot}%{_datadir}/ruby-build
|
||||
sed -i 's|#!/usr/bin/env bash|#!/bin/bash|g' %{buildroot}%{_bindir}/*
|
||||
|
||||
%check
|
||||
%if %{with test}
|
||||
bats test
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(-,root, root)
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{_bindir}/*
|
||||
%dir %{_datadir}/ruby-build
|
||||
%{_datadir}/ruby-build/*
|
||||
|
Loading…
Reference in New Issue
Block a user