public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/pacemaker] f44: Drop redundant BuildRequires for python3-wheel
@ 2026-10-08 16:28
0 siblings, 0 replies; only message in thread
From: @ 2026-10-08 16:28 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-08 16:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-08 16:28 [rpms/pacemaker] f44: Drop redundant BuildRequires for python3-wheel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox