Read version from IDMETA rather than configure.ac.
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 6 Dec 2011 13:38:19 +0000 (14:38 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 6 Dec 2011 13:38:19 +0000 (14:38 +0100)
In other words, configure.ac gets its version from IDMETA.

IDMETA
configure.ac
yazproxy.spec

diff --git a/IDMETA b/IDMETA
index 30967af..f47e4fb 100644 (file)
--- a/IDMETA
+++ b/IDMETA
@@ -1,2 +1,3 @@
 DEBIAN_DIST="squeeze lenny"
 UBUNTU_DIST="maverick"
+VERSION=1.3.6
index 393d8b5..e66de0d 100644 (file)
@@ -1,7 +1,9 @@
 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])
index fcced4b..6c200d4 100644 (file)
@@ -1,6 +1,7 @@
+%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