public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/oneapi-level-zero] epel10: Use %{_vpath_builddir} macro instead of hardcoded build directory
@ 2026-10-16 21:02 Autumn Nash
  0 siblings, 0 replies; only message in thread
From: Autumn Nash @ 2026-10-16 21:02 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/oneapi-level-zero
            Branch : epel10
            Commit : 30211c3be4ea4ffceb9b6820e5939abeda1ac2e7
            Author : Autumn Nash <autumnnash@microsoft.com>
            Date   : 2026-05-11T17:49:32+00:00
            Stats  : +1/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/oneapi-level-zero/c/30211c3be4ea4ffceb9b6820e5939abeda1ac2e7?branch=epel10

            Log:
            Use %{_vpath_builddir} macro instead of hardcoded build directory

Replace hardcoded 'redhat-linux-build' with the %{_vpath_builddir} RPM
macro when installing the zello_world binary. This makes the spec
portable across build environments where the vpath build directory name
differs (e.g. Azure Linux, other rebuilders).

Signed-off-by: Autumn Nash <autumncapasso@gmail.com>

---
diff --git a/oneapi-level-zero.spec b/oneapi-level-zero.spec
index e9a3b01..fe378f1 100644
--- a/oneapi-level-zero.spec
+++ b/oneapi-level-zero.spec
@@ -60,7 +60,7 @@ export CXXFLAGS="%{build_cxxflags} -DFMT_HEADER_ONLY=1"
 %cmake_install
 # Install also the zello_world binary to ease up testing of the l0
 mkdir -p %{buildroot}%{_bindir}/
-install -p -m 755 ./redhat-linux-build/bin/zello_world %{buildroot}%{_bindir}/zello_world
+install -p -m 755 ./%{_vpath_builddir}/bin/zello_world %{buildroot}%{_bindir}/zello_world
 chrpath --delete %{buildroot}%{_bindir}/zello_world
 
 # Generate and install man pages.

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

only message in thread, other threads:[~2026-10-16 21:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-16 21:02 [rpms/oneapi-level-zero] epel10: Use %{_vpath_builddir} macro instead of hardcoded build directory Autumn Nash

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