public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/libgpiod] rawhide: Use dynamic buildrequires
Date: Mon, 16 Nov 2026 12:41:01 GMT [thread overview]
Message-ID: <179483286161.1.147231368928211628.rpms-libgpiod-95b4bdbcee2c@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/libgpiod
Branch : rawhide
Commit : 95b4bdbcee2c3d16f040ca474d01c0bf6aa5f386
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2026-11-15T21:42:42-05:00
Stats : +6/-10 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/libgpiod/c/95b4bdbcee2c3d16f040ca474d01c0bf6aa5f386?branch=rawhide
Log:
Use dynamic buildrequires
The pyproject macros are not supported without %pyproject_buildrequires,
and the pyproject-rpm-macros dependency is not resolved on RHEL without it.
Also, use the --directory flag to avoid the pushd/popd calls.
---
diff --git a/libgpiod.spec b/libgpiod.spec
index 3b7ccac..3ba9fec 100644
--- a/libgpiod.spec
+++ b/libgpiod.spec
@@ -23,9 +23,6 @@ BuildRequires: libgudev-devel
BuildRequires: libstdc++-devel
BuildRequires: pkgconf
BuildRequires: python3-devel
-BuildRequires: python3-packaging
-BuildRequires: python3-pip
-BuildRequires: python3-setuptools
BuildRequires: systemd
%description
@@ -85,6 +82,9 @@ Files for development with %{name}.
%prep
%autosetup -p1
+%generate_buildrequires
+%pyproject_buildrequires -d bindings/python
+
%build
%meson -Dtools=enabled \
-Dbindings-cxx=enabled \
@@ -96,19 +96,15 @@ Files for development with %{name}.
%{nil}
%meson_build
-pushd bindings/python/
-export CPPFLAGS="-I$(realpath ../../include)"
-export LIBRARY_PATH="$(realpath ../../%{_vpath_builddir}/lib)"
-%pyproject_wheel
-popd
+export CPPFLAGS="-I$(realpath include)"
+export LIBRARY_PATH="$(realpath %{_vpath_builddir}/lib)"
+%pyproject_wheel -d bindings/python
%install
%meson_install
-pushd bindings/python/
%pyproject_install
%pyproject_save_files gpiod
-popd
# Install sysusers file
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/gpiod.conf
reply other threads:[~2026-11-16 12:41 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=179483286161.1.147231368928211628.rpms-libgpiod-95b4bdbcee2c@fedoraproject.org \
--to=yselkowi@redhat.com \
--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