forked from Difrex/surok
-
Notifications
You must be signed in to change notification settings - Fork 3
/
surok.spec
93 lines (83 loc) · 3.52 KB
/
surok.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
Summary: Simple service discovery for Apache Mesos clusters
Name: surok
Version: 0.8.1
Release: 1
License: BSD
Group: admin
URL: https://github.com/Difrex/surok
Source0: surok.tar.gz
BuildArch: noarch
Requires: python34
# BuildRoot: %{_tmppath}/%{name}-%{release}-root
%description
Simple service discovery for Apache Mesos clusters
%prep
%setup -q
%build
%install
mkdir -p %{buildroot}/opt/surok/surok
install -p -m 644 /root/rpmbuild/BUILD/surok-%{version}/surok/__init__.py %{buildroot}/opt/surok/surok
install -p -m 644 /root/rpmbuild/BUILD/surok-%{version}/surok/apps.py %{buildroot}/opt/surok/surok
install -p -m 644 /root/rpmbuild/BUILD/surok-%{version}/surok/config.py %{buildroot}/opt/surok/surok
install -p -m 644 /root/rpmbuild/BUILD/surok-%{version}/surok/discovery.py %{buildroot}/opt/surok/surok
install -p -m 644 /root/rpmbuild/BUILD/surok-%{version}/surok/logger.py %{buildroot}/opt/surok/surok
install -p -m 644 /root/rpmbuild/BUILD/surok-%{version}/surok/store.py %{buildroot}/opt/surok/surok
install -p -m 644 /root/rpmbuild/BUILD/surok-%{version}/surok/system.py %{buildroot}/opt/surok/surok
install -p -m 644 /root/rpmbuild/BUILD/surok-%{version}/surok/templates.py %{buildroot}/opt/surok/surok
install -p -m 644 /root/rpmbuild/BUILD/surok-%{version}/surok.py %{buildroot}/opt/surok
mkdir -p %{buildroot}/etc/surok/{conf,conf.d,templates}
install -p -m 644 /root/rpmbuild/BUILD/surok-%{version}/conf/surok.json %{buildroot}/etc/surok/conf
install -p -m 644 /root/rpmbuild/BUILD/surok-%{version}/conf/surok_07.json %{buildroot}/usr/share/surok/conf
install -p -m 644 /root/rpmbuild/BUILD/surok-%{version}/conf/surok_08.json %{buildroot}/usr/share/surok/conf
install -p -m 644 /root/rpmbuild/BUILD/surok-%{version}/conf/surok_check.json %{buildroot}/usr/share/surok/conf
install -p -m 644 /root/rpmbuild/BUILD/surok-%{version}/conf.d/self_check.json %{buildroot}/usr/share/surok/conf.d
install -p -m 644 /root/rpmbuild/BUILD/surok-%{version}/conf.d/marathon_check.json %{buildroot}/usr/share/surok/conf.d
install -p -m 644 /root/rpmbuild/BUILD/surok-%{version}/templates/selfcheck.jj2 %{buildroot}/usr/share/surok/templates
install -p -m 644 /root/rpmbuild/BUILD/surok-%{version}/requriments.txt %{buildroot}/opt/surok
%clean
rm -rf $RPM_BUILD_ROOT
%post
cd /opt/surok && pip3 install -r requriments.txt
%files
/opt/surok/surok/__init__.py
/opt/surok/surok/__init__.pyc
/opt/surok/surok/__init__.pyo
/opt/surok/surok/logger.py
/opt/surok/surok/logger.pyc
/opt/surok/surok/logger.pyo
/etc/surok/conf/surok.json
/opt/surok/surok.py
/opt/surok/surok.pyc
/opt/surok/surok.pyo
/opt/surok/surok/apps.py
/opt/surok/surok/apps.pyc
/opt/surok/surok/apps.pyo
/opt/surok/surok/config.py
/opt/surok/surok/config.pyc
/opt/surok/surok/config.pyo
/opt/surok/surok/discovery.py
/opt/surok/surok/discovery.pyc
/opt/surok/surok/discovery.pyo
/opt/surok/surok/logger.py
/opt/surok/surok/logger.pyc
/opt/surok/surok/logger.pyo
/opt/surok/surok/store.py
/opt/surok/surok/store.pyc
/opt/surok/surok/store.pyo
/usr/share/surok/conf/surok_07.json
/usr/share/surok/conf/surok_08.json
/usr/share/surok/conf/surok_check.json
/usr/share/surok/conf.d/self_check.json
/usr/share/surok/conf.d/marathon_check.json
/usr/share/surok/conf.d_2/marathon_check.json
/usr/share/surok/templates/self_check.jj2
/usr/share/surok/templates/marathon_check.jj2
/opt/surok/requriments.txt
%defattr(-,root,root,-)
%doc
%changelog
* Tue Feb 7 2017 Denis Zheleztsov <[email protected]>
- New major release
- Discovery over marathon api
* Mon Nov 14 2016 Denis Zheleztsov <[email protected]> -
- Initial build.