Browse files

The .spec file needs to have the package name, version, and release h…

…ard-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.
  • Loading branch information...
1 parent 941fac9 commit f6eba5391ba77b9e30f110134d1336894a1aa9f2 @rsiddall rsiddall committed Feb 13, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 packaging/rpm/
@@ -1,3 +1,7 @@
+%{!?_package:%define _package @PACKAGE@}
+%{!?_version:%define _version @VERSION@}
+%{!?_release:%define _release @RELEASE@}
Name: %{_package}
Version: %{_version}
Release: %{_release}

0 comments on commit f6eba53

Please sign in to comment.