public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Frank Crawford <frank@crawford.emu.id.au>
To: git-commits@fedoraproject.org
Subject: [rpms/rdiff-backup] rawhide: Migrate spec file to pyproject macros - BZ2378431
Date: Mon, 17 Aug 2026 07:18:28 GMT	[thread overview]
Message-ID: <178695110869.1.7948899123450820584.rpms-rdiff-backup-4f0c43030e23@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rdiff-backup
Branch : rawhide
Commit : 4f0c43030e233918a14865daeef83c8c57c1cf35
Author : Frank Crawford <frank@crawford.emu.id.au>
Date   : 2026-08-17T17:18:12+10:00
Stats  : +27/-4 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/rdiff-backup/c/4f0c43030e233918a14865daeef83c8c57c1cf35?branch=rawhide

Log:
Migrate spec file to pyproject macros - BZ2378431

---
diff --git a/rdiff-backup.spec b/rdiff-backup.spec
index 2b157ff..cbbd9ad 100644
--- a/rdiff-backup.spec
+++ b/rdiff-backup.spec
@@ -3,15 +3,17 @@
 Version: %{gittag}
 Summary: Convenient and transparent local/remote incremental mirror/backup
 Name: rdiff-backup
-Release: 16%{?dist}
+Release: 17%{?dist}
 
 URL: https://rdiff-backup.net/
 Source0: https://github.com/%{name}/%{name}/releases/download/v%{gittag}/%{name}-%{version}.tar.gz
 
 License: GPL-2.0-or-later
 BuildRequires: python3-devel >= 3.6, librsync-devel >= 1.0.0
+%if 0%{?rhel} && 0%{?rhel} <= 8
 BuildRequires: python3-setuptools
 BuildRequires: python3-setuptools_scm
+%endif
 BuildRequires: gcc
 
 #recommended runtime dependencies
@@ -34,24 +36,42 @@ differences from the previous backup will be transmitted.
 %prep
 %autosetup -n %{name}-%{version}
 
+%if ! 0%{?rhel} || 0%{?rhel} >= 9
+%generate_buildrequires
+%pyproject_buildrequires
+%endif
+
 %build
+%if 0%{?rhel} && 0%{?rhel} <= 8
 %py3_build
+%else
+%pyproject_wheel
+%endif
 
 %install
+%if 0%{?rhel} && 0%{?rhel} <= 8
 %py3_install
+%else
+%pyproject_install
+%pyproject_save_files rdiff_backup rdiffbackup
+%endif
 
 # Remove doc files so we package them with rpmbuild
 rm -rf $RPM_BUILD_ROOT/usr/share/doc/*
 
+%if 0%{?rhel} && 0%{?rhel} <= 8
 %files
+%{python3_sitearch}/rdiff_backup/
+%{python3_sitearch}/rdiff_backup-*.egg-info
+%{python3_sitearch}/rdiffbackup/
+%else
+%files -f %{pyproject_files}
+%endif
 %defattr(-,root,root)
 %{_bindir}/rdiff-backup
 %{_bindir}/rdiff-backup-statistics
 %{_bindir}/rdiff-backup-delete
 %{_mandir}/man1/rdiff-backup*
-%{python3_sitearch}/rdiff_backup/
-%{python3_sitearch}/rdiff_backup-*.egg-info
-%{python3_sitearch}/rdiffbackup/
 %{_datadir}/bash-completion/completions/rdiff-backup
 %doc CHANGELOG.adoc README.adoc
 %doc docs/credits.adoc docs/DEVELOP.adoc docs/examples.adoc
@@ -59,6 +79,9 @@ rm -rf $RPM_BUILD_ROOT/usr/share/doc/*
 %license COPYING
 
 %changelog
+* Mon Aug 17 2026 Python Maint <frank@crawford.emu.id.au> - 2.2.6-17
+- Migrate spec file to pyproject macros - BZ2378431
+
 * Wed Jul 22 2026 Python Maint <python-maint@redhat.com> - 2.2.6-16
 - Rebuilt for Python 3.15.0b4 ABI change
 

                 reply	other threads:[~2026-08-17  7:18 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=178695110869.1.7948899123450820584.rpms-rdiff-backup-4f0c43030e23@fedoraproject.org \
    --to=frank@crawford.emu.id.au \
    --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