Update to i18n 1.7.0.

f38
Pavel Valena 5 years ago
parent 4e628443ec
commit b1233e76cf

1
.gitignore vendored

@ -1 +1,2 @@
/i18n-*.gem
/i18n-*-tests.txz

@ -1,13 +1,17 @@
%global gem_name i18n
Name: rubygem-%{gem_name}
Version: 1.1.1
Release: 4%{?dist}
Version: 1.7.0
Release: 1%{?dist}
Summary: New wave Internationalization support for Ruby
# `BSD or Ruby` due to header of lib/i18n/gettext/po_parser.rb
License: MIT and (BSD or Ruby)
URL: http://github.com/svenfuchs/i18n
URL: http://github.com/ruby-i18n/i18n
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# Since 1.7.0 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.7.0-tests.txz v1.7.0 test
Source1: %{gem_name}-%{version}-tests.txz
BuildRequires: ruby
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
@ -30,14 +34,10 @@ BuildArch: noarch
Documentation for %{name}.
%prep
%setup -q -n %{gem_name}-%{version}
%setup -q -n %{gem_name}-%{version} -b1
%build
# Create the gem as gem install only works on a gem file
gem build ../%{gem_name}-%{version}.gemspec
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
# by default, so that we can move it into the buildroot in %%install
%gem_install
%install
@ -47,6 +47,7 @@ cp -a .%{gem_dir}/* \
%check
pushd .%{gem_instdir}
ln -s %{_builddir}/test .
# Bundler just complicates everything in our case, remove it.
sed -i -e "/require 'bundler\/setup'/ s/^/#/" test/test_helper.rb
@ -70,6 +71,9 @@ popd
%{gem_instdir}/test
%changelog
* Wed Oct 16 2019 Pavel Valena <pvalena@redhat.com> - 1.7.0-1
- Update to i18n 1.7.0.
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

@ -1 +1,2 @@
SHA512 (i18n-1.1.1.gem) = 8007386062323af8a9e8e87d5be15cce5a661f8f499cd47132625af35f914bac4c8b69e60ce6722e5fe57d4552a372615aaf9d0df20595e5c1e9a96100ab85a4
SHA512 (i18n-1.7.0.gem) = 20cb18797a76479eb289812daf4ba593d1a4dfcb8ca645e5d779a39f5c4eda57ca994606b8e7527006898e7d5af6de7b66f34c9f02ecfff6efad5620c1993c3c
SHA512 (i18n-1.7.0-tests.txz) = f957af40f12ee7b6183ccc05e6ccb0abc613e00612d87a87181928ed73c609154eb69b43fecf2e037a3a722769839d42f0ebce70dd8cfa2b6156ebf465b2c137

Loading…
Cancel
Save