2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-14 03:37:47 +00:00

Merge "Add a spec template for rpm build"

This commit is contained in:
Zuul 2019-10-03 18:55:16 +00:00 committed by Gerrit Code Review
commit ea14a22b39

44
python-pyghmi.spec.tmpl Normal file
View File

@ -0,0 +1,44 @@
Summary: Python General Hardware Management Initiative (IPMI and others)
%if "%{rhel}" == "8"
%global sname python2-pyghmi
Requires: python2-cryptography
%else
%global sname python-pyghmi
Requires: python-cryptography
%endif
Name: %sname
version: #VERSION#
Release: %{?release:%{release}}%{!?release:1}
Source0: pyghmi-%{version}.tar.gz
License: Apache License, version 2.0
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Prefix: %{_prefix}
BuildArch: noarch
Vendor: Jarrod Johnson <jjohnson2@lenovo.com>
Url: https://git.openstack.org/cgit/openstack/pyghmi
%description
This is a pure python implementation of IPMI protocol.
pyghmicons and pyghmiutil are example scripts to show how one may incorporate
this library into python code
%prep
%setup -n pyghmi-%{version}
%build
python setup.py build
%install
python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES --prefix=/usr
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root)