public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <filiperosset@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/gerrymander] rawhide: spec cleanup, stop using deprecated py3_build/py3_install macros rhbz#2377268
Date: Thu, 25 Jun 2026 00:29:33 GMT	[thread overview]
Message-ID: <178234737357.1.8704673507774664289.rpms-gerrymander-dc78bd9ae3f2@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/gerrymander
            Branch : rawhide
            Commit : dc78bd9ae3f2189ee5002c417cb4fb67ac40e364
            Author : Filipe Rosset <filiperosset@fedoraproject.org>
            Date   : 2026-06-15T20:04:46-03:00
            Stats  : +12/-9 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/gerrymander/c/dc78bd9ae3f2189ee5002c417cb4fb67ac40e364?branch=rawhide

            Log:
            spec cleanup, stop using deprecated py3_build/py3_install macros rhbz#2377268

Signed-off-by: Filipe Rosset <filiperosset@fedoraproject.org>

---
diff --git a/gerrymander.spec b/gerrymander.spec
index 90c278b..4836254 100644
--- a/gerrymander.spec
+++ b/gerrymander.spec
@@ -1,7 +1,7 @@
 Summary:       The gerrit client tools
 Name:          gerrymander
 Version:       1.5
-Release:       40%{?dist}
+Release:       41%{?dist}
 Source0:       https://pypi.python.org/packages/source/g/%{name}/%{name}-%{version}.tar.gz
 URL:           https://pypi.python.org/pypi/gerrymander
 License:       Apache-2.0
@@ -10,13 +10,11 @@ BuildArch:     noarch
 
 BuildRequires: python3-pytest
 BuildRequires: python3-devel
-BuildRequires: python3-setuptools
 Requires:      python3-gerrymander
 
 %package -n python3-gerrymander
 Summary: The gerrit python3 client
 License: GPL-2.0-or-later
-%{?python_provide:%python_provide python3-gerrymander}
 
 
 %description
@@ -33,27 +31,32 @@ find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
 
 # Remove any egg info (as of submitting this review, there's no bundled
 # egg info)
-rm -rf *.egg-info
+
+%generate_buildrequires
+%pyproject_buildrequires
 
 %build
-%py3_build
+%pyproject_wheel
 
 %install
-%py3_install
+%pyproject_install
+%pyproject_save_files gerrymander
 
 %check
+%pyproject_check_import
 %pytest
 
 %files
 %doc conf/gerrymander.conf-example
 %{_bindir}/gerrymander
 
-%files -n python3-gerrymander
+%files -n python3-gerrymander -f %{pyproject_files}
 %doc README LICENSE
-%{python3_sitelib}/gerrymander/
-%{python3_sitelib}/%{name}-%{version}-py3.*.egg-info
 
 %changelog
+* Mon Jun 15 2026 Filipe Rosset <filiperosset@fedoraproject.org> - 1.5-41
+- spec cleanup, stop using deprecated py3_build/py3_install macros rhbz#2377268
+
 * Wed Jun 03 2026 Python Maint <python-maint@redhat.com> - 1.5-40
 - Rebuilt for Python 3.15
 

                 reply	other threads:[~2026-06-25  0:29 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=178234737357.1.8704673507774664289.rpms-gerrymander-dc78bd9ae3f2@fedoraproject.org \
    --to=filiperosset@fedoraproject.org \
    --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