!4 [sync] PR-2: update to 1.8.11

From: @openeuler-sync-bot 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2022-03-04 09:08:54 +00:00 committed by Gitee
commit abc226c82d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 16 additions and 7 deletions

Binary file not shown.

BIN
i18n-1.8.11-tests.txz Normal file

Binary file not shown.

BIN
i18n-1.8.11.gem Normal file

Binary file not shown.

View File

@ -1,13 +1,17 @@
%global gem_name i18n
Name: rubygem-%{gem_name}
Version: 1.1.1
Version: 1.8.11
Release: 1
Summary: New wave Internationalization support for Ruby
License: MIT and (BSD or Ruby)
URL: http://github.com/svenfuchs/i18n
URL: https://github.com/ruby-i18n/i18n
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# Since 1.8.2 tests are not shipped with the gem, but can be checked like
# git clone --no-checkout https://github.com/ruby-i18n/i18n
# cd i18n && git archive -v -o i18n-1.8.11-tests.txz v1.8.11 test
Source1: %{gem_name}-%{version}-tests.txz
BuildRequires: ruby ruby(release) rubygems-devel rubygem(minitest) rubygem(mocha)
BuildRequires: rubygem(test_declarative) rubygem(concurrent-ruby)
BuildRequires: rubygem(test_declarative) rubygem(concurrent-ruby) rubygem(activesupport)
BuildArch: noarch
%description
Ruby Internationalization and localization solution.
@ -20,7 +24,7 @@ BuildArch: noarch
Documentation for %{name}.
%prep
%setup -q -n %{gem_name}-%{version}
%setup -q -n %{gem_name}-%{version} -b1
%build
gem build ../%{gem_name}-%{version}.gemspec
@ -33,8 +37,12 @@ cp -a .%{gem_dir}/* \
%check
pushd .%{gem_instdir}
ln -s %{_builddir}/test .
sed -i -e "/require 'bundler\/setup'/ s/^/#/" test/test_helper.rb
LANG=C.utf8 ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
sed -i 's/\(require .mocha\/\)setup/\1minitest/' test/test_helper.rb
LANG=C.utf8 \
find ./test/ -type f -name '*_test.rb' -exec \
ruby -Ilib:test '{}' \;
popd
%files
@ -47,9 +55,10 @@ popd
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/README.md
%{gem_instdir}/gemfiles
%{gem_instdir}/test
%changelog
* Wed Mar 02 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 1.8.11-1
- update to 1.8.11
* Wed Aug 19 2020 tuShenmei <tushenmei@huawei.com> - 1.1.1-1
- package init