public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <rosset.filipe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/cm_rgb] rawhide: Fix stop using deprecated %py3_build/%py3_install macros
Date: Wed, 05 Aug 2026 01:45:00 GMT	[thread overview]
Message-ID: <178589430057.1.12865621742692802860.rpms-cm_rgb-ecf0bedde396@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/cm_rgb
            Branch : rawhide
            Commit : ecf0bedde39692147ce3a0fb5497bbc1618e2f3c
            Author : Filipe Rosset <rosset.filipe@gmail.com>
            Date   : 2026-08-03T14:43:43-03:00
            Stats  : +10/-8 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/cm_rgb/c/ecf0bedde39692147ce3a0fb5497bbc1618e2f3c?branch=rawhide

            Log:
            Fix stop using deprecated %py3_build/%py3_install macros

Resolves: rhbz#2377225

---
diff --git a/cm_rgb.spec b/cm_rgb.spec
index 920b671..2c79eed 100644
--- a/cm_rgb.spec
+++ b/cm_rgb.spec
@@ -13,7 +13,6 @@ Source0:        %{pypi_source}
 BuildArch:      noarch
 
 BuildRequires:  python%{python3_pkgversion}-devel
-BuildRequires:  python%{python3_pkgversion}-setuptools
 BuildRequires:  python%{python3_pkgversion}-pip
 BuildRequires:  python%{python3_pkgversion}-gobject
 BuildRequires:  python%{python3_pkgversion}-psutil
@@ -28,20 +27,23 @@ Utility to control RGB on AMD Wraith Prism
 %autosetup -n %{srcname}-%{version}
 chmod 644 LICENSE README.md
 
+%generate_buildrequires
+%pyproject_buildrequires
+
 %build
-%py3_build
+%pyproject_wheel
 
 
 %install
-%py3_install
-chmod -x %{buildroot}%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/dependency_links.txt
+%pyproject_install
+%pyproject_save_files -l %{srcname}
+
+%check
+%pyproject_check_import
 
-%files
-%license LICENSE
+%files -f %{pyproject_files}
 %doc README.md
 # For noarch packages: sitelib
-%{python3_sitelib}/%{srcname}/
-%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/
 %{_bindir}/*
 
 %changelog

                 reply	other threads:[~2026-08-05  1:45 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=178589430057.1.12865621742692802860.rpms-cm_rgb-ecf0bedde396@fedoraproject.org \
    --to=rosset.filipe@gmail.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