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:
parent
eea9890191
commit
93fb357aff
@ -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
|
Loading…
Reference in New Issue
Block a user