File: python-pyghmi.spec.tmpl

package info (click to toggle)
python-pyghmi 1.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,376 kB
  • sloc: python: 21,736; sh: 35; makefile: 18
file content (44 lines) | stat: -rw-r--r-- 1,065 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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)