Rebuilt for Ruby 1.9.3.

Update to Chronic 0.6.6.
f38
Vít Ondruch 13 years ago
parent d5b403ca7b
commit 8db9f87cdd

1
.gitignore vendored

@ -1 +1,2 @@
chronic-0.2.3.gem chronic-0.2.3.gem
/chronic-0.6.6.gem

@ -1,26 +1,23 @@
# Generated from chronic-0.2.3.gem by gem2rpm -*- rpm-spec -*- # Generated from chronic-0.2.3.gem by gem2rpm -*- rpm-spec -*-
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) %global gem_name chronic
%global gemname chronic
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
Summary: A natural language date parser Summary: A natural language date parser
Name: rubygem-%{gemname} Name: rubygem-%{gem_name}
Version: 0.2.3 Version: 0.6.6
Release: 4%{?dist} Release: 1%{?dist}
Group: Development/Languages Group: Development/Languages
License: MIT License: MIT
URL: http://chronic.rubyforge.org/ 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: ruby(abi) = 1.9.1
Requires: rubygems Requires: ruby(rubygems)
BuildRequires: ruby BuildRequires: ruby
BuildRequires: rubygems BuildRequires: rubygems-devel
BuildRequires: rubygem(rake) BuildRequires: rubygem(minitest)
BuildRequires: rubygem(hoe)
BuildArch: noarch BuildArch: noarch
Provides: rubygem(%{gemname}) = %{version} Provides: rubygem(%{gem_name}) = %{version}
%package doc %package doc
Summary: Documentation for %{name} Summary: Documentation for %{name}
@ -40,47 +37,39 @@ Chronic is a natural language date/time parser written in pure Ruby.
%install %install
mkdir -p %{buildroot}%{gemdir} mkdir -p %{buildroot}%{gem_dir}
gem install --local --install-dir %{buildroot}%{gemdir} \ gem install --local --install-dir %{buildroot}%{gem_dir} \
--force --rdoc %{SOURCE0} --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 %check
pushd %{buildroot}%{geminstdir} pushd %{buildroot}%{gem_instdir}
rake test --trace 2> /dev/null #Redirect warnings to /dev/null testrb -Ilib test
popd popd
%files %files
%defattr(-, root, root, -) %exclude %{gem_instdir}/.gemtest
%dir %{geminstdir} %exclude %{gem_instdir}/.gitignore
%{geminstdir}/lib %exclude %{gem_instdir}/.yardopts
%doc %{geminstdir}/History.txt %exclude %{gem_instdir}/%{gem_name}.gemspec
%doc %{geminstdir}/README.txt %dir %{gem_instdir}
%{gemdir}/cache/%{gemname}-%{version}.gem %{gem_libdir}
%{gemdir}/specifications/%{gemname}-%{version}.gemspec %doc %{gem_instdir}/LICENSE
%{gem_cache}
%{gem_spec}
%files doc %files doc
%defattr(-, root, root, -) %{gem_docdir}
%{gemdir}/doc/%{gemname}-%{version} %{gem_instdir}/HISTORY.md
%{geminstdir}/Manifest.txt %{gem_instdir}/README.md
%{geminstdir}/Rakefile %{gem_instdir}/Rakefile
%{geminstdir}/test %{gem_instdir}/test
%changelog %changelog
* Tue Jan 31 2012 Bohuslav Kabrda <bkabrda@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@lists.fedoraproject.org> - 0.2.3-4 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

@ -1 +1 @@
e4496710d1f012c343fdea254c4b5827 chronic-0.2.3.gem e233f017c512f185990050a4bea6c5ed chronic-0.6.6.gem

Loading…
Cancel
Save