Fedora 25 does not have python2-pip, use python-pip instead.

Signed-off-by: Gris Ge <fge@redhat.com>
This commit is contained in:
Gris Ge 2017-10-19 23:36:47 +08:00
parent 746c98f30c
commit 5b744179d8

View File

@ -2,13 +2,19 @@
Name: pywbem
Version: 0.11.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Python2 WBEM Client and Provider Interface
Group: Development/Libraries
License: LGPLv2
URL: https://github.com/pywbem/pywbem
Source0: https://github.com/pywbem/pywbem/archive/v%{version}.tar.gz
BuildRequires: python2-pip PyYAML python2-ply python2-rpm-macros
%if 0%{?fedora} >= 26
BuildRequires: python2-pip
%else
BuildRequires: python-pip
%endif
BuildRequires: PyYAML python2-ply python2-rpm-macros
BuildRequires: python3-pip python3-PyYAML python3-ply python3-rpm-macros
BuildArch: noarch
@ -107,6 +113,9 @@ rm -rf %{buildroot}
%{python_sitelib}/pywbem/twisted_client.py*
%changelog
* Thu Oct 19 2017 Gris Ge <fge@redhat.com> - 0.11.0-3
- Fedora 25 does not have python2-pip, use python-pip instead.
* Thu Oct 19 2017 Gris Ge <fge@redhat.com> - 0.11.0-2
- Add missing runtime dependency python2-ply and python3-ply