From d940b72b39224e5d7ecf575b61286e9131770684 Mon Sep 17 00:00:00 2001 From: Shreshtha Joshi Date: Fri, 18 Jan 2019 16:22:36 +0530 Subject: [PATCH] rhel8-ism --- python-pyghmi.spec | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/python-pyghmi.spec b/python-pyghmi.spec index 9227ce3..f3c9065 100644 --- a/python-pyghmi.spec +++ b/python-pyghmi.spec @@ -2,8 +2,8 @@ Name: python-%{sname} Version: 1.0.22 -Release: 1%{?dist} -Provides: python2-pyghmi = %{version}-%{release} +Release: 2%{?dist} +Provides: python3-pyghmi = %{version}-%{release} Summary: Python General Hardware Management Initiative (IPMI and others) License: ASL 2.0 @@ -11,18 +11,20 @@ URL: https://github.com/stackforge/pyghmi Source0: http://tarballs.openstack.org/%{sname}/%{sname}-%{version}.tar.gz BuildArch: noarch -BuildRequires: python2-devel -BuildRequires: python-setuptools -BuildRequires: python-pbr - -Requires: python-crypto >= 2.6 %global _description\ This is a pure python implementation of the IPMI protocol.\ - %description %_description -%description -n python-%{sname} %_description +%package -n python3-%{sname} +Summary: Python General Hardware Management Initiative (IPMI and others) +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr + +Requires: python3-crypto >= 2.6 + +%description -n python3-%{sname} %_description %prep %setup -q -n %{sname}-%{version} @@ -36,23 +38,26 @@ rm -rf {test-,}requirements.txt %build -%{__python2} setup.py build +%{__python3} setup.py build %install -%{__python2} setup.py install --skip-build --root %{buildroot} +%{__python3} setup.py install --skip-build --root %{buildroot} -%files -n python-%{sname} +%files -n python3-%{sname} %doc README LICENSE -%{python2_sitelib}/pyghmi -%{python2_sitelib}/*.egg-info +%{python3_sitelib}/pyghmi +%{python3_sitelib}/*.egg-info %{_bindir}/pyghmicons %{_bindir}/pyghmiutil %{_bindir}/virshbmc %changelog +* Fri Jan 18 2019 Shreshtha Joshi - 1.0.22-2 +- RHEL8-isms + * Thu Oct 5 2017 Haïkel Guémar - 1.0.22-1 - Upstream 1.0.22