4d6b09c
%if 0%{?rhel} && 0%{?rhel} <= 6
4d6b09c
%{!?__python2: %global __python2 /usr/bin/python2}
4d6b09c
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
4d6b09c
%endif
4d6b09c
4d6b09c
Name:           ceph-deploy
3b004c6
Version:        1.5.25
4d6b09c
Release:        1%{?dist}
4d6b09c
Summary:        Admin and deploy tool for Ceph
4d6b09c
4d6b09c
License:        MIT
4d6b09c
URL:            https://github.com/ceph/ceph-deploy
4d6b09c
b379a74
Source0:        https://pypi.python.org/packages/source/c/%{name}/%{name}-%{version}.tar.gz
4d6b09c
4d6b09c
BuildArch:      noarch
4d6b09c
BuildRequires:  python2-devel
4d6b09c
BuildRequires:  python-setuptools
4d6b09c
4d6b09c
# Tox tests requirements
4d6b09c
BuildRequires:  openssh-clients
4d6b09c
BuildRequires:  pytest
4d6b09c
BuildRequires:  python-mock
4d6b09c
BuildRequires:  python-remoto
4d6b09c
BuildRequires:  python-tox
4d6b09c
4d6b09c
Requires:       python-remoto
4d6b09c
4d6b09c
%description
4d6b09c
An easy to use admin tool for deploy ceph storage clusters.
4d6b09c
4d6b09c
4d6b09c
%prep
4d6b09c
%setup -q
4d6b09c
4d6b09c
4d6b09c
%build
4d6b09c
CEPH_DEPLOY_NO_VENDOR=1 %{__python2} setup.py build
4d6b09c
4d6b09c
4d6b09c
%install
4d6b09c
CEPH_DEPLOY_NO_VENDOR=1 %{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
4d6b09c
4d6b09c
4d6b09c
%check
4d6b09c
# Tests are currently broken:
4d6b09c
#   http://tracker.ceph.com/issues/8825
d66b065
CEPH_DEPLOY_NO_VENDOR=1 tox -e py27-novendor || :
4d6b09c
4d6b09c
4d6b09c
%files
4d6b09c
%doc LICENSE README.rst
4d6b09c
%{_bindir}/ceph-deploy
4d6b09c
%{python2_sitelib}/*
4d6b09c
4d6b09c
4d6b09c
%changelog
3b004c6
* Tue May 26 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 1.5.25-1
3b004c6
- update to ceph-deploy 1.5.25 (CVE-2015-4053)
3b004c6
b379a74
* Mon May 18 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 1.5.24-1
b379a74
- update to ceph-deploy 1.5.24
b379a74
93d0d75
* Fri Apr 10 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 1.5.23-1
93d0d75
- update to ceph-deploy 1.5.23 (CVE-2015-3010) (RHBZ #1210106, #1210705,
93d0d75
  #1210706)
93d0d75
d66b065
* Tue Mar 24 2015 Ken Dreyer <ktdreyer@ktdreyer.com> - 1.5.22-1
d66b065
- update to ceph-deploy 1.5.22 (RHBZ #1201064)
d66b065
- add tox.ini to the packaging
d66b065
- run tox tests, but unconditionally pass them for now
d66b065
dea243b
* Wed Dec 10 2014 Ken Dreyer <ktdreyer@ktdreyer.com> - 1.5.21-1
dea243b
- update to ceph-deploy-1.5.21
dea243b
6111def
* Sat Nov 15 2014 Ken Dreyer <ktdreyer@ktdreyer.com> - 1.5.20-1
6111def
- update to ceph-deploy-1.5.20 (RHBZ #1148305)
6111def
ed691fc
* Fri Sep 12 2014 Federico Simoncelli <fsimonce@redhat.com> 1.5.15-1
ed691fc
- update to ceph-deploy-1.5.15
ed691fc
24a556f
* Thu Sep  4 2014 Federico Simoncelli <fsimonce@redhat.com> 1.5.13-1
24a556f
- update to ceph-deploy-1.5.13
24a556f
f2d10b0
* Fri Aug  1 2014 Federico Simoncelli <fsimonce@redhat.com> 1.5.10-1
f2d10b0
- update to ceph-deploy-1.5.10
f2d10b0
4d6b09c
* Wed Jul 16 2014 Federico Simoncelli <fsimonce@redhat.com> 1.5.9-1
4d6b09c
- update to ceph-deploy-1.5.9
4d6b09c
4d6b09c
* Mon Jul 14 2014 Federico Simoncelli <fsimonce@redhat.com> 1.5.8-1
4d6b09c
- update to ceph-deploy-1.5.8
4d6b09c
4d6b09c
* Wed Jul 2 2014 Federico Simoncelli <fsimonce@redhat.com> 1.5.7-1
4d6b09c
- fix python sitelib macros
4d6b09c
- update to ceph-deploy-1.5.7
4d6b09c
4d6b09c
* Tue Jul 1 2014 Federico Simoncelli <fsimonce@redhat.com> 1.5.6-1
4d6b09c
- initial build