- version_major: "3"
version_minor: "3"
version_patch: "0"
- rpm_release: "1"
+ rpm_release: "2"
rpm_disttag: el7
java_version: ">= 1:1.7.0"
sysd_commit: c6d7ee1f21d62ff8ffb741c7a12c3d8d3aa3d6ed
codename: Lithium-SR3
download_url: "https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/distribution-karaf/0.3.3-Lithium-SR3/distribution-karaf-0.3.3-Lithium-SR3.tar.gz"
changelog: |
- * Fri Dec 11 2015 Daniel Farrell <dfarrell@redhat.com> - 3.3.0-1
- - Create Lithium SR3 RPM
+ * Mon Jan 25 2016 Daniel Farrell <dfarrell@redhat.com> - 3.3.0-2
+ - Make Lithium SR3 RPM upgrade properly
- version_major: "4"
version_minor: "0"
version_patch: "0"
# unnecessary and unused in our case, but both the docs and the pros (apevec)
# agree that we should include it.
# See: https://fedoraproject.org/wiki/Packaging:DistTag
-Release: 1.el7
+Release: 2.el7
BuildArch: noarch
Summary: OpenDaylight SDN Controller
Group: Applications/Communications
# When the RPM is removed, the subdirs containing new files wouldn't normally
# be deleted. Manually clean them up.
# Warning: This does assume there's no data there that should be preserved
-rm -rf $RPM_BUILD_ROOT/opt/%name
+if [ $1 -eq 0 ]; then
+ rm -rf $RPM_BUILD_ROOT/opt/%name
+fi
%files
# ODL will run as odl:odl, set as user:group for ODL dir, don't override mode
%changelog
-* Fri Dec 11 2015 Daniel Farrell <dfarrell@redhat.com> - 3.3.0-1
-- Create Lithium SR3 RPM
+* Mon Jan 25 2016 Daniel Farrell <dfarrell@redhat.com> - 3.3.0-2
+- Make Lithium SR3 RPM upgrade properly