public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Than Ngo <than@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ServiceReport] rawhide: Fix rhbz#2378453, migration to new python marcos
Date: Mon, 10 Aug 2026 08:20:21 GMT	[thread overview]
Message-ID: <178635002188.1.16330085886574598435.rpms-ServiceReport-ffdf87b5aba5@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-08-10  8:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178635002188.1.16330085886574598435.rpms-ServiceReport-ffdf87b5aba5@fedoraproject.org \
    --to=than@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox