File python-hpilo.spec of Package python-hpilo
#
# spec file for package python-mutagen
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%define skip_python36 1
Name: python-hpilo
Summary: HP iLO automation from python or shell
License: Apache-2.0 or GPL-3.0+
Version: 4.4.3
Release: 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_module Sphinx}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module requests}
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(preun): update-alternatives
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%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.
%prep
%setup -q
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/hpilo_cli
%python_expand %fdupes %{buildroot}%{$python_sitelib}/*
%post
%python_install_alternative hpilo_cli
%preun
%python_uninstall_alternative hpilo_cli
%files %{python_files}
%license COPYING
%doc CHANGES README.md
%python_alternative %{_bindir}/hpilo_cli
%{python_sitelib}/*
%changelog