From 811c894d78851b6f803384ed3a0dc7c2d4649c9c Mon Sep 17 00:00:00 2001 From: John Blair Date: Tue, 2 May 2006 16:26:13 +0000 Subject: [PATCH] added "--with-rpm-release" configure option to set the RPM release number the distro tag, if supplied, is still part of the release value --- ipmitool/configure.in | 7 +++++++ ipmitool/control/ipmitool.spec.in | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ipmitool/configure.in b/ipmitool/configure.in index f6c8710..a321b71 100644 --- a/ipmitool/configure.in +++ b/ipmitool/configure.in @@ -221,6 +221,13 @@ AC_ARG_WITH([rpm-distro], [set Linux distribution tag for use in RPM version string])], [AC_SUBST(DISTRO, $with_rpm_distro)]) +dnl set RPM release tag +AC_ARG_WITH([rpm-release], + [AC_HELP_STRING([--with-rpm-release=RELEASE], + [set release number for RPM release field])], + [], [with_rpm_release=1]) +AC_SUBST(RPM_RELEASE, $with_rpm_release) + dnl enable Linux OpenIPMI interface AC_ARG_ENABLE([intf-open], [AC_HELP_STRING([--enable-intf-open], diff --git a/ipmitool/control/ipmitool.spec.in b/ipmitool/control/ipmitool.spec.in index 1bcf8b7..1e7fed5 100644 --- a/ipmitool/control/ipmitool.spec.in +++ b/ipmitool/control/ipmitool.spec.in @@ -1,7 +1,7 @@ Name: ipmitool Summary: ipmitool - Utility for IPMI control Version: @VERSION@ -Release: 1%{?_distro:.%{_distro}} +Release: @RPM_RELEASE@%{?_distro:.%{_distro}} License: BSD Group: Utilities Packager: Duncan Laurie