forked from gooddata/smoker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
smoker.spec
58 lines (47 loc) · 1.52 KB
/
smoker.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
%global with_check 0
Name: smoker
Version: 2.1.4
Release: 1%{?dist}
Epoch: 1
Summary: Smoke Testing Framework
Group: Applications/System
License: BSD
URL: https://github.com/gooddata/smoker
Source0: smoker.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python2-devel python-setuptools-devel python-flask-restful python-setproctitle python-psutil python-simplejson python-argparse PyYAML
Requires: python-flask-restful >= 1:0.3.1-5
Requires: python-setproctitle
Obsoletes: gdc-smoker
%description
Smoker (aka Smoke Testing Framework) is a framework for distributed execution
of Python modules, shell commands or external tools. It executes configured
plugins on request or periodically, unifies output and provide it via REST API
for it's command-line or other client.
%prep
%setup -q -n smoker
%build
%{__python} setup.py build
%install
%{__rm} -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
install -m 755 -D rc.d/init.d/smokerd %{buildroot}/etc/rc.d/init.d/smokerd
mkdir -p %{buildroot}/usr/share/doc/smoker/
install -m 644 etc/* %{buildroot}/usr/share/doc/smoker/
%if 0%{?with_check}
%check
%{__python} setup.py test
%endif #with_check
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{python_sitelib}/*.egg-info
%{python_sitelib}/smoker
/etc/rc.d/init.d/smokerd
/usr/share/doc/smoker/smokercli-example.yaml
/usr/share/doc/smoker/smokerd-example.yaml
/usr/bin/check_smoker_plugin.py
/usr/bin/smokercli.py
/usr/bin/smokerd.py