Add ODL Helium SR4 RPM build definition 88/26988/2
authorDaniel Farrell <dfarrell@redhat.com>
Tue, 15 Sep 2015 15:58:56 +0000 (11:58 -0400)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 15 Sep 2015 16:30:30 +0000 (16:30 +0000)
Add a build_vars file to define a Helium SR4 RPM.

Makes use of the new multi-RPM support added to build.sh and the ODL
spec file to support both 2.4 and 3.0 builds at the same time.

Change-Id: I2bdfab354eeec580b00e9c0d6db57b9b2d73c285
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
rpm/build_vars/vars_2.4.0-1.sh [new file with mode: 0755]
rpm/opendaylight.spec

diff --git a/rpm/build_vars/vars_2.4.0-1.sh b/rpm/build_vars/vars_2.4.0-1.sh
new file mode 100755 (executable)
index 0000000..f08ab9f
--- /dev/null
@@ -0,0 +1,27 @@
+#!/usr/bin/env sh
+# Variables to define an OpenDaylight RPM build
+# `build.sh` reads these and passes them to `opendaylight.spec`
+# To define a new ODL RPM build, copy one of these and adjust as-needed
+
+# Directory used for caching build artifacts
+# Customizing this is useful for some offline builds
+cache_dir="/vagrant"
+
+# Version fields for the ODL release
+version_major=2
+version_minor=4
+
+# Include variable defaults that are common to many builds
+# NB: To use vars in default_vars.sh, define them before this source cmd
+#     Example: version_[major,minor,patch] is used for [odl,rpm]_version
+# NB: To override vars things defined in default_vars, define them after
+source $cache_dir/build_vars/default_vars.sh
+
+# Elemental codename for the ODL release, including SR if applicable
+codename="Helium-SR4"
+
+# RPM version for the given ODL major.minor.patch
+rpm_release=1
+
+# Java versions supported by this ODL release
+java_version="= 1:1.7.0"
index eff85b87c212f4d27dcfb02bbceda39bdeb5b8ca..253b21f541ed34bc9a1e1ebc4c35310d8009373e 100644 (file)
@@ -64,6 +64,8 @@ rm -rf $RPM_BUILD_ROOT/opt/%name
 
 
 %changelog
+* Tue Sep 15 2015 Daniel Farrell <dfarrell@redhat.com> - 2.4.0-1
+- Create Helium SR4 RPM
 * Fri Jul 17 2015 Daniel Farrell <dfarrell@redhat.com> - 3.0.0-2
 - Include required disttag in RPM release version
 * Tue Jul 14 2015 Daniel Farrell <dfarrell@redhat.com> - 3.0.0-1