From f1bcde7fc13f8d3e21850dae15d2f05da747e56e Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Tue, 15 Sep 2009 10:48:05 -0400 Subject: [PATCH] Add PRERELEASE_VERSION variable for use in sssd.spec.in This will add a second, optional line to the VERSION file that will be used by the automated build scripts to create snapshot versions. --- configure.ac | 3 +++ contrib/sssd.spec.in | 2 +- 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index d908dbb..afd304d 100644 --- a/configure.ac +++ b/configure.ac @@ -9,5 +9,8 @@ AC_PROG_INSTALL AC_CONFIG_SUBDIRS([replace common server sss_client]) +AC_SUBST([PRERELEASE_VERSION], + m4_esyscmd([cat VERSION |tail --lines=+2 |head -n1 | tr -d '\n'])) + AC_CONFIG_FILES([Makefile contrib/sssd.spec]) AC_OUTPUT diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 7b257e2..e5134c0 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -1,6 +1,6 @@ Name: @PACKAGE_NAME@ Version: @PACKAGE_VERSION@ -Release: 0%{?dist} +Release: 0@PRERELEASE_VERSION@%{?dist} Group: Applications/System Summary: System Security Services Daemon # The entire source code is GPLv3+ except replace/ which is LGPLv3+ -- 1.6.2.5