|
|
|
@ -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
|
|
|
|
|
|
|
|
|
|