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.
This commit is contained in:
Kalev Lember 2021-10-03 14:58:53 +02:00
parent 07cc18588f
commit c3e408c84b
1 changed files with 1 additions and 1 deletions

View File

@ -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