public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gerrymander] rawhide: spec cleanup, stop using deprecated py3_build/py3_install macros rhbz#2377268
@ 2026-06-25  0:29 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-06-25  0:29 UTC (permalink / raw)
  To: git-commits

            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
 

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

only message in thread, other threads:[~2026-06-25  0:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-25  0:29 [rpms/gerrymander] rawhide: spec cleanup, stop using deprecated py3_build/py3_install macros rhbz#2377268 Filipe Rosset

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