public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/pacemaker] f44: Drop redundant BuildRequires for python3-wheel
Date: Thu, 08 Oct 2026 16:28:08 GMT	[thread overview]
Message-ID: <179147688858.1.5358800179547890551.rpms-pacemaker-178f656bfa3b@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/pacemaker
            Branch : f44
            Commit : 178f656bfa3b594479d83257cd406c97c961f961
            Author : Miro Hrončok <miro@hroncok.cz>
            Date   : 2026-10-06T14:56:20+02:00
            Stats  : +8/-9 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/pacemaker/c/178f656bfa3b594479d83257cd406c97c961f961?branch=f44

            Log:
            Drop redundant BuildRequires for python3-wheel

...and simplify %pyproject macros usage.

Use -d (--directory) instead of pushd where needed.
Drop pushd entirely for install and save_files, as they do not operate in PWD.

List the pacemaker module instead of * (which is explicitly forbidden).

Also, add a link to https://bugzilla.redhat.com/2543102
which I just opened to track a better solution.

Note that the conditional wheel BR can be dropped entirely
if you do not care about older RHELs,
as all supported Fedoras have setuptools > 71.

---
diff --git a/pacemaker.spec b/pacemaker.spec
index ae21721..1e2d2d7 100644
--- a/pacemaker.spec
+++ b/pacemaker.spec
@@ -41,7 +41,7 @@
 ## can be incremented to build packages reliably considered "newer"
 ## than previously built packages with the same pcmkversion)
 %global pcmkversion 3.0.3
-%global baserelease 1
+%global baserelease 2
 
 ## Upstream commit (full commit ID, abbreviated commit ID, or tag) to build
 %global commit 7052efa194a519292349a0634fd08e1b653d0ab6
@@ -206,10 +206,10 @@ BuildRequires: %{python_name}-devel
 # as setup.py isn't yet built from setup.py.in when
 # pyproject_buildrequires is run use it with -N option
 # and require the tools manually for now
-BuildRequires: %{python_name}-wheel
+# pyproject-rpm-macros RFE: https://bugzilla.redhat.com/2543102
 BuildRequires: %{python_name}-pip
 BuildRequires: %{python_name}-setuptools
-BuildRequires: pyproject-rpm-macros
+BuildRequires: (%{python_name}-wheel if %{python_name}-setuptools < 71)
 
 # Pacemaker requires a minimum libqb functionality
 Requires:      libqb >= 1.0.1
@@ -482,9 +482,7 @@ export LDFLAGS_HARDENED_LIB="%{?_hardening_ldflags}"
 
 make %{_smp_mflags} V=1
 
-pushd python
-%pyproject_wheel
-popd
+%pyproject_wheel -d python
 
 %check
 make %{_smp_mflags} check
@@ -503,11 +501,9 @@ make install \
   DESTDIR=%{buildroot} V=1 docdir=%{pcmk_docdir} \
   %{?_python_bytecompile_extra:%{?py_byte_compile:am__py_compile=true}}
 
-pushd python
 %pyproject_install
 # take care of the license-files manually for now
-%pyproject_save_files -L "*"
-popd
+%pyproject_save_files -L pacemaker
 
 mkdir -p %{buildroot}%{_datadir}/pacemaker/nagios/plugins-metadata
 for file in $(find %{nagios_name}-%{nagios_hash}/metadata -type f); do
@@ -774,6 +770,9 @@ fi
 %{_datadir}/pkgconfig/pacemaker-schemas.pc
 
 %changelog
+* Tue Sep 29 2026 Miro Hrončok <miro@hroncok.cz> - 3.0.3-2
+- Drop redundant BuildRequires for python3-wheel
+
 * Tue Sep 08 2026 Klaus Wenninger <kwenning@redhat.com> - 3.0.3-1
 - Update for new upstream release tarball: Pacemaker-3.0.3,
   for full details, see included ChangeLog.md file or

                 reply	other threads:[~2026-10-08 16:28 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=179147688858.1.5358800179547890551.rpms-pacemaker-178f656bfa3b@fedoraproject.org \
    --to=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