From f6eba5391ba77b9e30f110134d1336894a1aa9f2 Mon Sep 17 00:00:00 2001 From: Richard Siddall Date: Thu, 13 Feb 2014 10:03:54 -0500 Subject: [PATCH] The .spec file needs to have the package name, version, and release hard-coded as few build tools give you the ability to pass these in on the command line when building from the SRPM. Added conditional directives to allow you to override the hard-coded values. --- packaging/rpm/qpsmtpd.spec.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packaging/rpm/qpsmtpd.spec.in b/packaging/rpm/qpsmtpd.spec.in index e7529de..7dcba40 100644 --- a/packaging/rpm/qpsmtpd.spec.in +++ b/packaging/rpm/qpsmtpd.spec.in @@ -1,3 +1,7 @@ +%{!?_package:%define _package @PACKAGE@} +%{!?_version:%define _version @VERSION@} +%{!?_release:%define _release @RELEASE@} + Name: %{_package} Version: %{_version} Release: %{_release}