summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--glusterfs.spec.in36
1 files changed, 31 insertions, 5 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index 01380f4014c..ffa11900f78 100644
--- a/glusterfs.spec.in
+++ b/glusterfs.spec.in
@@ -247,7 +247,7 @@ Summary: GlusterFS api library
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
# we provide the Python package/namespace 'gluster'
-Provides: python-gluster = %{version}-%{release}
+#Provides: python-gluster = %{version}-%{release}
%description api
GlusterFS is a distributed file-system capable of scaling to several
@@ -315,8 +315,8 @@ This package provides the development libraries and include files.
%package extra-xlators
Summary: Extra Gluster filesystem Translators
Group: Applications/File
-# We need -api rpm for its __init__.py in Python site-packages area
-Requires: %{name}-api = %{version}-%{release}
+# We need python-glusterfs rpm for gluster module's __init__.py in Python site-packages area
+Requires: python-%{name} = %{version}-%{release}
Requires: python python-ctypes
%description extra-xlators
@@ -416,6 +416,24 @@ is in user space and easily manageable.
This package provides the base GlusterFS libraries
+%package -n python-gluster
+Summary: GlusterFS python library
+Group: Development/Tools
+Requires: python
+
+%description -n python-gluster
+GlusterFS is a distributed file-system capable of scaling to several
+petabytes. It aggregates various storage bricks over Infiniband RDMA
+or TCP/IP interconnect into one large parallel network file
+system. GlusterFS is one of the most sophisticated file systems in
+terms of features and extensibility. It borrows a powerful concept
+called Translators from GNU Hurd kernel. Much of the code in GlusterFS
+is in user space and easily manageable.
+
+This package contains the python modules of GlusterFS and own gluster
+namespace.
+
+
%if ( 0%{!?_without_rdma:1} )
%package rdma
Summary: GlusterFS rdma support for ib-verbs
@@ -601,6 +619,8 @@ mkdir -p %{buildroot}%{_localstatedir}/log/glusterd
mkdir -p %{buildroot}%{_localstatedir}/log/glusterfs
mkdir -p %{buildroot}%{_localstatedir}/log/glusterfsd
mkdir -p %{buildroot}%{_localstatedir}/run/gluster
+touch %{buildroot}%{python_sitelib}/gluster/__init__.py
+
# Remove unwanted files from all the shared libraries
find %{buildroot}%{_libdir} -name '*.a' -delete
@@ -908,8 +928,6 @@ fi
%files api
%exclude %{_libdir}/*.so
-# Shared Python-GlusterFS files
-%{python_sitelib}/gluster/__init__.*
# libgfapi files
%{_libdir}/libgfapi.*
%{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/mount/api*
@@ -998,6 +1016,11 @@ fi
# libgfdb is only needed server-side
%exclude %{_libdir}/libgfdb.*
+%files -n python-gluster
+# introducing glusterfs module in site packages.
+# so that all other gluster submodules can reside in the same namespace.
+%{python_sitelib}/gluster/__init__.*
+
%if ( 0%{!?_without_rdma:1} )
%files rdma
%{_libdir}/glusterfs/%{version}%{?prereltag}/rpc-transport/rdma*
@@ -1103,6 +1126,9 @@ fi
%changelog
+* Wed Apr 15 2015 Humble Chirammal <hchiramm@redhat.com>
+- Introducing python-gluster package to own gluster namespace in sitelib (#1211848)
+
* Sat Mar 28 2015 Mohammed Rafi KC <rkavunga@redhat.com>
- Add dependency for librdmacm version >= 1.0.15 (#1206744)