From: Adam Dickmeiss Date: Tue, 6 Dec 2011 13:38:19 +0000 (+0100) Subject: Read version from IDMETA rather than configure.ac. X-Git-Tag: v1.3.7~8 X-Git-Url: http://git.indexdata.com/?p=yazproxy-moved-to-github.git;a=commitdiff_plain;h=c74a60c3ae22031f6e2f4a98329e0014df3031ed Read version from IDMETA rather than configure.ac. In other words, configure.ac gets its version from IDMETA. --- diff --git a/IDMETA b/IDMETA index 30967af..f47e4fb 100644 --- a/IDMETA +++ b/IDMETA @@ -1,2 +1,3 @@ DEBIAN_DIST="squeeze lenny" UBUNTU_DIST="maverick" +VERSION=1.3.6 diff --git a/configure.ac b/configure.ac index 393d8b5..e66de0d 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) diff --git a/yazproxy.spec b/yazproxy.spec index fcced4b..6c200d4 100644 --- a/yazproxy.spec +++ b/yazproxy.spec @@ -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