diff options
authorPrashanth Pai <>2016-09-07 02:32:19 -0700
committerGerrit Code Review <>2016-09-07 02:32:19 -0700
commitd343118f99e9eac18be87bf0c3123a04ec2eeb2c (patch)
parentb8b9837db95a7b56109461808c807183453579b7 (diff)
parentc3363496991c95cadd31a301ec7a4d71fdf7f8a1 (diff)
Merge "Update spec file"
2 files changed, 33 insertions, 53 deletions
diff --git a/ b/
index ce51ba3..dd88d06 100644
--- a/
+++ b/
@@ -1,5 +1,6 @@
include .functests .unittests test-requirements.txt tox.ini test/test.conf
+include python-glusterfs-api.spec
recursive-include gluster *.py
recursive-include test *.py
graft doc
diff --git a/python-glusterfs-api.spec b/python-glusterfs-api.spec
index 38aa0bc..e344a06 100644
--- a/python-glusterfs-api.spec
+++ b/python-glusterfs-api.spec
@@ -1,79 +1,58 @@
+# What's in a name ? :‑O
+# * The source repo is named libgfapi-python
+# * The python package is named gfapi
+# * The RPM package is named python-glusterfs-api to be analogous to
+# glusterfs-api RPM which provides the libgfapi C library
-# From
-%if ( 0%{?rhel} && 0%{?rhel} <= 5 )
-%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
-%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%global python_package_name gfapi
Name: python-glusterfs-api
-Summary: python binding of Gluster libgfapi
-Version: 1.0.0
+Summary: Python bindings for GlusterFS libgfapi
+Version: 1.1
Release: 1%{?dist}
License: GPLv2 or LGPLv3+
-BuildArch: noarch
+Group: System Environment/Libraries
+Vendor: Gluster Community
-Source0: %{name}-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
-#at build time
+BuildArch: noarch
BuildRequires: python-setuptools
-BuildRequires: python2-devel
-#at time of run
-Requires: python
-Requires: python-ctypes
-Requires: glusterfs-api >= 3.6.1
+# Provides
+Requires: glusterfs-api >= 3.7.0
+# Provides gluster/
Requires: python-gluster >= 3.7.0
-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 a library that allows applications to natively access GlusterFS
+volumes. This package contains python bindings to libgfapi.
-libgfapi is one of the access mechanism for GlusterFS volumes and this package
-contains python bindings of libgfapi.
+See for more details.
-%setup -q
+%setup -q -n %{python_package_name}-%{version}
-%{__python} build
+%{__python2} build
rm -rf %{buildroot}
-mkdir -p %{buildroot}/%{python2_sitelib}/gluster/gfapi/
-%{__python2} install --skip-build --verbose --root %{buildroot}
-mv %{buildroot}/%{python2_sitelib}/gluster/* %{buildroot}/%{python2_sitelib}/gluster/gfapi/
-mv %{buildroot}/%{python2_sitelib}/gluster/* %{buildroot}/%{python2_sitelib}/gluster/gfapi/
-mv %{buildroot}/%{python2_sitelib}/gluster/* %{buildroot}/%{python2_sitelib}/gluster/gfapi/
+%{__python2} install --skip-build --root %{buildroot}
-# Don't expect a .egg-info file on EL5
-%if ( ! ( 0%{?rhel} && 0%{?rhel} < 6 ) )
-# unit and functional test files are part of source, however we are not packaging it, so adding them in
-# exclude.
-%exclude %{buildroot}/test/
-%exclude %{buildroot}/
-%exclude %{buildroot}/test-requirements.txt
-%exclude %{buildroot}/tox.ini
-%exclude %{buildroot}/
-%{!?_licensedir:%global license %%doc}
+%doc README.rst
+# As weird as it may seem, excluding[co] is intentional as
+# it is provided by python-gluster package which is a dependency.
+%exclude %{python2_sitelib}/gluster/__init__*
+* Tue Aug 9 2016 Prashanth Pai <> - 1.1-1
+- Update spec file
* Wed May 20 2015 Humble Chirammal <> - 1.0.0-1
- Change Package name to python-glusterfs-api instead of python-gluster-gfapi.