rhel8-ism
This commit is contained in:
parent
25a4fbd617
commit
d940b72b39
|
@ -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 <shrjoshi@redhat.com> - 1.0.22-2
|
||||
- RHEL8-isms
|
||||
|
||||
* Thu Oct 5 2017 Haïkel Guémar <hguemar@fedoraproject.org> - 1.0.22-1
|
||||
- Upstream 1.0.22
|
||||
|
||||
|
|
Loading…
Reference in New Issue