From 8d64ad1cffa6140838330130187b5b8fcc2d2343 Mon Sep 17 00:00:00 2001 From: Shreyank Gupta Date: Thu, 1 Jul 2010 10:10:41 +0000 Subject: [PATCH] Initial commit. --- .cvsignore | 1 + import.log | 1 + rubygem-chronic.spec | 90 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 93 insertions(+) create mode 100644 import.log create mode 100644 rubygem-chronic.spec diff --git a/.cvsignore b/.cvsignore index e69de29..c0318da 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +chronic-0.2.3.gem diff --git a/import.log b/import.log new file mode 100644 index 0000000..8870708 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +rubygem-chronic-0_2_3-2_fc13:HEAD:rubygem-chronic-0.2.3-2.fc13.src.rpm:1277979027 diff --git a/rubygem-chronic.spec b/rubygem-chronic.spec new file mode 100644 index 0000000..aa926b3 --- /dev/null +++ b/rubygem-chronic.spec @@ -0,0 +1,90 @@ +# 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} + +Summary: A natural language date parser +Name: rubygem-%{gemname} +Version: 0.2.3 +Release: 2%{?dist} +Group: Development/Languages +License: MIT +URL: http://chronic.rubyforge.org/ +Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem + +Requires: ruby(abi) = 1.8 +Requires: rubygems +BuildRequires: ruby +BuildRequires: rubygems +BuildRequires: rubygem(rake) +BuildRequires: rubygem(hoe) +BuildArch: noarch +Provides: rubygem(%{gemname}) = %{version} + +%package doc +Summary: Documentation for %{name} +Group: Documentation +Requires:%{name} = %{version}-%{release} + +%description doc +Documentation for %{name} + +%description +Chronic is a natural language date/time parser written in pure Ruby. + + +%prep + +%build + +%install + +mkdir -p %{buildroot}%{gemdir} +gem install --local --install-dir %{buildroot}%{gemdir} \ + --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 +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 + +%files doc +%defattr(-, root, root, -) +%{gemdir}/doc/%{gemname}-%{version} +%{geminstdir}/Manifest.txt +%{geminstdir}/Rakefile +%{geminstdir}/test + +%changelog +* Tue Jun 29 2010 Shreyank Gupta - 0.2.3-2 +- Added BR: rubygem(rake) and rubygem(hoe) +- Removed R: rubygem(hoe) +- Removed hoe depedency from specfile + +* Fri Jun 18 2010 Shreyank Gupta - 0.2.3-1 +- Initial package diff --git a/sources b/sources index e69de29..bc293d2 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e4496710d1f012c343fdea254c4b5827 chronic-0.2.3.gem