From 1560f0971f4c36ecf49b49c4bd369707cbb0595d Mon Sep 17 00:00:00 2001 From: Luca Padovani Date: Thu, 15 Feb 2001 12:21:40 +0000 Subject: [PATCH] new version to upgrade to libxml 2.3.0 --- helm/minidom/configure.in | 33 ++++++++++++------- helm/minidom/minidom-0.1.0-plain-1.spec | 31 ----------------- .../{minidom-0.1.0-1.spec => minidom.spec.in} | 2 +- 3 files changed, 22 insertions(+), 44 deletions(-) delete mode 100644 helm/minidom/minidom-0.1.0-plain-1.spec rename helm/minidom/{minidom-0.1.0-1.spec => minidom.spec.in} (97%) diff --git a/helm/minidom/configure.in b/helm/minidom/configure.in index bb6cb3c29..f8674dbe1 100644 --- a/helm/minidom/configure.in +++ b/helm/minidom/configure.in @@ -3,7 +3,7 @@ AC_INIT(minidom.c) MINIDOM_MAJOR_VERSION=0 MINIDOM_MINOR_VERSION=1 -MINIDOM_MICRO_VERSION=0 +MINIDOM_MICRO_VERSION=1 MINIDOM_VERSION=$MINIDOM_MAJOR_VERSION.$MINIDOM_MINOR_VERSION.$MINIDOM_MICRO_VERSION MINIDOM_VERSION_INFO=`expr $MINIDOM_MAJOR_VERSION + $MINIDOM_MINOR_VERSION`:$MINIDOM_MICRO_VERSION:$MINIDOM_MINOR_VERSION @@ -14,7 +14,7 @@ AC_ARG_WITH( libxml2, [ --with-libxml2[=ARG] compile with libxml 2.x library [default=auto]], libxml2=$withval, - libxml2=auto + libxml2="auto" ) AM_INIT_AUTOMAKE(minidom, $MINIDOM_VERSION) @@ -23,6 +23,7 @@ AM_PROG_LIBTOOL dnl Checks for programs. AC_PROG_CC +AC_LANG_C AC_PROG_RANLIB dnl Checks for libraries. @@ -36,15 +37,20 @@ AC_CHECK_LIB(glib, g_malloc, `glib-config --libs` ) -AC_CHECK_LIB(xml, xmlParseDocument, - [ - CFLAGS="$CFLAGS `xml-config --cflags`" - CXXFLAGS="$CXXFLAGS `xml-config --cflags`" - LIBS="$LIBS `xml-config --libs`" - ], - , - `xml-config --libs` -) +AC_CHECK_PROG(XML_CONFIG, xml2-config, xml2-config) +AC_CHECK_PROG(XML_CONFIG, xml-config, xml-config, no) + +if test $XML_CONFIG = "no"; then + AC_MSG_ERROR(could not find configuration script for libxml) +fi + +if test $XML_CONFIG = xml2-config -a libxml2 = "auto"; then + libxml2="yes" +fi + +CFLAGS="$CFLAGS `$XML_CONFIG --cflags`" +CXXFLAGS="$CXXFLAGS `$XML_CONFIG --cflags`" +LIBS="$LIBS `$XML_CONFIG --libs`" dnl if the user gave no explicit libxml2 option, try to guess its value if test $libxml2 = "auto"; then @@ -67,4 +73,7 @@ fi dnl Checks for header files. -AC_OUTPUT(Makefile) +AC_OUTPUT([ + Makefile + minidom.spec +]) diff --git a/helm/minidom/minidom-0.1.0-plain-1.spec b/helm/minidom/minidom-0.1.0-plain-1.spec deleted file mode 100644 index 6267c27f2..000000000 --- a/helm/minidom/minidom-0.1.0-plain-1.spec +++ /dev/null @@ -1,31 +0,0 @@ -Summary: A minimal implementation of the DOM based on libxml2 -Name: minidom -Version: 0.1.0 -Release: 1 -Copyright: GPL -Group: Development/Libraries -Source: www.cs.unibo.it:/~lpadovan/mml-widget/minidom-0.1.0.tar.gz -%description -miniDOM is a minimal implementation of the Document Object -Model. - -%prep -%setup - -%build -./configure --without-libxml2 -make - -%install -make install - -%files -%doc AUTHORS BUGS COPYING ChangeLog HISTORY INSTALL LICENSE NEWS README TODO - -/usr/local/bin/minidom-config -/usr/local/lib/minidom.so -/usr/local/lib/minidom.so.0 -/usr/local/lib/minidom.so.0.1.0 -/usr/local/lib/libminidom.a -/usr/local/lib/libminidom.la -/usr/local/include/minidom/ diff --git a/helm/minidom/minidom-0.1.0-1.spec b/helm/minidom/minidom.spec.in similarity index 97% rename from helm/minidom/minidom-0.1.0-1.spec rename to helm/minidom/minidom.spec.in index 64036633e..416677c2c 100644 --- a/helm/minidom/minidom-0.1.0-1.spec +++ b/helm/minidom/minidom.spec.in @@ -1,6 +1,6 @@ Summary: A minimal implementation of the DOM based on libxml2 Name: minidom -Version: 0.1.0 +Version: @VERSION@ Release: 1 Copyright: GPL Group: Development/Libraries -- 2.39.2