commit b248b9941c81d42490d6ef702f3a937bcc141c43
Author: Bastien Nocera <hadess(a)fedoraproject.org>
Date: Mon Jan 5 15:44:18 2009 +0000
- Fix build with newer version of bison
gstreamer-fix-bison-check.patch | 14 ++++++++++++++
gstreamer.spec | 9 ++++++++-
2 files changed, 22 insertions(+), 1 deletion(-)
---
diff --git a/gstreamer-fix-bison-check.patch b/gstreamer-fix-bison-check.patch
new file mode 100644
index 0000000..bed872f
--- /dev/null
+++ b/gstreamer-fix-bison-check.patch
@@ -0,0 +1,14 @@
+--- common/m4/gst-parser.m4.orig 2008-09-10 11:16:47.000000000 +0200
++++ common/m4/gst-parser.m4 2008-12-14 19:14:43.000000000 +0100
+@@ -15,10 +15,7 @@
+ bison_version=`$BISON_PATH --version | head -n 1 | sed 's/^[[^0-9]]*//' | sed
's/[[^0-9]]*$//' | cut -d' ' -f1`
+ AC_MSG_CHECKING([bison version $bison_version >= $bison_min_version])
+
+- if perl -w <<EOF
+- exit ($bison_version < $bison_min_version) ? 0 : 1;
+-EOF
+- then
++ if perl -we "exit ((v$bison_version ge v$bison_min_version) ? 0 : 1)"; then
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_ERROR([no])
diff --git a/gstreamer.spec b/gstreamer.spec
index 633d6dc..8dfc084 100644
--- a/gstreamer.spec
+++ b/gstreamer.spec
@@ -6,7 +6,7 @@
Name: %{gstreamer}
Version: 0.10.21
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: GStreamer streaming media framework runtime
Group: Applications/Multimedia
@@ -40,6 +40,8 @@ Source1: gstreamer.prov
Source2: macros.gstreamer
# From:
http://bugzilla.gnome.org/show_bug.cgi?id=555631
Patch2: gstreamer-0.10.21-fixgnomebz555631.patch
+# From
http://bugzilla.gnome.org/show_bug.cgi?id=564507
+Patch3: gstreamer-fix-bison-check.patch
### documentation requirements
BuildRequires: python2
@@ -107,8 +109,10 @@ pushd tools/
%patch1 -p0 -b .rpm-provides
popd
%patch2 -p1 -b .gnomebz555631
+%patch3 -p0 -b .bison-check
%build
+autoreconf
# 0.10.0: manuals do not build due to an openjade error; disable for now
%configure \
--with-package-name='Fedora Core gstreamer package' \
@@ -218,6 +222,9 @@ rm -rf $RPM_BUILD_ROOT
%{_sysconfdir}/rpm/macros.gstreamer
%changelog
+* Mon Jan 05 2009 - Bastien Nocera <bnocera(a)redhat.com> - 0.10.21-4
+- Fix build with newer version of bison
+
* Thu Jan 01 2009 Rex Dieter <rdieter(a)fedoraprojet.org> - 0.10.21-3
- rebuild for pkgconfig deps (#478576)