- version_major: "4"
version_minor: "0"
version_patch: "0"
- rpm_release: "1.201601200134"
+ rpm_release: "2.201601200134"
rpm_disttag: el7
java_version: ">= 1:1.7.0"
sysd_commit: c6d7ee1f21d62ff8ffb741c7a12c3d8d3aa3d6ed
codename: beryllium-daily-v201601200134
download_url: "https://nexus.opendaylight.org/content/repositories/autorelease-1025/org/opendaylight/integration/distribution-karaf/0.4.0-beryllium-daily-v201601200134/distribution-karaf-0.4.0-beryllium-daily-v201601200134.tar.gz"
changelog: |
- * Wed Jan 20 2016 Daniel Farrell <dfarrell@redhat.com> - 4.0.0-1.201601200134
- - Create latest Beryllium Experimental Release Preview RPM
+ * Wed Jan 22 2016 Daniel Farrell <dfarrell@redhat.com> - 4.0.0-2.201601200134
+ - Make RPM upgrade properly
# 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.201601200134.el7
+Release: 2.201601200134.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
-* Wed Jan 20 2016 Daniel Farrell <dfarrell@redhat.com> - 4.0.0-1.201601200134
-- Create latest Beryllium Experimental Release Preview RPM
+* Wed Jan 22 2016 Daniel Farrell <dfarrell@redhat.com> - 4.0.0-2.201601200134
+- Make RPM upgrade properly
# 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