Skip to content

Commit

Permalink
Release 2.1.1-2 rpm spec
Browse files Browse the repository at this point in the history
  • Loading branch information
paalbra committed Nov 20, 2019
1 parent 4b9fcec commit 304722c
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions rpm/zabbix-cli.spec
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
%if 0%{?rhel} && 0%{?rhel} == 6
%{!?__python2: %global __python2 /usr/bin/python2}
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
%{!?pybasever: %global pybasever %(%{__python2} -c "import sys;print(sys.version[0:3])")}

Name: zabbix-cli
Version: 2.1.1
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Command-line interface for Zabbix

Group: System Environment/Base
Expand All @@ -17,13 +12,20 @@ Source0: https://github.com/unioslo/zabbix-cli/archive/%{version}.tar.gz

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%if 0%{?rhel} && 0%{?rhel} <= 6
Requires: python-argparse
%endif
Requires: python2 >= 2.7
%if 0%{?rhel} && 0%{?rhel} == 7
Requires: python-ipaddress
Requires: python-requests
%else
Requires: python2-ipaddress
Requires: python2-requests
%endif

%if 0%{?rhel} && 0%{?rhel} == 7
BuildRequires: python-setuptools
%else
Requires: python2-setuptools
%endif
BuildRequires: python2-devel

BuildArch: noarch
Expand Down Expand Up @@ -55,6 +57,9 @@ mkdir -p %{buildroot}%{_defaultdocdir}/zabbix-cli-%{version}
%doc LICENSE docs/manual.rst

%changelog
* Mon Nov 11 2019 Paal Braathen <paal.braathen@usit.uio.no> - 2.1.1-2
- New release 2.1.1-2. Require python >= 2.7. Abandon RHEL6 and support RHEL8.

* Thu May 09 2019 Paal Braathen <paal.braathen@usit.uio.no> - 2.1.1-1
- New version 2.1.1

Expand Down

0 comments on commit 304722c

Please sign in to comment.