Made spec file autogenerate, tweaked it also
Dr Mike <drmike@redhat.com>
diff --git a/Makefile.am b/Makefile.am
index 8d7495e..3d9ee08 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -57,9 +57,12 @@
confexecdir=$(libdir)
confexec_DATA = xmlConf.sh
-EXTRA_DIST = xmlConf.sh.in libxml.spec doc/xml.html doc/structure.gif \
+EXTRA_DIST = xmlConf.sh.in libxml.spec.in doc/xml.html doc/structure.gif \
doc/DOM.gif
+dist-hook:
+ cp libxml.spec $(distdir)
+
## We create xmlConf.sh here and not from configure because we want
## to get the paths expanded correctly. Macros like srcdir are given
## the value NONE in configure if the user doesn't specify them (this
diff --git a/configure.in b/configure.in
index fb6b513..30a7d8e 100644
--- a/configure.in
+++ b/configure.in
@@ -62,5 +62,5 @@
AC_FUNC_STRFTIME
AC_CHECK_FUNCS(strdup strndup strerror snprintf )
AC_SUBST(Z_LIBS)
-AC_OUTPUT(Makefile doc/Makefile xml-config)
+AC_OUTPUT(libxml.spec Makefile doc/Makefile xml-config)
diff --git a/libxml.spec b/libxml.spec.in
similarity index 87%
rename from libxml.spec
rename to libxml.spec.in
index e118851..65c9b52 100644
--- a/libxml.spec
+++ b/libxml.spec.in
@@ -1,5 +1,5 @@
# Note that this is NOT a relocatable package
-%define ver 0.99.8
+%define ver @VERSION@
%define rel SNAP
%define prefix /usr
@@ -9,9 +9,9 @@
Release: %rel
Copyright: LGPL
Group: X11/Libraries
-Source: ftp://ftp.gnome.org/pub/GNOME/sources/libxml-%{ver}.tar.gz
-BuildRoot: /var/tmp/libxml-root
-Packager: Michael Fulbright <msf@redhat.com>
+Source: ftp://ftp.gnome.org/pub/GNOME/sources/libxml/libxml-%{ver}.tar.gz
+BuildRoot: /var/tmp/libxml-%{PACKAGE_VERSION}-root
+
URL: http://www.gnome.org
Prereq: /sbin/install-info
Docdir: %{prefix}/doc
@@ -63,7 +63,7 @@
%clean
-#rm -rf $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig