%if 0%{?rhel} && 0%{?rhel} <= 6 %{!?__python2: %global __python2 /usr/bin/python2} %{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %endif Name: ceph-deploy Version: 1.5.8 Release: 1%{?dist} Summary: Admin and deploy tool for Ceph License: MIT URL: https://github.com/ceph/ceph-deploy # http://github.com/ceph/%{name}/archive/v%{version}.tar.gz Source0: %{name}-%{version}.tar.xz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools # Tox tests requirements BuildRequires: python-tox BuildRequires: python-remoto Requires: python-remoto %description An easy to use admin tool for deploy ceph storage clusters. %prep %setup -q %build CEPH_DEPLOY_NO_VENDOR=1 %{__python2} setup.py build %install CEPH_DEPLOY_NO_VENDOR=1 %{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %check # ceph-deploy currently can't run tests on python-remoto provided # by a distribution (import path issue). # http://tracker.ceph.com/issues/8825 #CEPH_DEPLOY_NO_VENDOR=1 tox %files %doc LICENSE README.rst %{_bindir}/ceph-deploy %{python2_sitelib}/* %changelog * Mon Jul 14 2014 Federico Simoncelli 1.5.8-1 - update to ceph-deploy-1.5.8 * Wed Jul 2 2014 Federico Simoncelli 1.5.7-1 - fix python sitelib macros - update to ceph-deploy-1.5.7 * Tue Jul 1 2014 Federico Simoncelli 1.5.6-1 - initial build