]> git.ipfire.org Git - ipfire-3.x.git/blame - ninja/ninja.nm
intel-microcode: Set correct permissions for dirs and files
[ipfire-3.x.git] / ninja / ninja.nm
CommitLineData
a47a5c0a
SS
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = ninja
fb834222 7version = 1.11.1
a47a5c0a
SS
8release = 1
9
10groups = Applications/System
fb834222 11url = https://ninja-build.org
a47a5c0a
SS
12license = ASL 2.0
13summary = A small build system with a focus on speed
14
15description
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
19 fast as possible.
20end
21
22source_dl = https://github.com/martine/ninja/archive/v%{version}/
23
24build
25 requires
26 asciidoc
fb834222 27 python3
a47a5c0a
SS
28 python3-devel
29 end
30
31 build
32 # Configure and bootstrap the build environment.
33 %{python3} configure.py --bootstrap --verbose
34
35 # Build ninja.
36 ./ninja -v all
37
38 # Build manual.
39 ./ninja -v manual
40 end
41
42 check
43 # Run testsuite - filter SubprocessTest
44 ./ninja_test --gtest_filter=-SubprocessTest.SetWithLots
45 end
46
47 install
48 # Install ninja.
49 install -Dpm0755 ninja -t %{BUILDROOT}%{bindir}/
50
51 # Create compatibliy symlink.
52 ln -s ninja %{BUILDROOT}%{bindir}/ninja-build
53
54 # Install bash-comletion.
55 install -Dpm0644 misc/bash-completion %{BUILDROOT}%{datadir}/bash-completion/completions/ninja
56
57 # Install ninja syntax highlighting for vim.
58 install -Dpm0644 misc/ninja.vim %{BUILDROOT}%{datadir}/vim/vimfiles/syntax/ninja.vim
59 end
60end
61
62packages
63 package %{name}
64 provides += ninja-build
65 end
66
67 package %{name}-debuginfo
68 template DEBUGINFO
69 end
70end