f3c13f3
%global srcname hpilo
aekoroglu 4ee3961
%global desc %{expand: \
aekoroglu 4ee3961
HP iLO XML interface access from Python (Python 3)
aekoroglu 4ee3961
This module will make it easy for you to access the Integrated Lights Out
aekoroglu 4ee3961
management interface of your HP hardware. It supports RILOE II, iLO, iLO 2, iLO
aekoroglu 4ee3961
3 and iLO 4. It uses the XML interface or hponcfg to access and change the iLO.}
f3c13f3
f3c13f3
Name:           python-%{srcname}
aekoroglu 4ee3961
Version:        4.4.3
ca8695b
Release:        2%{?dist}
aekoroglu 4ee3961
Summary:        Accessing the HP iLO XML interface from python
f3c13f3
f3c13f3
License:        ASL 2.0 or GPLv3+
f3c13f3
URL:            https://github.com/seveas/python-hpilo
aekoroglu 4ee3961
Source:         %{url}/archive/%{version}/%{name}-%{version}.tar.gz
f3c13f3
f3c13f3
BuildArch:      noarch
f3c13f3
aekoroglu 4ee3961
BuildRequires:  python3-case
aekoroglu 4ee3961
BuildRequires:  python3-devel
aekoroglu 4ee3961
BuildRequires:  python3-pytest
aekoroglu 4ee3961
BuildRequires:  python3-sphinx
aekoroglu 4ee3961
BuildRequires:  python3-sphinx_rtd_theme
f3c13f3
aekoroglu 4ee3961
%description 
aekoroglu 4ee3961
%{_desc}
f3c13f3
f3c13f3
%package     -n python3-%{srcname}
f3c13f3
Summary:        %{summary}
f3c13f3
aekoroglu 4ee3961
%description -n python3-%{srcname} %{desc}
aekoroglu 4ee3961
%{desc}
f3c13f3
f3c13f3
%package        doc
f3c13f3
Summary:        Documentation for %{name}
f3c13f3
f3c13f3
%description    doc
f3c13f3
%{summary}.
f3c13f3
f3c13f3
%prep
f3c13f3
%autosetup
f3c13f3
aekoroglu 4ee3961
%generate_buildrequires
aekoroglu 4ee3961
%pyproject_buildrequires
aekoroglu 4ee3961
f3c13f3
%build
aekoroglu 4ee3961
%pyproject_wheel
aekoroglu 4ee3961
f3c13f3
sphinx-build -b html docs html
f3c13f3
# remove the sphinx-build leftovers
f3c13f3
rm -rf html/.{doctrees,buildinfo}
aekoroglu 4ee3961
# remove version-control-internal-file
aekoroglu 4ee3961
rm examples/elasticsearch/.gitignore
f3c13f3
f3c13f3
%install
aekoroglu 4ee3961
%pyproject_install
aekoroglu 4ee3961
%pyproject_save_files hpilo hpilo_fw
f3c13f3
aekoroglu 4ee3961
%check
aekoroglu 4ee3961
# https://github.com/seveas/python-hpilo/issues/272
aekoroglu 4ee3961
# pytest -v
aekoroglu 4ee3961
aekoroglu 4ee3961
%files -n python3-%{srcname} -f %{pyproject_files}
f3c13f3
%doc README.md CHANGES examples ilo.conf.example
f3c13f3
%{_bindir}/hpilo_cli
f3c13f3
f3c13f3
%files doc
f3c13f3
%license COPYING
f3c13f3
%doc html
f3c13f3
f3c13f3
%changelog
ca8695b
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.3-2
ca8695b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
ca8695b
aekoroglu 4ee3961
* Tue Sep 06 2022 Ali Erdinc Koroglu <aekoroglu@fedoraproject.org> - 4.4.3-1
aekoroglu 4ee3961
- Update to 4.4.3 (RHBZ #1885695)
aekoroglu 4ee3961
5cc11cc
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.3-13
5cc11cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
5cc11cc
6f6c1c8
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 4.3-12
6f6c1c8
- Rebuilt for Python 3.11
6f6c1c8
571d3ec
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.3-11
571d3ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
571d3ec
5bab5a1
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.3-10
5bab5a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
5bab5a1
ca4d8c2
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 4.3-9
ca4d8c2
- Rebuilt for Python 3.10
ca4d8c2
39369bf
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.3-8
39369bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
39369bf
0ac4451
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.3-7
0ac4451
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0ac4451
0a16ed5
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 4.3-6
0a16ed5
- Rebuilt for Python 3.9
0a16ed5
b636919
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.3-5
b636919
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b636919
a0a14ae
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 4.3-4
a0a14ae
- Rebuilt for Python 3.8.0rc1 (#1748018)
a0a14ae
1791d9f
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 4.3-3
1791d9f
- Rebuilt for Python 3.8
1791d9f
512d30e
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.3-2
512d30e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
512d30e
f3c13f3
* Sun Jul 14 12:36:09 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.3-1
f3c13f3
- Initial package