116836f
%global pypi_name python-ipmi
116836f
%global srcname ipmi
116836f
116836f
Name:           python-%{srcname}
d493245
Version:        0.4.2
f9969e1
Release:        2%{?dist}
116836f
Summary:        Pure python IPMI library
116836f
116836f
License:        LGPLv2+
116836f
URL:            https://github.com/kontron/python-ipmi
116836f
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
116836f
BuildArch:      noarch
116836f
116836f
%?python_enable_dependency_generator
116836f
116836f
BuildRequires: python3-devel
116836f
BuildRequires: python3dist(future)
116836f
BuildRequires: python3dist(markdown)
116836f
BuildRequires: python3dist(setuptools)
116836f
BuildRequires: python3dist(mock)
116836f
BuildRequires: python3dist(nose)
116836f
116836f
%description
116836f
Pure Python IPMI Library.
116836f
116836f
%package -n     python3-%{srcname}
116836f
Summary:        %{summary}
116836f
%{?python_provide:%python_provide python3-%{srcname}}
116836f
116836f
%description -n python3-%{srcname}
116836f
Pure Python IPMI Library.
116836f
116836f
%prep
116836f
%autosetup -n %{pypi_name}-%{version}
116836f
# Remove bundled egg-info
116836f
rm -rf %{pypi_name}.egg-info
116836f
116836f
find . -type f -name "*.py" -exec sed -i '/^#![  ]*\/usr\/bin\/env.*$/ d' {} ';'
116836f
116836f
%build
116836f
%py3_build
116836f
116836f
%install
116836f
%py3_install 
116836f
116836f
%check
116836f
export PYTHONPATH=$RPM_BUILD_ROOT/%{python3_sitelib}
116836f
nosetests-%{python3_version} -v tests
116836f
116836f
%files -n python3-%{srcname}
116836f
%doc README.rst
116836f
%{_bindir}/ipmitool.py
116836f
%{python3_sitelib}/pyipmi
116836f
%{python3_sitelib}/tests
116836f
%{python3_sitelib}/*-py?.?.egg-info
116836f
116836f
%changelog
f9969e1
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-2
f9969e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f9969e1
d493245
* Mon Dec 23 2019 Luis Bazan <lbazan@fedoraproject.org> - 0.4.2-1
d493245
- New upstream version
d493245
8294cd3
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.1-5
8294cd3
- Rebuilt for Python 3.8.0rc1 (#1748018)
8294cd3
e545228
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.1-4
e545228
- Rebuilt for Python 3.8
e545228
930f91a
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-3
930f91a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
930f91a
116836f
* Wed Mar 20 2019 Luis Bazan <lbazan@fedoraproject.org> - 0.4.1-2
116836f
- Fix comment #1 BZ #1676987
116836f
116836f
* Wed Feb 13 2019 Luis Bazan <lbazan@fedoraproject.org> - 0.4.1-1
116836f
- Initial package