From 2def146c679b3ab8634c4c1ff618d7549a20c144 Mon Sep 17 00:00:00 2001 From: David Adam Date: Wed, 8 Jun 2022 22:45:55 +0800 Subject: [PATCH] fish.spec: use all available macros to find build location Fixes the build on all active platforms. --- fish.spec.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fish.spec.in b/fish.spec.in index 3c480cdc2..e4b9bbf29 100644 --- a/fish.spec.in +++ b/fish.spec.in @@ -88,6 +88,10 @@ cp -a CONTRIBUTING.rst %{buildroot}%{_datadir}/doc/fish/ %if 0%{?__builddir:1} cd %__builddir %endif +# Fedora uses __cmake_builddir +%if 0%{?__cmake_builddir:1} +cd %__cmake_builddir +%endif make fish_run_tests %clean