package initialize
This commit is contained in:
parent
2601d64374
commit
4ac46fd5cb
25
rubygem-shindo-0.3.8-ubygems-was-dropped-in-Ruby-2.5.patch
Normal file
25
rubygem-shindo-0.3.8-ubygems-was-dropped-in-Ruby-2.5.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From ff9435b1a402100384451a55c2d507bf19038a8b Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
|
||||||
|
Date: Mon, 8 Jan 2018 16:49:29 +0100
|
||||||
|
Subject: [PATCH] 'ubygems' was dropped in Ruby 2.5.
|
||||||
|
|
||||||
|
---
|
||||||
|
tests/tests_helper.rb | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/tests/tests_helper.rb b/tests/tests_helper.rb
|
||||||
|
index 5a1605f..ab251de 100644
|
||||||
|
--- a/tests/tests_helper.rb
|
||||||
|
+++ b/tests/tests_helper.rb
|
||||||
|
@@ -3,7 +3,7 @@ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'shindo'
|
||||||
|
BIN = File.join(File.dirname(__FILE__), '..', 'bin', 'shindo')
|
||||||
|
|
||||||
|
def bin(arguments)
|
||||||
|
- `RUBYOPT="-rubygems" #{BIN} #{arguments}`
|
||||||
|
+ `RUBYOPT="-rrubygems" #{BIN} #{arguments}`
|
||||||
|
end
|
||||||
|
|
||||||
|
def path(name)
|
||||||
|
--
|
||||||
|
2.15.1
|
||||||
|
|
||||||
65
rubygem-shindo.spec
Normal file
65
rubygem-shindo.spec
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
%global gem_name shindo
|
||||||
|
Name: rubygem-%{gem_name}
|
||||||
|
Version: 0.3.8
|
||||||
|
Release: 1
|
||||||
|
Summary: Simple depth first Ruby testing
|
||||||
|
License: MIT
|
||||||
|
URL: http://github.com/geemus/shindo
|
||||||
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
|
# 'ubygems' script was dropped from Ruby 2.5.
|
||||||
|
# https://github.com/geemus/shindo/pull/17
|
||||||
|
Patch0: rubygem-shindo-0.3.8-ubygems-was-dropped-in-Ruby-2.5.patch
|
||||||
|
BuildRequires: ruby(release) rubygems-devel ruby rubygem(formatador) >= 0.1.1
|
||||||
|
BuildArch: noarch
|
||||||
|
%description
|
||||||
|
Work with your tests, not against them.
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Documentation for %{name}
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
%description doc
|
||||||
|
Documentation for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{gem_name}-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
gem build ../%{gem_name}-%{version}.gemspec
|
||||||
|
%gem_install
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
|
cp -a .%{gem_dir}/* \
|
||||||
|
%{buildroot}%{gem_dir}/
|
||||||
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
|
cp -a .%{_bindir}/* \
|
||||||
|
%{buildroot}%{_bindir}/
|
||||||
|
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
||||||
|
|
||||||
|
%check
|
||||||
|
pushd .%{gem_instdir}
|
||||||
|
RUBYOPT="-I." bin/shindo
|
||||||
|
popd
|
||||||
|
|
||||||
|
%files
|
||||||
|
%dir %{gem_instdir}
|
||||||
|
%{_bindir}/shindo
|
||||||
|
%{_bindir}/shindont
|
||||||
|
%{gem_instdir}/bin
|
||||||
|
%{gem_libdir}
|
||||||
|
%exclude %{gem_cache}
|
||||||
|
%{gem_spec}
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%doc %{gem_docdir}
|
||||||
|
%{gem_instdir}/Gemfile
|
||||||
|
%doc %{gem_instdir}/README.rdoc
|
||||||
|
%{gem_instdir}/Rakefile
|
||||||
|
%{gem_instdir}/shindo.gemspec
|
||||||
|
%{gem_instdir}/tests
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Aug 19 2020 xiezheng <xiezheng4@huawei.com> - 0.3.8-1
|
||||||
|
- package init
|
||||||
4
rubygem-shindo.yaml
Normal file
4
rubygem-shindo.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: geemus/shindo
|
||||||
|
tag_prefix: "v"
|
||||||
|
separator: "."
|
||||||
BIN
shindo-0.3.8.gem
Normal file
BIN
shindo-0.3.8.gem
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user