In other words, configure.ac gets its version from IDMETA.
DEBIAN_DIST="squeeze lenny"
UBUNTU_DIST="maverick"
+VERSION=1.3.6
dnl This file is part of YAZ proxy
dnl See the file LICENSE for details.
AC_PREREQ(2.60)
-AC_INIT([yazproxy],[1.3.6],[yaz-help@indexdata.dk])
+AC_INIT([yazproxy],
+m4_esyscmd([. ./IDMETA; echo $VERSION|tr -d '\n']),
+[yaz-help@indexdata.dk])
AC_CONFIG_SRCDIR(configure.ac)
AC_CONFIG_AUX_DIR([config])
AM_INIT_AUTOMAKE([1.9])
+%define idmetaversion %(. ./IDMETA; echo $VERSION|tr -d '\n')
Summary: yazproxy
Name: yazproxy
-Version: 1.3.6
+Version: %{idmetaversion}
Release: 1indexdata
License: GPL
Group: Applications/Internet