Yaniv Bronhaim has uploaded a new change for review.
Change subject: Adding official_release global to spec
......................................................................
Adding official_release global to spec
When this global set to True, vdsm won't build packages that are in work
in progress state. This to avoid shipping unready packages in official
releases.
Change-Id: I7229fde2263d1add4c0e74aeb7d5d4e0694f3cda
Signed-off-by: Yaniv Bronhaim <ybronhei(a)redhat.com>
---
M vdsm.spec.in
1 file changed, 7 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/33/24033/1
diff --git a/vdsm.spec.in b/vdsm.spec.in
index d4ebc43..6d0cf53 100644
--- a/vdsm.spec.in
+++ b/vdsm.spec.in
@@ -42,6 +42,9 @@
%global with_tmpfiles_macro 1
%endif
+# when this global is 0 the build will include also wip (before ship) packages
+%global official_release 0
+
Name: %{vdsm_name}
Version: @PACKAGE_VERSION@
Release: @PACKAGE_RELEASE@%{?dist}%{?extra_release}
@@ -281,6 +284,7 @@
An XMLRPC interface for interacting with vdsmd. Primary control interface for
ovirt-engine and vdsClient.
+%if ! 0%{?official_release}
%package api
Summary: VDSM API definition
BuildArch: noarch
@@ -309,6 +313,7 @@
%description yajsonrpc
A JSON RPC server and client implementation.
+%endif
%package python-zombiereaper
Summary: Collects zombie processes automatically
@@ -1349,6 +1354,7 @@
%dir %{_datadir}/%{vdsm_name}
%{_datadir}/%{vdsm_name}/BindingXMLRPC.py*
+%if ! 0%{?official_release}
%files api
%doc vdsm_api/vdsm-api.html
%{_datadir}/%{vdsm_name}/vdsmapi-schema.json
@@ -1364,6 +1370,7 @@
%{python_sitelib}/yajsonrpc/asyncoreReactor.py*
%{python_sitelib}/yajsonrpc/protonReactor.py*
%{python_sitelib}/yajsonrpc/client.py*
+%endif
%files python-zombiereaper
%{python_sitelib}/zombiereaper/__init__.py*
--
To view, visit
http://gerrit.ovirt.org/24033
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7229fde2263d1add4c0e74aeb7d5d4e0694f3cda
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim <ybronhei(a)redhat.com>