-
Notifications
You must be signed in to change notification settings - Fork 32
/
sesdev.spec
106 lines (90 loc) · 3.33 KB
/
sesdev.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#
# spec file for package sesdev
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: sesdev
Version: 1.12.1
Release: 1%{?dist}
Summary: CLI tool to deploy and manage SES clusters
License: MIT
URL: https://github.com/SUSE/sesdev
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
%if 0%{?suse_version}
BuildRequires: python-rpm-macros
%else
BuildRequires: python3-devel
%endif
BuildRequires: fdupes
BuildRequires: python3-setuptools
%if 0%{?suse_version}
Requires: python3-Jinja2 >= 2.10.1
Requires: python3-libvirt-python >= 5.1.0
Requires: python3-PrettyTable
Requires: python3-PyYAML >= 3.13
%endif
%if 0%{?el8} || 0%{?fedora}
Requires: python3-jinja2 >= 2.10.1
Requires: python3-libvirt >= 5.1.0
Requires: python3-prettytable
Requires: python3-pyyaml >= 3.13
%endif
Requires: python3-click >= 6.7
Requires: python3-pycryptodomex >= 3.4.6
Requires: python3-setuptools
Requires: vagrant > 2.2.2
Requires: vagrant-libvirt
Requires: sesdev-qa = %{version}-%{release}
%if 0%{?el8} || 0%{?fedora}
%{?python_disable_dependency_generator}
%endif
%description
sesdev is a CLI tool for developers to help with deploying SES clusters.
This tool uses vagrant and libvirt to create VMs and install Ceph using
DeepSea. The tool is highly customizable and allows to choose different
versions of Ceph and SES, as well as, different versions of the openSUSE
based OS.
%package qa
Summary: Integration test script for validating Ceph deployments
%description qa
Integration test script for validating Ceph clusters deployed
by sesdev
%prep
%autosetup -p1
%if 0%{?fedora} && 0%{?fedora} < 30
sed -i -e 's/^\s*lv.qemu_use_session = false$//g' seslib/templates/Vagrantfile.j2
%endif
%build
%py3_build
%install
%py3_install
%fdupes %{buildroot}%{python3_sitelib}
install -m 0755 -d %{buildroot}/%{_datadir}/%{name}/qa
install -m 0755 -d %{buildroot}/%{_datadir}/%{name}/qa/common
install -m 0755 qa/health-ok.sh %{buildroot}/%{_datadir}/%{name}/qa/health-ok.sh
install -m 0644 qa/common/common.sh %{buildroot}/%{_datadir}/%{name}/qa/common/common.sh
install -m 0644 qa/common/helper.sh %{buildroot}/%{_datadir}/%{name}/qa/common/helper.sh
install -m 0644 qa/common/json.sh %{buildroot}/%{_datadir}/%{name}/qa/common/json.sh
install -m 0644 qa/common/rgw.sh %{buildroot}/%{_datadir}/%{name}/qa/common/rgw.sh
install -m 0644 qa/common/zypper.sh %{buildroot}/%{_datadir}/%{name}/qa/common/zypper.sh
%files
%license LICENSE
%doc CHANGELOG.md README.md
%{python3_sitelib}/seslib*/
%{python3_sitelib}/sesdev*/
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%files qa
%{_datadir}/%{name}/qa
%changelog