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