update to 1.8.11
(cherry picked from commit 7f6a88d7c9559961c6fd16185c2312ac29eb0579)
This commit is contained in:
parent
4282386fbe
commit
dcb73b6726
BIN
i18n-1.1.1.gem
BIN
i18n-1.1.1.gem
Binary file not shown.
BIN
i18n-1.8.11-tests.txz
Normal file
BIN
i18n-1.8.11-tests.txz
Normal file
Binary file not shown.
BIN
i18n-1.8.11.gem
Normal file
BIN
i18n-1.8.11.gem
Normal file
Binary file not shown.
@ -1,13 +1,17 @@
|
|||||||
%global gem_name i18n
|
%global gem_name i18n
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 1.1.1
|
Version: 1.8.11
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: New wave Internationalization support for Ruby
|
Summary: New wave Internationalization support for Ruby
|
||||||
License: MIT and (BSD or 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
|
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: 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
|
BuildArch: noarch
|
||||||
%description
|
%description
|
||||||
Ruby Internationalization and localization solution.
|
Ruby Internationalization and localization solution.
|
||||||
@ -20,7 +24,7 @@ BuildArch: noarch
|
|||||||
Documentation for %{name}.
|
Documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{gem_name}-%{version}
|
%setup -q -n %{gem_name}-%{version} -b1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
gem build ../%{gem_name}-%{version}.gemspec
|
gem build ../%{gem_name}-%{version}.gemspec
|
||||||
@ -33,8 +37,12 @@ cp -a .%{gem_dir}/* \
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
pushd .%{gem_instdir}
|
pushd .%{gem_instdir}
|
||||||
|
ln -s %{_builddir}/test .
|
||||||
sed -i -e "/require 'bundler\/setup'/ s/^/#/" test/test_helper.rb
|
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
|
popd
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -47,9 +55,10 @@ popd
|
|||||||
%files doc
|
%files doc
|
||||||
%doc %{gem_docdir}
|
%doc %{gem_docdir}
|
||||||
%doc %{gem_instdir}/README.md
|
%doc %{gem_instdir}/README.md
|
||||||
%{gem_instdir}/gemfiles
|
|
||||||
%{gem_instdir}/test
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Aug 19 2020 tuShenmei <tushenmei@huawei.com> - 1.1.1-1
|
||||||
- package init
|
- package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user