From 93fb357aff45df736819be4cac2924e6b77cc09a48dc9995731611cb984ce05f Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 9 May 2024 08:35:47 +0000 Subject: [PATCH] Accepting request 1172780 from home:mathletic:branches:devel:tools:building Fix ninja:test to not install files. OBS-URL: https://build.opensuse.org/request/show/1172780 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/ninja?expand=0&rev=64 --- ninja.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ninja.spec b/ninja.spec index 27dca0b..293392c 100644 --- a/ninja.spec +++ b/ninja.spec @@ -65,11 +65,13 @@ export CXXFLAGS="$CFLAGS" %cmake_build %install +%if %{without test} %cmake_install install -D -p -m 0644 misc/zsh-completion %{buildroot}%{_datadir}/zsh/site-functions/_ninja install -D -p -m 0644 misc/ninja.vim %{buildroot}%{_datadir}/vim/site/syntax/ninja.vim install -D -p -m 0644 misc/bash-completion %{buildroot}%{_datadir}/bash-completion/completions/ninja install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_rpmconfigdir}/macros.d/macros.ninja +%endif %check %if %{with test} @@ -77,6 +79,7 @@ install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_rpmconfigdir}/macros.d/macros.ni %endif %files +%if %{without test} %license COPYING %{_bindir}/ninja %{_datadir}/bash-completion @@ -85,3 +88,4 @@ install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_rpmconfigdir}/macros.d/macros.ni %{_rpmconfigdir}/macros.d/macros.ninja %changelog +%endif \ No newline at end of file