From 77cd6a33a6e9c6672800dc9348f8803ec26a8f31 Mon Sep 17 00:00:00 2001 From: Vít Ondruch Date: Oct 01 2015 08:09:26 +0000 Subject: Update to i18n_data 0.7.0. --- diff --git a/.gitignore b/.gitignore index 5223c11..adf107b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ /i18n_data-0.2.7.gem /i18n_data-0.4.0.gem +/i18n_data-0.7.0-specs.tar.gz +/i18n_data-0.7.0.gem diff --git a/rubygem-i18n_data-0.4.0-Revert-run-code-run-is-dead.patch b/rubygem-i18n_data-0.4.0-Revert-run-code-run-is-dead.patch index 274f208..3f7328d 100644 --- a/rubygem-i18n_data-0.4.0-Revert-run-code-run-is-dead.patch +++ b/rubygem-i18n_data-0.4.0-Revert-run-code-run-is-dead.patch @@ -12,8 +12,8 @@ diff --git a/spec/i18n_data_spec.rb b/spec/i18n_data_spec.rb index 30b003b..546e689 100644 --- a/spec/i18n_data_spec.rb +++ b/spec/i18n_data_spec.rb -@@ -12,7 +12,9 @@ describe I18nData do - hash.detect{|k,v| k.to_s.empty? or v.to_s.empty?} +@@ -25,7 +25,9 @@ describe I18nData do + end end - [I18nData::FileDataProvider, I18nData::LiveDataProvider].each do |provider| diff --git a/rubygem-i18n_data.spec b/rubygem-i18n_data.spec index 898cc90..8dbccda 100644 --- a/rubygem-i18n_data.spec +++ b/rubygem-i18n_data.spec @@ -1,30 +1,28 @@ # Generated from i18n_data-0.2.7.gem by gem2rpm -*- rpm-spec -*- %global gem_name i18n_data - -Summary: Country/language names and 2-letter-code pairs, in 85 languages Name: rubygem-%{gem_name} -Version: 0.4.0 -Release: 3%{?dist} +Version: 0.7.0 +Release: 1%{?dist} +Summary: Country/language names and 2-letter-code pairs, in 85 languages Group: Development/Languages License: MIT -URL: http://github.com/grosser/i18n_data -Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem +URL: https://github.com/grosser/i18n_data +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +# git clone https://github.com/grosser/i18n_data.git && cd i18n_data +# git checkout v0.7.0 && tar czvf i18n_data-0.7.0-specs.tar.gz spec/ +Source1: %{gem_name}-%{version}-specs.tar.gz # For offline build, the RUN_CODE_RUN env variable support is still valuable. # Revert of https://github.com/grosser/i18n_data/commit/1be35a3a782975052133efc5c574f79dc01cf8dd#spec Patch0: rubygem-i18n_data-0.4.0-Revert-run-code-run-is-dead.patch -Requires: ruby(release) -Requires: ruby(rubygems) -Requires: ruby BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildRequires: rubygem(rspec) BuildArch: noarch -Provides: rubygem(%{gem_name}) = %{version} %description -Country/language names and 2-letter-code pairs, in 85 languages +Country/language names and 2-letter-code pairs, in 85 languages. %package doc @@ -34,17 +32,12 @@ Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc -Documentation for %{name} - +Documentation for %{name}. %prep %setup -q -c -T %gem_install -n %{SOURCE0} -pushd .%{gem_instdir} -%patch0 -p1 -popd - %build %install @@ -55,20 +48,17 @@ cp -a .%{gem_dir}/* \ %check pushd .%{gem_instdir} -# Encoding is required, otherwise test suite fails. -# https://github.com/grosser/i18n_data/issues/4 +tar xzf %{SOURCE1} +cat %{PATCH0} | patch -p1 # Set RUN_CODE_RUN to exclude live_data_provider_spec.rb since # it requires internet connetcion. -LANG=en_US.utf8 RUN_CODE_RUN=1 rspec spec/*_spec.rb +RUN_CODE_RUN=1 rspec spec/*_spec.rb popd %files %dir %{gem_instdir} -%exclude %{gem_instdir}/.* -%exclude %{gem_instdir}/gem-public_cert.pem -%exclude %{gem_instdir}/i18n_data.gemspec %{gem_instdir}/cache %{gem_libdir} %exclude %{gem_cache} @@ -76,14 +66,12 @@ popd %files doc %doc %{gem_docdir} -%{gem_instdir}/Gemfile* -%{gem_instdir}/Rakefile -%doc %{gem_instdir}/Readme.md -%doc %{gem_instdir}/example_output -%{gem_instdir}/spec %changelog +* Thu Oct 01 2015 Vít Ondruch - 0.7.0-1 +- Update to i18n_data 0.7.0. + * Thu Jun 18 2015 Fedora Release Engineering - 0.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild diff --git a/sources b/sources index 05473a1..63c137e 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ -61b42794a2e40d57fdd0bfc061f9139b i18n_data-0.4.0.gem +45a8c7709be8406ecfcea7a480a2e3b1 i18n_data-0.7.0-specs.tar.gz +8ce66410fe191073ed8213e3fb23fded i18n_data-0.7.0.gem