public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ServiceReport] rawhide: Fix rhbz#2378453, migration to new python marcos
@ 2026-08-10  8:20 Than Ngo
  0 siblings, 0 replies; only message in thread
From: Than Ngo @ 2026-08-10  8:20 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/ServiceReport
Branch : rawhide
Commit : ffdf87b5aba53930613142e381fcba2a2f4cbdfb
Author : Than Ngo <than@redhat.com>
Date   : 2026-08-10T10:20:11+02:00
Stats  : +29/-8 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/ServiceReport/c/ffdf87b5aba53930613142e381fcba2a2f4cbdfb?branch=rawhide

Log:
Fix rhbz#2378453, migration to new python marcos

---
diff --git a/ServiceReport-buildroot-install.patch b/ServiceReport-buildroot-install.patch
new file mode 100644
index 0000000..77259e8
--- /dev/null
+++ b/ServiceReport-buildroot-install.patch
@@ -0,0 +1,12 @@
+diff -up ServiceReport-2.2.4/setup.py.me ServiceReport-2.2.4/setup.py
+--- ServiceReport-2.2.4/setup.py.me	2026-06-17 20:48:00.267981316 +0200
++++ ServiceReport-2.2.4/setup.py	2026-06-17 20:49:53.660294028 +0200
+@@ -19,7 +19,7 @@ setup(packages=find_packages(),
+       data_files=[('share/man/man8', ['man/servicereport.8']),
+                   ('share/doc/ServiceReport', ['README.md']),
+                   ('share/licenses/ServiceReport', ['COPYING']),
+-                  ('/usr/lib/systemd/system',
++                  ('lib/systemd/system',
+                    ['service/servicereport.service'])],
+       classifiers=[
+           'Development Status :: 4 - Beta',

diff --git a/ServiceReport.spec b/ServiceReport.spec
index da53474..b740340 100644
--- a/ServiceReport.spec
+++ b/ServiceReport.spec
@@ -1,15 +1,16 @@
 Name: ServiceReport
 Version: 2.2.4
-Release: 12%{?dist}
+Release: 13%{?dist}
 Summary: A tool to validate and repair First Failure Data Capture (FFDC) configuration
 
 License: GPL-2.0-or-later
 URL: https://github.com/linux-ras/ServiceReport
 Source0: https://github.com/linux-ras/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
+Patch: ServiceReport-buildroot-install.patch
 
 BuildArch: noarch
 
-BuildRequires: python3-devel python3-setuptools
+BuildRequires: python3-devel
 BuildRequires: systemd-rpm-macros
 
 %description
@@ -18,13 +19,20 @@ First Failure Data Capture (FFDC) configuration and optionally repairs
 the incorrect configuration
 
 %prep
-%setup -q
+%autosetup -p1
+
+%generate_buildrequires
+%pyproject_buildrequires
 
 %build
-%py3_build
+%pyproject_wheel
 
 %install
-%py3_install
+%pyproject_install
+%pyproject_save_files -l servicereportpkg
+
+%check
+%pyproject_check_import
 
 %post
 %systemd_post servicereport.service
@@ -35,16 +43,17 @@ the incorrect configuration
 %postun
 %systemd_postun servicereport.service
 
-%files
+%files -f %{pyproject_files}
 %doc README.md
 %license COPYING
 %{_mandir}/man8/*
 %{_bindir}/servicereport
 %{_unitdir}/servicereport.service
-%{python3_sitelib}/servicereportpkg
-%{python3_sitelib}/ServiceReport*.egg-info
 
 %changelog
+* Mon Aug 10 2026 Than Ngo <than@redhat.com> - 2.2.4-13
+- Fix rhbz#2378453, migration to new python marcos
+
 * Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.4-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-10  8:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-10  8:20 [rpms/ServiceReport] rawhide: Fix rhbz#2378453, migration to new python marcos Than Ngo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox