public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libgpiod] rawhide: Use dynamic buildrequires
@ 2026-11-16 12:41 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-11-16 12:41 UTC (permalink / raw)
  To: git-commits

            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

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

only message in thread, other threads:[~2026-11-16 12:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-16 12:41 [rpms/libgpiod] rawhide: Use dynamic buildrequires Yaakov Selkowitz

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