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 <alo...@redhat.com>
---
M ovirt-engine.spec.in
1 file changed, 10 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/23/19723/1

diff --git a/ovirt-engine.spec.in b/ovirt-engine.spec.in
index db07f3c..f8f9862 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 _ovirt_build_extra_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 %{?_ovirt_build_extra_flags:1}%{?ovirt_build_extra_flags:1}0
+%global EXTRA_BUILD_FLAGS 
%{?_ovirt_build_extra_flags:%{_ovirt_build_extra_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/19723
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If7f956150e9ffc61c25dfc454fc113b1d6998c85
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.3
Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to