summaryrefslogtreecommitdiffstats
path: root/glusterfs.spec.in
diff options
context:
space:
mode:
authorHarshavardhana <harsha@harshavardhana.net>2013-10-08 21:30:21 -0700
committerAnand Avati <avati@redhat.com>2013-10-12 00:41:14 -0700
commit46302d0f008c312f13cf780290cbb3e6a0a83b9d (patch)
tree62710eaf7ac3bc24a3a87220ea9aadde8031badd /glusterfs.spec.in
parent6d28941b0b32ae0053604021925dfdc8d40a1047 (diff)
glusterfs.spec: Add _sharedstatedir for RHEL5
------------------------------------------------- > # rpm --showrc | grep sharedstatedir | grep com -14: _sharedstatedir %{_prefix}/com > # cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.8 (Tikanga) ------------------------------------------------- EL5 package has a missing macro _sharedstatedir which should be pointing to `/var/lib` not `%{_prefix}/com` Change-Id: Ida72360d73d5dffa767c69642ee395e9c82fa8c6 BUG: 1003184 Signed-off-by: Harshavardhana <harsha@harshavardhana.net> Reviewed-on: http://review.gluster.org/6054 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r--glusterfs.spec.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index 6c38fe0..4159312 100644
--- a/glusterfs.spec.in
+++ b/glusterfs.spec.in
@@ -181,6 +181,11 @@ Provides: %{name}-core = %{version}-%{release}
%global __provides_exclude_from ^%{_libdir}/glusterfs/%{version}/.*$
%endif
+%if ( 0%{?rhel} <= 5 )
+ # _sharedstatedir is not provided by RHEL5
+ %define %_sharedstatedir /var/lib
+%endif
+
%description
GlusterFS is a clustered file-system capable of scaling to several
petabytes. It aggregates various storage bricks over Infiniband RDMA
@@ -877,6 +882,9 @@ if [ $1 -ge 1 ]; then
fi
%changelog
+* Wed Oct 11 2013 Harshavardhana <fharshav@redhat.com>
+- Add '_sharedstatedir' macro to `/var/lib` on <= RHEL5 (#1003184)
+
* Wed Oct 9 2013 Kaleb S. KEITHLEY <kkeithle@redhat.com>
- Sync with Fedora glusterfs.spec 3.4.1-2+