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:
parent
941fac98ae
commit
f6eba5391b
@ -1,3 +1,7 @@
|
|||||||
|
%{!?_package:%define _package @PACKAGE@}
|
||||||
|
%{!?_version:%define _version @VERSION@}
|
||||||
|
%{!?_release:%define _release @RELEASE@}
|
||||||
|
|
||||||
Name: %{_package}
|
Name: %{_package}
|
||||||
Version: %{_version}
|
Version: %{_version}
|
||||||
Release: %{_release}
|
Release: %{_release}
|
||||||
|
Loading…
Reference in New Issue
Block a user