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.6.6.gem

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