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