diff --git a/rubygem-i18n-0.7.0-Ignore-metadata-for-frozen-classes.patch b/rubygem-i18n-0.7.0-Ignore-metadata-for-frozen-classes.patch deleted file mode 100644 index 6f18637..0000000 --- a/rubygem-i18n-0.7.0-Ignore-metadata-for-frozen-classes.patch +++ /dev/null @@ -1,34 +0,0 @@ -From bbbdedc0c78ec941a84d161d5c610a358310cf99 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?V=C3=ADt=20Ondruch?= -Date: Tue, 20 Jan 2015 14:34:44 +0100 -Subject: [PATCH] Ignore metadata for frozen classes. - ---- - lib/i18n/backend/metadata.rb | 8 ++++++-- - 1 file changed, 6 insertions(+), 2 deletions(-) - -diff --git a/lib/i18n/backend/metadata.rb b/lib/i18n/backend/metadata.rb -index 52c0a29..a8d922a 100644 ---- a/lib/i18n/backend/metadata.rb -+++ b/lib/i18n/backend/metadata.rb -@@ -21,11 +21,15 @@ module I18n - def included(base) - Object.class_eval do - def translation_metadata -- @translation_metadata ||= {} -+ unless self.frozen? -+ @translation_metadata ||= {} -+ else -+ {} -+ end - end - - def translation_metadata=(translation_metadata) -- @translation_metadata = translation_metadata -+ @translation_metadata = translation_metadata unless self.frozen? - end - end unless Object.method_defined?(:translation_metadata) - end --- -2.1.0 - diff --git a/rubygem-i18n.spec b/rubygem-i18n.spec index f5db464..9b7c943 100644 --- a/rubygem-i18n.spec +++ b/rubygem-i18n.spec @@ -1,9 +1,9 @@ %global gem_name i18n -Summary: New wave Internationalization support for Ruby Name: rubygem-%{gem_name} -Version: 1.0.0 -Release: 2%{?dist} +Version: 1.1.1 +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 @@ -23,16 +23,22 @@ Ruby Internationalization and localization solution. %package doc Summary: Documentation for %{name} -Requires:%{name} = %{version}-%{release} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch %description doc Documentation for %{name}. %prep -%setup -q -c -T -%gem_install -n %{SOURCE0} +%setup -q -n %{gem_name}-%{version} %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 mkdir -p %{buildroot}%{gem_dir} @@ -47,24 +53,26 @@ sed -i -e "/require 'bundler\/setup'/ s/^/#/" test/test_helper.rb # Tests are failing without LANG environment is set. # https://github.com/svenfuchs/i18n/issues/115 -LANG=en_US.utf8 ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' +LANG=C.utf8 ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' popd %files %dir %{gem_instdir} -%{gem_libdir} %license %{gem_instdir}/MIT-LICENSE +%{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc -%{gem_instdir}/test -%{gem_instdir}/gemfiles -%doc %{gem_instdir}/README.md %doc %{gem_docdir} - +%doc %{gem_instdir}/README.md +%{gem_instdir}/gemfiles +%{gem_instdir}/test %changelog +* Tue Nov 13 2018 Vít Ondruch - 1.1.1-1 +- Update to i18n 1.1.1. + * Sat Jul 14 2018 Fedora Release Engineering - 1.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/sources b/sources index 6088eae..3abffc9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (i18n-1.0.0.gem) = 627720c14413886e0932e962147cac453339a4532301d51931d75413909640487872c478fca3920e71e041c9b375facb4a85dd41dc75111e77c3505275757bcf +SHA512 (i18n-1.1.1.gem) = 8007386062323af8a9e8e87d5be15cce5a661f8f499cd47132625af35f914bac4c8b69e60ce6722e5fe57d4552a372615aaf9d0df20595e5c1e9a96100ab85a4