From 46302d0f008c312f13cf780290cbb3e6a0a83b9d Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 8 Oct 2013 21:30:21 -0700 Subject: 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 Reviewed-on: http://review.gluster.org/6054 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- glusterfs.spec.in | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'glusterfs.spec.in') diff --git a/glusterfs.spec.in b/glusterfs.spec.in index 6c38fe0f5..415931257 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 +- Add '_sharedstatedir' macro to `/var/lib` on <= RHEL5 (#1003184) + * Wed Oct 9 2013 Kaleb S. KEITHLEY - Sync with Fedora glusterfs.spec 3.4.1-2+ -- cgit