Alon Bar-Lev has uploaded a new change for review.

Change subject: packaging: add release_suffix variable to spec
......................................................................

packaging: add release_suffix variable to spec

This will allow simpler jenkins automatic build to be able to add the
git hash as release suffix.

Example:
$ rpmbuild -tb -D "release_suffix ${git_head}" ovirt-engine-3.1.0.tar.gz

Change-Id: I080ee4b74790fe880b32fbab48050c078698527e
Signed-off-by: Alon Bar-Lev <[email protected]>
---
M packaging/fedora/spec/ovirt-engine.spec.in
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/44/9444/1

diff --git a/packaging/fedora/spec/ovirt-engine.spec.in 
b/packaging/fedora/spec/ovirt-engine.spec.in
index 29d1438..ddad54a 100644
--- a/packaging/fedora/spec/ovirt-engine.spec.in
+++ b/packaging/fedora/spec/ovirt-engine.spec.in
@@ -59,6 +59,8 @@
 %global make_common_opts \\\
        -j1 \\\
        PACKAGE_NAME=%{name} \\\
+       RPM_VERSION=%{version} \\\
+       RPM_RELEASE_VERSION=%{release} \\\
        ENGINE_NAME=%{engine_name} \\\
        LOCALSTATE_DIR=%{_localstatedir} \\\
        ENGINE_STATE=%{engine_state} \\\
@@ -81,7 +83,7 @@
 
 Name: ovirt-engine
 Version: @PACKAGE_VERSION@
-Release: @PACKAGE_RELEASE@%{?dist}
+Release: @PACKAGE_RELEASE@%{?release_suffix}%{?dist}
 Summary: Management server for Open Virtualization
 Group: Virtualization/Management
 License: ASL 2.0


--
To view, visit http://gerrit.ovirt.org/9444
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I080ee4b74790fe880b32fbab48050c078698527e
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to