diff options
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | 2011-03-21 08:43:47 -0700 |
---|---|---|
committer | Colin Patrick McCabe <cmccabe@alumni.cmu.edu> | 2011-03-21 09:45:48 -0700 |
commit | f2e146aa86f595b9acc1829e394abcd6570ce222 (patch) | |
tree | cc00ee1850e546006d8c08a9743a3fa1f0b56019 /ceph.spec.in | |
parent | ffdc995a4705884e9b18b60ee3149bba49acfa8e (diff) | |
download | ceph-f2e146aa86f595b9acc1829e394abcd6570ce222.tar.gz |
rpm: package python bindings for rados
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Diffstat (limited to 'ceph.spec.in')
-rw-r--r-- | ceph.spec.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ceph.spec.in b/ceph.spec.in index f26253f29ec..c3366dce63d 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1,6 +1,11 @@ %define with_radosgw %{?_with_radosgw: 1} %{!?_with_radosgw: 0} %define with_gtk2 %{?_with_gtk2: 1} %{!?_with_gtk2: 0} +%if ! (0%{?fedora} > 12 || 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))")} +%endif + Name: ceph Version: @VERSION@ Release: 4%{?dist} @@ -177,6 +182,9 @@ fi %{_mandir}/man8/cdebugpack.8* %{_mandir}/man8/cclass.8.gz %{_mandir}/man8/cclsinfo.8.gz +%{python_sitelib}/rados.py +%{python_sitelib}/rados.pyc +%{python_sitelib}/rados.pyo %dir %{_localstatedir}/lib/ceph/ %dir %{_localstatedir}/lib/ceph/tmp/ %dir %{_localstatedir}/log/ceph/ |