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:
parent
07cc18588f
commit
c3e408c84b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user