forked from ceph/ceph-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ceph-deploy.spec
79 lines (68 loc) · 2.13 KB
/
ceph-deploy.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#
# spec file for package ceph-deploy
#
%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
#################################################################################
# common
#################################################################################
Name: ceph-deploy
Version: 1.5.19
Release: 0
Summary: Admin and deploy tool for Ceph
License: MIT
Group: System/Filesystems
URL: http://ceph.com/
Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-distribute
BuildRequires: python-setuptools
BuildRequires: python-virtualenv
BuildRequires: python-mock
BuildRequires: python-tox
%if 0%{?suse_version}
BuildRequires: python-pytest
%else
BuildRequires: pytest
%endif
BuildRequires: git
Requires: python-argparse
Requires: python-distribute
#Requires: lsb-release
#Requires: ceph
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
#################################################################################
# specific
#################################################################################
%if 0%{defined suse_version}
%py_requires
%endif
%if 0%{?rhel}
BuildRequires: python >= %{pyver}
Requires: python >= %{pyver}
%endif
%description
An easy to use admin tool for deploy ceph storage clusters.
%prep
#%setup -q -n %{name}
%setup -q
%build
#python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
install -m 0755 -D scripts/ceph-deploy $RPM_BUILD_ROOT/usr/bin
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
%doc LICENSE README.rst
%{_bindir}/ceph-deploy
%{python_sitelib}/*
%changelog