a3470f
From 01b371af8dc6f95c00facd5215ab4c939a86f1db Mon Sep 17 00:00:00 2001
a3470f
From: Milind Changire <mchangir@redhat.com>
a3470f
Date: Mon, 23 Apr 2018 13:16:30 +0530
a3470f
Subject: [PATCH 245/260] build: make RHGS version available for server
a3470f
a3470f
Make /usr/share/glusterfs/release available for gluserfs-server package.
a3470f
This file contains the RHGS release number for the release.
a3470f
a3470f
Label: DOWNSTREAM ONLY
a3470f
a3470f
Change-Id: I7485f77cfb8ca7f0f8363a20124900ae9ae8a528
a3470f
BUG: 1570514
a3470f
Signed-off-by: Milind Changire <mchangir@redhat.com>
a3470f
Reviewed-on: https://code.engineering.redhat.com/gerrit/137139
a3470f
Tested-by: RHGS Build Bot <nigelb@redhat.com>
a3470f
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
a3470f
---
a3470f
 glusterfs.spec.in | 8 ++++++++
a3470f
 1 file changed, 8 insertions(+)
a3470f
a3470f
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
a3470f
index 64e7e29..36b465a 100644
a3470f
--- a/glusterfs.spec.in
a3470f
+++ b/glusterfs.spec.in
a3470f
@@ -865,6 +865,10 @@ find ./tests ./run-tests.sh -type f | cpio -pd %{buildroot}%{_prefix}/share/glus
a3470f
 install -p -m 0744 -D extras/command-completion/gluster.bash \
a3470f
     %{buildroot}%{_sysconfdir}/bash_completion.d/gluster
a3470f
 
a3470f
+%if ( 0%{?_build_server} )
a3470f
+echo "RHGS 3.4.0" > %{buildroot}%{_datadir}/glusterfs/release
a3470f
+%endif
a3470f
+
a3470f
 %clean
a3470f
 rm -rf %{buildroot}
a3470f
 
a3470f
@@ -1566,6 +1570,7 @@ exit 0
a3470f
 
a3470f
 # Extra utility script
a3470f
 %dir %{_libexecdir}/glusterfs
a3470f
+     %{_datadir}/glusterfs/release
a3470f
 %dir %{_datadir}/glusterfs/scripts
a3470f
      %{_datadir}/glusterfs/scripts/stop-all-gluster-processes.sh
a3470f
 %if ( 0%{?_with_systemd:1} )
a3470f
@@ -2155,6 +2160,9 @@ fi
a3470f
 %endif
a3470f
 
a3470f
 %changelog
a3470f
+* Mon Apr 23 2018 Milind Changire <mchangir@redhat.com>
a3470f
+- make RHGS release number available in /usr/share/glusterfs/release (#1570514)
a3470f
+
a3470f
 * Wed Apr 18 2018 Atin Mukherjee  <amukherj@redhat.com>
a3470f
 - Revert SELinux hooks (#1565962)
a3470f
 
a3470f
-- 
a3470f
1.8.3.1
a3470f