otherwise tests run forever and probably do so in real use too
Group: Development/Languages
Source0: http://gems.rubyforge.org/gems/%{pkgname}-%{version}.gem
# Source0-md5: d9d2eabc03bc937adfa00e35f228f9a8
+Patch0: rubygem-syntax-fix-yaml-parse-for-ruby-1.9.patch
URL: http://syntax.rubyforge.org/
BuildRequires: rpm-rubyprov
BuildRequires: rpmbuild(macros) >= 1.656
%prep
%setup -q -n %{pkgname}-%{version}
+%patch0 -p0
%build
%if %{with tests}
--- /dev/null
+--- lib/syntax/lang/yaml.rb.orig 2012-01-31 15:07:34.533346064 +0100
++++ lib/syntax/lang/yaml.rb 2012-01-31 15:06:26.365562358 +0100
+@@ -62,7 +62,7 @@
+ start_group :string
+ loop do
+ line = check_until(/[\n\r]|\Z/)
+- break if line.nil?
++ break if line.nil? or line.empty?
+ if line.chomp.length > 0
+ this_indent = line.chomp.match( /^\s*/ )[0]
+ break if this_indent.length < indent.length