summaryrefslogtreecommitdiffstats
path: root/glusterfs.spec.in
diff options
context:
space:
mode:
authorVijay Bellur <vbellur@redhat.com>2014-06-20 07:48:19 -0700
committerVijay Bellur <vbellur@redhat.com>2014-06-20 07:49:12 -0700
commit85ee12f7c061d7035a6441f5d11d9ebed5e574cf (patch)
tree5c2aaa372f9fa3a2ef3e29f860c7bfbba9e9ac57 /glusterfs.spec.in
parenteba1fb05791f1424f68998cf2175cad1ce6098de (diff)
Revert "gfapi : remove gfapi.py to avoid confusion"
This reverts commit d0547a28f59d80ed572652af3e327b761c4e540f Change-Id: I79ff562fff33d4ad7ca34c6442eb0e980890965a Reviewed-on: http://review.gluster.org/8139 Reviewed-by: Vijay Bellur <vbellur@redhat.com> Tested-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r--glusterfs.spec.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index df5ce81d2ed..a9061ced62a 100644
--- a/glusterfs.spec.in
+++ b/glusterfs.spec.in
@@ -501,6 +501,11 @@ pushd xlators/features/glupy/src
FLAGS="$RPM_OPT_FLAGS" python setup.py build
popd
+# Build the Python libgfapi examples
+pushd api/examples
+FLAGS="$RPM_OPT_FLAGS" python setup.py build
+popd
+
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
@@ -508,6 +513,10 @@ make install DESTDIR=%{buildroot}
pushd xlators/features/glupy/src
python setup.py install --skip-build --verbose --root %{buildroot}
popd
+# install the gfapi Python library in /usr/lib/python*/site-packages
+pushd api/examples
+python setup.py install --skip-build --verbose --root %{buildroot}
+popd
# Install include directory
mkdir -p %{buildroot}%{_includedir}/glusterfs
install -p -m 0644 libglusterfs/src/*.h \
@@ -844,9 +853,16 @@ 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*
+%{python_sitelib}/gluster/gfapi.*
+# Don't expect a .egg-info file on EL5
+%if ( ! ( 0%{?rhel} && 0%{?rhel} < 6 ) )
+%{python_sitelib}/glusterfs_api*.egg-info
+%endif
%files api-devel
%{_libdir}/pkgconfig/glusterfs-api.pc