File python-hpilo.spec of Package python-hpilo
#
# spec file for package python-hpilo
#
# Copyright (c) 2016, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-hpilo
Version: 4.3
Release: 0
Summary: HP iLO automation from python or shell
License: Apache-2.0 or GPL-3.0+
Group: Development/Languages/Python
Url: http://github.com/seveas/python-hpilo
Source: https://pypi.io/packages/source/p/python-hpilo/python-hpilo-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-Sphinx
BuildRequires: python-cloud_sptheme
BuildRequires: python-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
This module will make it easy for you to access the Integrated Lights Out
management interface of your HP hardware. It supports RILOE II, iLO, iLO 2,iLO 3
and iLO 4. It uses the XML interface or hponcfg to access and change the iLO.
%package doc
Summary: HP iLO automation from python or shell - Documentation
Group: Development/Languages/Python
Requires: python-hpilo
%description doc
This module will make it easy for you to access the Integrated Lights Out
management interface of your HP hardware. It supports RILOE II, iLO, iLO 2,iLO 3
and iLO 4. It uses the XML interface or hponcfg to access and change the iLO.
This subpackage contains documentation for python-hpilo.
%prep
%setup -q -n python-hpilo-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
cd docs
make html
mkdir -p %{buildroot}/%{_docdir}/python-hpilo
rm _build/html/.buildinfo
mv _build/html %{buildroot}/%{_docdir}/python-hpilo
%fdupes %{buildroot}/%{_docdir}
%files
%defattr(-,root,root,-)
%doc COPYING CHANGES README.md
%{_bindir}/hpilo_cli
%{python_sitelib}/hpilo*
%{python_sitelib}/python_hpilo-%{version}-py%{py_ver}.egg-info
%exclude %{_docdir}/python-hpilo/html
%files doc
%defattr(-,root,root,-)
%{_docdir}/python-hpilo/html
%changelog