Name: python-glusterfs-api Summary: Python bindings of Gluster libgfapi Version: 1.0.0 Release: 2%{?dist} License: GPLv2 or LGPLv3+ BuildArch: noarch URL: https://github.com/gluster/libgfapi-python Source0: http://bits.gluster.org/pub/gluster/glusterfs/src/python-glusterfs-api-%{version}.tar.gz #at build time BuildRequires: python-setuptools BuildRequires: python2-devel #at time of run Requires: python Requires: python-ctypes Requires: glusterfs-api >= 3.6.1 Requires: python-gluster >= 3.7.0 %description 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. libgfapi is one of the access mechanism for GlusterFS volumes and this package contains python bindings of libgfapi. %prep %setup -q %build %{__python2} setup.py build %install mkdir -p %{buildroot}/%{python2_sitelib}/gluster/gfapi/ %{__python2} setup.py install --skip-build --verbose --root %{buildroot} # the source files are kept under "glusterfs" directory in source project. # the 'gluster' namespace is shared among all other python projects of GlusterFS. # for ex: from gluster import glupy # This python bindings of libgfapi will go in gluster/gfapi namespace in sitepackages, so that # the import will become: # from gluster import gfapi # The gluster namespace (%{python2_sitelib}/gluster) will be owned by a package called # 'python-gluster' which is a dependency package for this rpm. mv %{buildroot}/%{python2_sitelib}/gluster/gfapi.py* %{buildroot}/%{python2_sitelib}/gluster/gfapi/ mv %{buildroot}/%{python2_sitelib}/gluster/api.py* %{buildroot}/%{python2_sitelib}/gluster/gfapi/ mv %{buildroot}/%{python2_sitelib}/gluster/__init__.py* %{buildroot}/%{python2_sitelib}/gluster/gfapi/ %files %doc README.md %{python2_sitelib}/gluster/gfapi/ %{python2_sitelib}/*.egg-info %license COPYING-GPLV2 COPYING-LGPLV3 %changelog * Tue Jun 09 2015 Humble Chirammal - 1.0.0-2 - Fix issues for this package review * Wed May 20 2015 Humble Chirammal - 1.0.0-1 - Change Package name to python-glusterfs-api instead of python-gluster-gfapi. * Mon May 18 2015 Humble Chirammal - 1.0.0-0beta3 - Added license macro. * Wed Apr 15 2015 Humble Chirammal - 1.0.0-0beta2 - Added detailed description for this package. * Tue Apr 14 2015 Humble Chirammal - 1.0.0-0beta1 - Renamed glusterfs module to gluster * Wed Feb 11 2015 Humble Chirammal - 1.0.0-0 - Introducing spec file.