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

Change subject: packaging: spec: add ovirt_build_extra_flags
......................................................................

packaging: spec: add ovirt_build_extra_flags

ovirt_build_extra_flags can be used to append build flags without
conflict of the other options of ovirt_build_*.

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


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/61/19661/1

diff --git a/ovirt-engine.spec.in b/ovirt-engine.spec.in
index db07f3c..74aed63 100644
--- a/ovirt-engine.spec.in
+++ b/ovirt-engine.spec.in
@@ -2,6 +2,7 @@
 #
 # CUSTOMIZATION-BEGIN
 #
+# ovirt_build_extra_flags
 %if 0%{?ovirt_build_quick}
 %global ovirt_build_gwt 0
 %global ovirt_build_locales 0
@@ -9,7 +10,7 @@
 %endif
 %if 0%{?ovirt_build_minimal}
 %global ovirt_build_locales 0
-%global EXTRA_BUILD_FLAGS -D gwt.userAgent=gecko1_8
+%global _EXTRA_BUILD_FLAGS -D gwt.userAgent=gecko1_8
 %endif
 %if 0%{!?ovirt_build_gwt:1}
 %global ovirt_build_gwt 1
@@ -21,6 +22,14 @@
 # CUSTOMIZATION-END
 #
 
+#
+# rpm does not support override
+# nor modify of variables
+#
+%if %{?_EXTRA_BUILD_FLAGS:1}%{?ovirt_build_extra_flags:1}0
+%global EXTRA_BUILD_FLAGS 
%{?_EXTRA_BUILD_FLAGS:%{_EXTRA_BUILD_FLAGS}}%{?ovirt_build_extra_flags: 
%{ovirt_build_extra_flags}}
+%endif
+
 %if 0%{?fedora}
 %global ovirt_install_systemd 1
 %global ovirt_install_systemv 0


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If7f956150e9ffc61c25dfc454fc113b1d6998c85
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