From c3e408c84b9e62e11d6c31153ad39b28ba35d41f Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Sun, 3 Oct 2021 14:58:53 +0200 Subject: [PATCH] Avoid hardcoding usr prefix Pass %{_prefix} as prefix to cmake rather than hardcoding %{_usr} as prefix. This fixes flatpak module builds where the prefix is /app, not /usr. --- imath.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imath.spec b/imath.spec index a361360..5faf6ab 100644 --- a/imath.spec +++ b/imath.spec @@ -57,7 +57,7 @@ Requires: python3-devel %build -%cmake -DPYTHON=ON -DCMAKE_INSTALL_PREFIX=%{_usr} +%cmake -DPYTHON=ON -DCMAKE_INSTALL_PREFIX=%{_prefix} %cmake_build # Generate man docs