added "--with-rpm-release" configure option to set the RPM release number

the distro tag, if supplied, is still part of the release value
This commit is contained in:
John Blair 2006-05-02 16:26:13 +00:00
parent 65d1b0a623
commit 811c894d78
2 changed files with 8 additions and 1 deletions

View File

@ -221,6 +221,13 @@ AC_ARG_WITH([rpm-distro],
[set Linux distribution tag for use in RPM version string])], [set Linux distribution tag for use in RPM version string])],
[AC_SUBST(DISTRO, $with_rpm_distro)]) [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 dnl enable Linux OpenIPMI interface
AC_ARG_ENABLE([intf-open], AC_ARG_ENABLE([intf-open],
[AC_HELP_STRING([--enable-intf-open], [AC_HELP_STRING([--enable-intf-open],

View File

@ -1,7 +1,7 @@
Name: ipmitool Name: ipmitool
Summary: ipmitool - Utility for IPMI control Summary: ipmitool - Utility for IPMI control
Version: @VERSION@ Version: @VERSION@
Release: 1%{?_distro:.%{_distro}} Release: @RPM_RELEASE@%{?_distro:.%{_distro}}
License: BSD License: BSD
Group: Utilities Group: Utilities
Packager: Duncan Laurie <duncan@iceblink.org> Packager: Duncan Laurie <duncan@iceblink.org>