path: root/python-glusterfs-api.spec
diff options
authorHumble Devassy Chirammal <>2015-04-15 21:42:33 +0530
committerhchiramm <>2015-05-29 16:31:33 +0530
commit385dd1635dc243feafb6b234a4feb80417ee9f4f (patch)
tree7ee81d2f5110950017e701c500a937d407bc9cf4 /python-glusterfs-api.spec
parent29795c7ec3186e525e90198ec0bd7989ff627afc (diff)
Package libgfapi-python project for its consumers
This project has to be shipped as rpm for various distributions like Fedora,Centos,RHEL.etc, so that the clients like vdsm, openstack..etc can make use of python bindings of libgfapi library of GlusterFS. This patch introduce first version of the spec file for this project. Change-Id: Icb5d83fc8b278a3cd7b89d55b5fda15a84c2fa82 Signed-off-by: Humble Devassy Chirammal <>
Diffstat (limited to 'python-glusterfs-api.spec')
1 files changed, 90 insertions, 0 deletions
diff --git a/python-glusterfs-api.spec b/python-glusterfs-api.spec
new file mode 100644
index 0000000..38aa0bc
--- /dev/null
+++ b/python-glusterfs-api.spec
@@ -0,0 +1,90 @@
+# 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))")}
+Name: python-glusterfs-api
+Summary: python binding of Gluster libgfapi
+Version: 1.0.0
+Release: 1%{?dist}
+License: GPLv2 or LGPLv3+
+BuildArch: noarch
+Source0: %{name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+#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
+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.
+%setup -q
+%{__python} 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/
+# 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}
+* 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.