--- /dev/null
+--- ruby-1.9.3-p194/ext/ripper/depend~ 2010-12-26 14:25:10.000000000 +0100
++++ ruby-1.9.3-p194/ext/ripper/depend 2012-09-06 19:56:49.041137189 +0200
+@@ -16,7 +16,7 @@
+
+ .y.c:
+ $(ECHO) compiling compiler $<
+- $(Q) $(BISON) -t -v -oy.tab.c $<
++ $(Q) $(BISON) -d -t -v -oy.tab.c $<
+ $(Q) sed -f $(top_srcdir)/tool/ytab.sed -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@
+ @$(RM) y.tab.c
+
Summary(zh_CN.UTF-8): ruby - 一种快速高效的面向对象脚本编程语言
Name: ruby
Version: %{basever}.%{patchlevel}
-Release: 1
+Release: 2
Epoch: 1
License: The Ruby License
Group: Development/Languages
Source6: %{name}-mode-init.el
Patch0: %{name}-lib64.patch
Patch1: %{name}-ffs.patch
+Patch2: fix-bison-invocation.patch
URL: http://www.ruby-lang.org/
BuildRequires: autoconf >= 2.60
BuildRequires: automake
Tryb Ruby i debugger dla Emacsa.
%prep
+%if %{with bootstrap}
%setup -q -n %{name}-%{basever}-p%{patchlevel} -a1 -a2 -a3 -a100
+%else
+%setup -q -n %{name}-%{basever}-p%{patchlevel} -a1 -a2 -a3
+%endif
%patch0 -p1
%patch1 -p1
+%patch2 -p1
+
+# must be regenerated with new bison
+%{__rm} parse.{c,h}
find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f