14f8ab
From 12ae1a9a62c2c94af44f55b03575ab8806bd22ee Mon Sep 17 00:00:00 2001
14f8ab
From: Milind Changire <mchangir@redhat.com>
14f8ab
Date: Mon, 23 Apr 2018 13:16:30 +0530
14f8ab
Subject: [PATCH 25/52] build: make RHGS version available for server
14f8ab
14f8ab
Make /usr/share/glusterfs/release available for gluserfs-server package.
14f8ab
This file contains the RHGS release number for the release.
14f8ab
14f8ab
Label: DOWNSTREAM ONLY
14f8ab
14f8ab
Change-Id: I7485f77cfb8ca7f0f8363a20124900ae9ae8a528
14f8ab
Signed-off-by: Milind Changire <mchangir@redhat.com>
14f8ab
Reviewed-on: https://code.engineering.redhat.com/gerrit/137139
14f8ab
Tested-by: RHGS Build Bot <nigelb@redhat.com>
14f8ab
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
14f8ab
---
14f8ab
 glusterfs.spec.in | 5 +++++
14f8ab
 1 file changed, 5 insertions(+)
14f8ab
14f8ab
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
14f8ab
index db50b8e..bdb47ba 100644
14f8ab
--- a/glusterfs.spec.in
14f8ab
+++ b/glusterfs.spec.in
14f8ab
@@ -862,6 +862,10 @@ install -p -m 0744 -D extras/command-completion/gluster.bash \
14f8ab
     %{buildroot}%{_sysconfdir}/bash_completion.d/gluster
14f8ab
 %endif
14f8ab
 
14f8ab
+%if ( 0%{!?_without_server:1} )
14f8ab
+echo "RHGS 3.5" > %{buildroot}%{_datadir}/glusterfs/release
14f8ab
+%endif
14f8ab
+
14f8ab
 %clean
14f8ab
 rm -rf %{buildroot}
14f8ab
 
14f8ab
@@ -1452,6 +1456,7 @@ exit 0
14f8ab
 
14f8ab
 # Extra utility script
14f8ab
 %dir %{_libexecdir}/glusterfs
14f8ab
+     %{_datadir}/glusterfs/release
14f8ab
 %dir %{_datadir}/glusterfs/scripts
14f8ab
      %{_datadir}/glusterfs/scripts/stop-all-gluster-processes.sh
14f8ab
 %if ( 0%{?_with_systemd:1} )
14f8ab
-- 
14f8ab
1.8.3.1
14f8ab