1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Applications/System
11 url = http://martine.github.com/ninja/
13 summary = A small build system with a focus on speed
16 Ninja is a small build system with a focus on speed. It differs from other
17 build systems in two major respects: it is designed to have its input files
18 generated by a higher-level build system, and it is designed to run builds as
22 source_dl = https://github.com/martine/ninja/archive/v%{version}/
31 # Configure and bootstrap the build environment.
32 %{python3} configure.py --bootstrap --verbose
42 # Run testsuite - filter SubprocessTest
43 ./ninja_test --gtest_filter=-SubprocessTest.SetWithLots
48 install -Dpm0755 ninja -t %{BUILDROOT}%{bindir}/
50 # Create compatibliy symlink.
51 ln -s ninja %{BUILDROOT}%{bindir}/ninja-build
53 # Install bash-comletion.
54 install -Dpm0644 misc/bash-completion %{BUILDROOT}%{datadir}/bash-completion/completions/ninja
56 # Install ninja syntax highlighting for vim.
57 install -Dpm0644 misc/ninja.vim %{BUILDROOT}%{datadir}/vim/vimfiles/syntax/ninja.vim
63 provides += ninja-build
66 package %{name}-debuginfo