public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/git-review] f43: Update to 2.5.0
@ 2026-06-19 21:53 Stephen Finucane
  0 siblings, 0 replies; only message in thread
From: Stephen Finucane @ 2026-06-19 21:53 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/git-review
            Branch : f43
            Commit : 8e7497e0f346ad6c738717a65b20a72ac91d60a5
            Author : Stephen Finucane <stephenfin@redhat.com>
            Date   : 2026-06-18T15:57:04+01:00
            Stats  : +17/-23 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/git-review/c/8e7497e0f346ad6c738717a65b20a72ac91d60a5?branch=f43

            Log:
            Update to 2.5.0

- Migrate to pyproject-rpm-macros; Fixes rhbz#2377272

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>

---
diff --git a/.gitignore b/.gitignore
index f0e2fbb..ed315e2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,4 @@
 /git-review-1.28.0.tar.gz
 /git-review-2.2.0.tar.gz
 /git-review-2.3.1.tar.gz
+/git_review-2.5.0.tar.gz

diff --git a/git-review.spec b/git-review.spec
index 204e634..7152c6f 100644
--- a/git-review.spec
+++ b/git-review.spec
@@ -1,28 +1,24 @@
 Name:		git-review
-Version:	2.3.1
+Version:	2.5.0
 Release:	%autorelease
 Summary:	A Git helper for integration with Gerrit
 
-# Automatically converted from old format: ASL 2.0 - review is highly recommended.
 License:	Apache-2.0
 URL:		https://opendev.org/opendev/git-review
 # Created by:
 #   $ git clone https://opendev.org/opendev/git-review.git
 #   $ cd git-review
-#   $ git checkout 2.3.1
-#   $ python setup.py sdist
-#   $ cp dist/git-review-2.3.1.tar.gz ..
-Source0:	git-review-%{version}.tar.gz
+#   $ git checkout 2.5.0
+#   $ python -m build --sdist .
+#   $ cp dist/git_review-2.5.0.tar.gz ..
+Source0:	git_review-%{version}.tar.gz
 
 BuildArch:	noarch
 
 BuildRequires:	python3-devel
-BuildRequires:	python3-pbr
-BuildRequires:	python3-setuptools
+BuildRequires:	pyproject-rpm-macros
 
 Requires:	git-core
-Requires:	python3-requests
-Requires:	python3-setuptools
 Requires:	python3-pkg-resources
 
 %description
@@ -31,29 +27,26 @@ review requests in the patch management system Gerrit. It replaces the
 rfc.sh script.
 
 %prep
-%setup -q
+%autosetup -n git_review-%{version}
+sed -i 's/\r//' LICENSE
+
+%generate_buildrequires
+%pyproject_buildrequires
 
 %build
-%py3_build
-sed -i 's/\r//' LICENSE
+%pyproject_wheel
 
 %install
-%py3_install
-mkdir -p %{buildroot}%{_sysconfdir}/%{name}/
-
-# We do not save ".gitreview" as dot.gitreview because the man page has it too.
-# cp .gitreview #{buildroot}/usr/share/doc/dot.gitreview
+%pyproject_install
+%pyproject_save_files git_review
 
 install -p -m 0644 -D git-review.1 %{buildroot}%{_mandir}/man1/git-review.1
 
-%files
+%files -f %{pyproject_files}
 %license LICENSE
 %doc AUTHORS README.rst
 %{_bindir}/git-review
 %{_mandir}/man1/git-review.1.gz
-# Our package name is git-review, but setup.py installs with underscore.
-%{python3_sitelib}/git_review/
-%{python3_sitelib}/git_review-%{version}-py%{python3_version}*.egg-info/
 
 %changelog
 %autochangelog

diff --git a/sources b/sources
index 6d86553..10a95dd 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (git-review-2.3.1.tar.gz) = 0679131767f891e149c2a6e1b849780a5c282b4d648529b2d936b23fcc27a982f06fbf250cd5048d37afd728a43acf69735521aeea54636100a28b12f0dfa94a
+SHA512 (git_review-2.5.0.tar.gz) = 31678d356e094ef92f40ca3ca571010fef22b4589f1cd90acfe11afdabb92caa40b69eb5961582f1b2ac7d27172ad5d2e47839eba37edce78bf4f0ac0d5bb572

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

only message in thread, other threads:[~2026-06-19 21:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-19 21:53 [rpms/git-review] f43: Update to 2.5.0 Stephen Finucane

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