## Building the RPM
-The `build.sh` script is a helper for building the RPM.
+The `build.sh` script is a helper for building the RPM.
```
SRPM built!
-Location: /home/vagrant/rpmbuild/SRPMS/opendaylight-0.2.3-1.fc20.src.rpm
+Location: /home/vagrant/rpmbuild/SRPMS/opendaylight-0.2.3-2.fc20.src.rpm
Assuming you want to move RPM off Vagrant box
Also renaming RPM, not actually tagged as for FC20 target OS
-cp /home/vagrant/rpmbuild/SRPMS/opendaylight-0.2.3-1.fc20.src.rpm /vagrant/opendaylight-0.2.3-1.src.rpm
+cp /home/vagrant/rpmbuild/SRPMS/opendaylight-0.2.3-2.fc20.src.rpm /vagrant/opendaylight-0.2.3-2.src.rpm
RPM built!
-Location: /home/vagrant/rpmbuild/RPMS/noarch/opendaylight-0.2.3-1.fc20.noarch.rpm
+Location: /home/vagrant/rpmbuild/RPMS/noarch/opendaylight-0.2.3-2.fc20.noarch.rpm
Assuming you want to move RPM off Vagrant box
Also renaming RPM, not actually tagged as for FC20 target OS
-cp /home/vagrant/rpmbuild/RPMS/noarch/opendaylight-0.2.3-1.fc20.noarch.rpm /vagrant/opendaylight-0.2.3-1.noarch.rpm
+cp /home/vagrant/rpmbuild/RPMS/noarch/opendaylight-0.2.3-2.fc20.noarch.rpm /vagrant/opendaylight-0.2.3-2.noarch.rpm
```
## Working with the ODL RPM
```
[vagrant@localhost vagrant]$ ./install.sh
-Installing ODL from ./opendaylight-0.2.3-1.noarch.rpm
+Installing ODL from ./opendaylight-0.2.3-2.noarch.rpm
```
Here's a manual walk-through of the install and the resulting system changes.
# If you want to test the install in the provided build env, install Java
[vagrant@localhost vagrant]$ sudo yum install -y java
# Install the ODL RPM
-[vagrant@localhost vagrant]$ sudo rpm -i opendaylight-0.2.3-1.noarch.rpm
+[vagrant@localhost vagrant]$ sudo rpm -i opendaylight-0.2.3-2.noarch.rpm
# Note that ODL is now installed in /opt
[vagrant@localhost vagrant]$ ls /opt/
opendaylight
# Common paths used in this script
# NB: Name will need to be updated for both ODL and RMP version bumps
-version=1
+version=2
rpm_name="opendaylight-0.2.3-$version.noarch.rpm"
rpm_out_path="$HOME/rpmbuild/RPMS/noarch/opendaylight-0.2.3-$version.fc20.noarch.rpm"
srpm_name="opendaylight-0.2.3-$version.src.rpm"
Name: opendaylight
Version: 0.2.3
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: OpenDaylight SDN Controller
Group: Applications/Communications
Buildroot: /tmp
# Required for ODL at run time
-Requires: java >= 1:1.7.0
+Requires: java = 1:1.7.0
# Required for creating odl group
Requires(pre): shadow-utils
# Required for configuring systemd
%changelog
+* Thu Apr 16 2015 Daniel Farrell <dfarrell@redhat.com> - 0.2.3-2
+- Force Java version 1.7
* Mon Mar 23 2015 Daniel Farrell <dfarrell@redhat.com> - 0.2.3-1
- Upgrade from Helium SR2 to Helium SR3
* Sun Mar 15 2015 Daniel Farrell <dfarrell@redhat.com> - 0.2.2-4