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.

This commit is contained in:
Richard Siddall 2014-02-13 10:03:54 -05:00
parent 941fac98ae
commit f6eba5391b

View File

@ -1,3 +1,7 @@
%{!?_package:%define _package @PACKAGE@}
%{!?_version:%define _version @VERSION@}
%{!?_release:%define _release @RELEASE@}
Name: %{_package}
Version: %{_version}
Release: %{_release}