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