[rubygem-chronic] Rebuilt for Ruby 1.9.3. Update to Chronic 0.6.6.

Vít Ondruch vondruch at fedoraproject.org
Tue Jan 31 14:19:26 UTC 2012


commit 8db9f87cdde97f6f78c476252b9b8d0de3aa3a7e
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Tue Jan 31 15:19:17 2012 +0100

    Rebuilt for Ruby 1.9.3.
    Update to Chronic 0.6.6.

 .gitignore           |    1 +
 rubygem-chronic.spec |   75 +++++++++++++++++++++----------------------------
 sources              |    2 +-
 3 files changed, 34 insertions(+), 44 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index c0318da..ad735c8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 chronic-0.2.3.gem
+/chronic-0.6.6.gem
diff --git a/rubygem-chronic.spec b/rubygem-chronic.spec
index 8373d53..2ddd37d 100644
--- a/rubygem-chronic.spec
+++ b/rubygem-chronic.spec
@@ -1,26 +1,23 @@
 # Generated from chronic-0.2.3.gem by gem2rpm -*- rpm-spec -*-
 
-%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
-%global gemname chronic
-%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%global gem_name chronic
 
 Summary: A natural language date parser
-Name: rubygem-%{gemname}
-Version: 0.2.3
-Release: 4%{?dist}
+Name: rubygem-%{gem_name}
+Version: 0.6.6
+Release: 1%{?dist}
 Group: Development/Languages
 License: MIT
 URL: http://chronic.rubyforge.org/
-Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
+Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
 
-Requires: ruby(abi) = 1.8
-Requires: rubygems
+Requires: ruby(abi) = 1.9.1
+Requires: ruby(rubygems)
 BuildRequires: ruby
-BuildRequires: rubygems
-BuildRequires: rubygem(rake)
-BuildRequires: rubygem(hoe)
+BuildRequires: rubygems-devel
+BuildRequires: rubygem(minitest)
 BuildArch: noarch
-Provides: rubygem(%{gemname}) = %{version}
+Provides: rubygem(%{gem_name}) = %{version}
 
 %package doc
 Summary: Documentation for %{name}
@@ -40,47 +37,39 @@ Chronic is a natural language date/time parser written in pure Ruby.
 
 %install
 
-mkdir -p %{buildroot}%{gemdir}
-gem install --local --install-dir %{buildroot}%{gemdir} \
+mkdir -p %{buildroot}%{gem_dir}
+gem install --local --install-dir %{buildroot}%{gem_dir} \
             --force --rdoc %{SOURCE0}
 
-# Corrections to test/test_parsing.rb for 4 failing tests
-sed -i '147 s/^/# ERROR /' %{buildroot}%{geminstdir}/test/test_parsing.rb
-sed -i '255 s/^/# ERROR /' %{buildroot}%{geminstdir}/test/test_parsing.rb
-sed -i '258 s/^/# ERROR /' %{buildroot}%{geminstdir}/test/test_parsing.rb
-sed -i '560 s/^/# ERROR /' %{buildroot}%{geminstdir}/test/test_parsing.rb
-
-# Correction to gemspec, rempving hoe dependency
-specfile=%{buildroot}%{gemdir}/specifications/%{gemname}-%{version}.gemspec
-for line in `sed -n '/hoe/ =' $specfile`
-do
-  sed -i $line' s/^/# /' $specfile
-done
-
-
 %check
-pushd %{buildroot}%{geminstdir}
-rake test --trace 2> /dev/null #Redirect warnings to /dev/null
+pushd %{buildroot}%{gem_instdir}
+testrb -Ilib test
 popd
 
 
 %files
-%defattr(-, root, root, -)
-%dir %{geminstdir}
-%{geminstdir}/lib
-%doc %{geminstdir}/History.txt
-%doc %{geminstdir}/README.txt
-%{gemdir}/cache/%{gemname}-%{version}.gem
-%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+%exclude %{gem_instdir}/.gemtest
+%exclude %{gem_instdir}/.gitignore
+%exclude %{gem_instdir}/.yardopts
+%exclude %{gem_instdir}/%{gem_name}.gemspec
+%dir %{gem_instdir}
+%{gem_libdir}
+%doc %{gem_instdir}/LICENSE
+%{gem_cache}
+%{gem_spec}
 
 %files doc
-%defattr(-, root, root, -)
-%{gemdir}/doc/%{gemname}-%{version}
-%{geminstdir}/Manifest.txt
-%{geminstdir}/Rakefile
-%{geminstdir}/test
+%{gem_docdir}
+%{gem_instdir}/HISTORY.md
+%{gem_instdir}/README.md
+%{gem_instdir}/Rakefile
+%{gem_instdir}/test
 
 %changelog
+* Tue Jan 31 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 0.6.6-1
+- Rebuilt for Ruby 1.9.3.
+- Update to Chronic 0.6.6.
+
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.2.3-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 
diff --git a/sources b/sources
index bc293d2..5cbc506 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-e4496710d1f012c343fdea254c4b5827  chronic-0.2.3.gem
+e233f017c512f185990050a4bea6c5ed  chronic-0.6.6.gem


More information about the scm-commits mailing list