SHA256
1
0
forked from pool/ninja

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
This commit is contained in:
Dirk Mueller 2024-05-09 08:35:47 +00:00 committed by Git OBS Bridge
parent eea9890191
commit 93fb357aff

View File

@ -65,11 +65,13 @@ export CXXFLAGS="$CFLAGS"
%cmake_build %cmake_build
%install %install
%if %{without test}
%cmake_install %cmake_install
install -D -p -m 0644 misc/zsh-completion %{buildroot}%{_datadir}/zsh/site-functions/_ninja 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/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 misc/bash-completion %{buildroot}%{_datadir}/bash-completion/completions/ninja
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_rpmconfigdir}/macros.d/macros.ninja install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_rpmconfigdir}/macros.d/macros.ninja
%endif
%check %check
%if %{with test} %if %{with test}
@ -77,6 +79,7 @@ install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_rpmconfigdir}/macros.d/macros.ni
%endif %endif
%files %files
%if %{without test}
%license COPYING %license COPYING
%{_bindir}/ninja %{_bindir}/ninja
%{_datadir}/bash-completion %{_datadir}/bash-completion
@ -85,3 +88,4 @@ install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_rpmconfigdir}/macros.d/macros.ni
%{_rpmconfigdir}/macros.d/macros.ninja %{_rpmconfigdir}/macros.d/macros.ninja
%changelog %changelog
%endif