|
|
@ -3,8 +3,8 @@
|
|
|
|
%bcond_without tests
|
|
|
|
%bcond_without tests
|
|
|
|
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 1.8.7
|
|
|
|
Version: 1.8.11
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: New wave Internationalization support for Ruby
|
|
|
|
Summary: New wave Internationalization support for Ruby
|
|
|
|
# `BSD or Ruby` due to header of lib/i18n/gettext/po_parser.rb
|
|
|
|
# `BSD or Ruby` due to header of lib/i18n/gettext/po_parser.rb
|
|
|
|
License: MIT and (BSD or Ruby)
|
|
|
|
License: MIT and (BSD or Ruby)
|
|
|
@ -12,7 +12,7 @@ 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
|
|
|
|
# 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
|
|
|
|
# git clone --no-checkout https://github.com/ruby-i18n/i18n
|
|
|
|
# cd i18n && git archive -v -o i18n-1.8.7-tests.txz v1.8.7 test
|
|
|
|
# cd i18n && git archive -v -o i18n-1.8.11-tests.txz v1.8.11 test
|
|
|
|
Source1: %{gem_name}-%{version}-tests.txz
|
|
|
|
Source1: %{gem_name}-%{version}-tests.txz
|
|
|
|
BuildRequires: ruby
|
|
|
|
BuildRequires: ruby
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
BuildRequires: ruby(release)
|
|
|
@ -58,9 +58,15 @@ ln -s %{_builddir}/test .
|
|
|
|
# Bundler just complicates everything in our case, remove it.
|
|
|
|
# Bundler just complicates everything in our case, remove it.
|
|
|
|
sed -i -e "/require 'bundler\/setup'/ s/^/#/" test/test_helper.rb
|
|
|
|
sed -i -e "/require 'bundler\/setup'/ s/^/#/" test/test_helper.rb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Mocha needs to be required differently
|
|
|
|
|
|
|
|
# TODO: PR @ https://github.com/ruby-i18n/i18n/edit/master/test/test_helper.rb#L16
|
|
|
|
|
|
|
|
sed -i 's/\(require .mocha\/\)setup/\1minitest/' test/test_helper.rb
|
|
|
|
|
|
|
|
|
|
|
|
# Tests are failing without LANG environment is set.
|
|
|
|
# Tests are failing without LANG environment is set.
|
|
|
|
# https://github.com/svenfuchs/i18n/issues/115
|
|
|
|
# https://github.com/svenfuchs/i18n/issues/115
|
|
|
|
LANG=C.utf8 ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
|
|
|
LANG=C.utf8 \
|
|
|
|
|
|
|
|
find ./test/ -type f -name '*_test.rb' -exec \
|
|
|
|
|
|
|
|
ruby -Ilib:test '{}' \;
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
@ -76,6 +82,10 @@ popd
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Tue Jan 25 2022 Pavel Valena <pvalena@redhat.com> - 1.8.11-1
|
|
|
|
|
|
|
|
- Update to i18n 1.8.11.
|
|
|
|
|
|
|
|
Resolves: rhbz#1923812
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.7-4
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.7-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|