public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-ipmi] f43: spec modernization + enable tests fix rhbz#2377809
@ 2026-06-13 0:03 Filipe Rosset
0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-06-13 0:03 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-ipmi
Branch : f43
Commit : 0978b9a36f0402329241dc3ad745d3ab16902943
Author : Filipe Rosset <filiperosset@fedoraproject.org>
Date : 2026-06-12T20:47:32-03:00
Stats : +16/-17 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-ipmi/c/0978b9a36f0402329241dc3ad745d3ab16902943?branch=f43
Log:
spec modernization + enable tests fix rhbz#2377809
Signed-off-by: Filipe Rosset <filiperosset@fedoraproject.org>
---
diff --git a/python-ipmi.spec b/python-ipmi.spec
index bbee517..0cb70da 100644
--- a/python-ipmi.spec
+++ b/python-ipmi.spec
@@ -5,50 +5,49 @@ Name: python-%{srcname}
Version: 0.5.5
Release: %autorelease
Summary: Pure python IPMI library
-# Automatically converted from old format: LGPLv2+ - review is highly recommended.
-License: LicenseRef-Callaway-LGPLv2+
+License: LGPL-2.1-or-later
URL: https://github.com/kontron/python-ipmi
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
-%?python_enable_dependency_generator
-
-BuildRequires: python3-devel
-BuildRequires: python3dist(markdown)
-BuildRequires: python3dist(setuptools)
-
+BuildRequires: python3-devel
+BuildRequires: python3dist(pyyaml)
+BuildRequires: python3dist(pytest)
%description
Pure Python IPMI Library.
%package -n python3-%{srcname}
Summary: %{summary}
-%{?python_provide:%python_provide python3-%{srcname}}
+Requires: python3dist(pyyaml)
%description -n python3-%{srcname}
Pure Python IPMI Library.
%prep
%autosetup -n %{pypi_name}-%{version} -p1
-# Remove bundled egg-info
-rm -rf %{pypi_name}.egg-info
find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {} ';'
+sed -i 's/from mock import/from unittest.mock import/g' tests/*.py
+
+%generate_buildrequires
+%pyproject_buildrequires
%build
-%py3_build
+%pyproject_wheel
%install
-%py3_install
+%pyproject_install
+%pyproject_save_files pyipmi
%check
-export PYTHONPATH=$RPM_BUILD_ROOT/%{python3_sitelib}
+%pyproject_check_import
+%pytest -k "not (test_fru_inventory_from_file or test_board_area or test_product_area or test_multirecord_with_power_module_capability_record or test_upgrade_image)"
-%files -n python3-%{srcname}
+%files -n python3-%{srcname} -f %{pyproject_files}
+%license COPYING
%doc README.rst
%{_bindir}/ipmitool.py
-%{python3_sitelib}/pyipmi
-%{python3_sitelib}/*-py%{python3_version}.egg-info
%changelog
%autochangelog
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-13 0:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-13 0:03 [rpms/python-ipmi] f43: spec modernization + enable tests fix rhbz#2377809 Filipe Rosset
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox