From c74a60c3ae22031f6e2f4a98329e0014df3031ed Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 6 Dec 2011 14:38:19 +0100 Subject: [PATCH] Read version from IDMETA rather than configure.ac. In other words, configure.ac gets its version from IDMETA. --- IDMETA | 1 + configure.ac | 4 +++- yazproxy.spec | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) 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 -- 1.7.10.4