[node-patches] Change in ovirt-node-iso[master]: add vdsm-compatibility.txt to /usr/share/ovirt-node-iso

mburns at redhat.com mburns at redhat.com
Mon Oct 15 10:59:36 UTC 2012


Michael Burns has uploaded a new change for review.

Change subject: add vdsm-compatibility.txt to /usr/share/ovirt-node-iso
......................................................................

add vdsm-compatibility.txt to /usr/share/ovirt-node-iso

Change-Id: Id536ece2e9506ac68e611468d76dc5eeee0e228c
Signed-off-by: Mike Burns <mburns at redhat.com>
---
M ovirt-node-iso.spec.in
1 file changed, 12 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node-iso refs/changes/50/8550/1

diff --git a/ovirt-node-iso.spec.in b/ovirt-node-iso.spec.in
index aae791a..47496ba 100644
--- a/ovirt-node-iso.spec.in
+++ b/ovirt-node-iso.spec.in
@@ -2,6 +2,7 @@
 %define product_short oVirt Node ISO
 %define product_code ovirt-node-iso
 %define build_counter %(test -n "%{?BUILD_NUMBER}" && echo "%{?BUILD_NUMBER}" || echo @BUILD_NUMBER@ )
+%define vdsm_compat 3.2,3.1
 
 Name:		ovirt-node-iso
 Version:	@VERSION@
@@ -32,6 +33,7 @@
 %{__install} -d -m0755 %{buildroot}%{app_root}
 %{__install} -p -m0644 %{SOURCE1} %{buildroot}%{app_root}/%{product_code}-%{version}-%{release}.iso
 echo %{version},%{release} > %{buildroot}%{app_root}/version-%{version}-%{release}.txt
+echo %{vdsm_compat} > %{buildroot}%{app_root}/vdsm-compatibility-%{version}-%{release}.txt
 
 %post
 nvr=0
@@ -49,11 +51,15 @@
 done
 ln -snf %{app_root}/${nvr}.txt  %{app_root}/version.txt
 ln -snf %{app_root}/ovirt-node-iso-${nvr#*-}.iso %{app_root}/%{name}.iso
+if [ -f %{app_root}/vdsm-compatibility-${nvr#*-}.txt ]; then
+    ln -snf %{app_root}/vdsm-compatibility-${nvr#*-}.txt vdsm-compatibility.txt
+fi
 
 %preun
 #first remove all symlinks
 rm %{app_root}/version.txt
 rm %{app_root}/%{name}.iso
+rm -f %{app_root}/vdsm-compatibility.txt
 
 nvr=0
 for ver in %{app_root}/version-*txt; do
@@ -74,6 +80,9 @@
 if [ ! "$nvr" = "0" ]; then
     ln -snf %{app_root}/${nvr}.txt  %{app_root}/version.txt
     ln -snf %{app_root}/rhevh-${nvr#*-}.iso %{app_root}/%{name}.iso
+    if [ -f %{app_root}/vdsm-compatibility-${nvr#*-}.txt ]; then
+        ln -snf %{app_root}/vdsm-compatibility-${nvr#*-}.txt vdsm-compatibility.txt
+    fi
 fi
 
 %clean
@@ -89,5 +98,8 @@
 
 
 %changelog
+* Mon Oct 15 2012 Mike Burns <mburns at redhat.com> 2.5.999
+- add vdsm-compatibility version text file to rpm.
+
 * Wed Feb 08 2012 Mike Burns <mburns at redhat.com> 2.2.2-2.2
 - Initial version


--
To view, visit http://gerrit.ovirt.org/8550
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id536ece2e9506ac68e611468d76dc5eeee0e228c
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node-iso
Gerrit-Branch: master
Gerrit-Owner: Michael Burns <mburns at redhat.com>



More information about the node-patches mailing list