File python-pyghmi.spec of Package python-pyghmi

# Created by pyp2rpm-3.2.3
%global pypi_name pyghmi

Name:           python-%{pypi_name}
Version:        1.0.42
Release:        1%{?dist}
Summary:        Python General Hardware Management Initiative (IPMI and others)

License:        Apache License, Version 2.0
URL:            http://github.com/openstack/pyghmi/
Source0:        https://pypi.io/packages/source/p/pyghmi/pyghmi-%{version}.tar.gz
BuildArch:      noarch
 
BuildRequires:  python2-devel
BuildRequires:  python2-setuptools
BuildRequires:  python2-pbr

%description
This is a pure python implementation of the IPMI protocol.

%package -n     python2-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}
 
Requires:       python-crypto >= 2.6
Requires:       python2-setuptools

%description -n python2-%{pypi_name}
This is a pure python implementation of the IPMI protocol.

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

# Remove the requirements file so that pbr hooks don't add it
# to distutils requires_dist config
rm -rf {test-,}requirements.txt

%build
%py2_build

%install
%py2_install

%files -n python2-%{pypi_name}
%{!?_licensedir:%global license %%doc}
%license LICENSE
%doc README.md
%{_bindir}/pyghmicons
%{_bindir}/pyghmiutil
%{_bindir}/virshbmc
%{python2_sitelib}/%{pypi_name}
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

%changelog
* Mon Mar 12 2018 Yunfei Shi <shiyf2@lenovo.com> - 1.0.42-1
- Update to 1.0.42.

* Sun Mar 11 2018 Yunfei Shi <shiyf2@lenovo.com> - 1.0.40-1
- Update to 1.0.40.

* Sat Jan 27 2018 Yunfei Shi <shiyf2@lenovo.com> - 1.0.34-1
- Update to 1.0.34.

* Tue Jan 16 2018 Yunfei Shi <shiyf2@lenovo.com> - 1.0.32-1
- Update to 1.0.32.

* Mon Dec 25 2017 Yunfei Shi <shiyf2@lenovo.com> - 1.0.30-1
- Initial package.
openSUSE Build Service is sponsored by