dnl Check for essential libraries first:
dnl ====================================
+dnl === GLib 2 ===
+dnl Minimum required version of GLib2
+GLIB2_REQ="1.3.12"
+AC_SUBST(GLIB2_REQ)
+
dnl Check for glib2
-PKG_CHECK_MODULES(GLIB2, glib-2.0 gobject-2.0 gthread-2.0 gmodule-2.0,
+PKG_CHECK_MODULES(GLIB2, glib-2.0 >= $GLIB2_REQ gobject-2.0 gthread-2.0 gmodule-2.0,
HAVE_GLIB2=yes,HAVE_GLIB2=no)
GLIB_LIBS=$GLIB2_LIBS
GLIB_CFLAGS=$GLIB2_CFLAGS
GST_PKG_DEPS="glib-2.0, gobject-2.0, gmodule-2.0, gthread-2.0"
AC_SUBST(GST_PKG_DEPS)
+dnl === libxml 2 ===
+dnl Minimum required version of libxml2
+LIBXML2_REQ="2.4.0"
+AC_SUBST(LIBXML2_REQ)
+
+dnl check for libxml2
LIBXML_PKG=', libxml-2.0'
-PKG_CHECK_MODULES(XML, libxml-2.0, HAVE_LIBXML2=yes, HAVE_LIBXML2=no)
+PKG_CHECK_MODULES(XML, libxml-2.0 >= $LIBXML2_REQ, HAVE_LIBXML2=yes, HAVE_LIBXML2=no)
if test "x$HAVE_LIBXML2" = "xyes"; then
AC_DEFINE(HAVE_LIBXML2)
else
# File generated by dobey, DO NOT EDIT
-Summary: GStreamer Streaming-media framework runtime
-Name: gstreamer
-Version: @VERSION@
-Release: @GST_VERSION_RELEASE@
-Copyright: LGPL
-Group: Libraries/Multimedia
-Source: %{name}-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
-Requires: glib2 >= 1.3.15
-Requires: libxml2 >= 2.4.0
-BuildRequires: nasm => 0.90
+Summary: GStreamer Streaming-media framework runtime
+Name: gstreamer
+Version: @VERSION@
+Release: @GST_VERSION_RELEASE@
+
+Copyright: LGPL
+Group: Libraries/Multimedia
+Source: %{name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+
+%define _glib2 @GLIB2_REQ@
+%define _libxml2 @LIBXML2_REQ@
+
+Requires: glib2 >= %_glib2
+Requires: libxml2 >= %_libxml2
+BuildRequires: glib2-devel >= %_glib2
+BuildRequires: libxml2 >= %_libxml2
+BuildRequires: nasm => 0.90
%description
GStreamer is a streaming-media framework, based on graphs of filters which