-
Notifications
You must be signed in to change notification settings - Fork 0
/
zabbixdash.spec
48 lines (33 loc) · 967 Bytes
/
zabbixdash.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
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%define module_name zabbixdash
%define _usr_share_dir /usr/share/zabbixdash
%define _var_lib_dir /var/lib/zabbixdash
Name: %{module_name}
Version: %(python setup.py --version)
Summary: description
Release: 1
License: ASLv2
URL: https://github.com/teriyakichild/zabbixdash
Source0: %{module_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python-setuptools
Requires: python-tornado
Requires: python-myui
%description
%prep
%setup -q -n %{module_name}-%{version}
%build
%{__python} setup.py build
%install
rm -rf %{buildroot}
%{__python} setup.py install --root=%{buildroot}
%clean
rm -rf %{buildroot}
%files
#%doc README
%{python_sitelib}/*
%{_usr_share_dir}/templates/*
%{_usr_share_dir}/static/*
%{_var_lib_dir}/data/*
/etc/myui.conf
%changelog