fish.spec: use all available macros to find build location

Fixes the build on all active platforms.
This commit is contained in:
David Adam 2022-06-08 22:45:55 +08:00
parent 7e09c6e72c
commit 2def146c67

View File

@ -88,6 +88,10 @@ cp -a CONTRIBUTING.rst %{buildroot}%{_datadir}/doc/fish/
%if 0%{?__builddir:1} %if 0%{?__builddir:1}
cd %__builddir cd %__builddir
%endif %endif
# Fedora uses __cmake_builddir
%if 0%{?__cmake_builddir:1}
cd %__cmake_builddir
%endif
make fish_run_tests make fish_run_tests
%clean %clean