-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpython-zabbix-api.spec
54 lines (35 loc) · 1.08 KB
/
python-zabbix-api.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
%global with_doc 0
%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())")}
%endif
Name: python-zabbix-api
Version: 0.1
Release: 1
Summary: Zabbix API
License: GNU LGPL 2.1
Vendor: Grid Dynamics International, Inc.
URL: http://www.griddynamics.com/openstack
Group: Development/Languages/Python
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel python-setuptools make
BuildArch: noarch
# for Python 2.6.6
Requires: python-argparse
Requires: start-stop-daemon
%description
%prep
%setup -q -n %{name}-%{version}
%build
%{__python} setup.py build
%install
%__rm -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --prefix=%{_prefix} --root=%{buildroot}
%clean
%__rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README*
%{_usr}/bin
%{python_sitelib}/*
%changelog