Update Python 2 dependency declarations to new packaging standards

This commit is contained in:
Iryna Shcherbina 2018-02-14 17:29:11 +01:00
parent b084d33b22
commit a34d4d73a5

View File

@ -2,7 +2,7 @@
Name: pywbem
Version: 0.11.0
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Python2 WBEM Client and Provider Interface
Group: Development/Libraries
License: LGPLv2
@ -11,10 +11,10 @@ Source0: https://github.com/pywbem/pywbem/archive/v%{version}.tar.gz
%if 0%{?fedora} >= 26
BuildRequires: python2-pip
%else
BuildRequires: python-pip
BuildRequires: python2-pip
%endif
BuildRequires: PyYAML python2-ply python2-rpm-macros
BuildRequires: python2-pyyaml python2-ply python2-rpm-macros
BuildRequires: python3-pip python3-PyYAML python3-ply python3-rpm-macros
BuildArch: noarch
@ -36,7 +36,7 @@ easiest way to write providers on the planet.
%package -n python2-pywbem
Summary: %summary
Requires: m2crypto PyYAML python2-six python2-ply
Requires: m2crypto python2-pyyaml python2-six python2-ply
%{?python_provide:%python_provide python2-pywbem}
# Remove before F30
Provides: pywbem%{?_isa} = %{version}-%{release}
@ -60,8 +60,7 @@ for more information about WBEM.
%package twisted
Group: Development/Libraries
Summary: WBEM client bindings for Twisted Python
Requires: python-twisted-core
Requires: python-twisted-web
Requires: python2-twisted
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
@ -110,6 +109,10 @@ popd
%{python_sitelib}/pywbem/twisted_client.py*
%changelog
* Wed Feb 14 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.11.0-6
- Update Python 2 dependency declarations to new packaging standards
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild