blob: d513c6dbbd71d0229ec75060466c51a4da7349a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
Summary: Ninja is a small build system with a focus on speed.
Name: ninja
Version: %{ver}
Release: %{rel}%{?dist}
Group: Development/Tools
License: Apache 2.0
URL: https://github.com/martine/ninja
%description
Ninja is yet another build system. It takes as input the interdependencies of files (typically source code and output executables) and
orchestrates building them, quickly.
Ninja joins a sea of other build systems. Its distinguishing goal is to be fast. It is born from my work on the Chromium browser project,
which has over 30,000 source files and whose other build systems (including one built from custom non-recursive Makefiles) can take ten
seconds to start building after changing one file. Ninja is under a second.
%build
# Assuming we've bootstrapped already..
../ninja manual ninja -C ..
%install
mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_docdir}
cp -p ../ninja %{buildroot}%{_bindir}/
git log --oneline --pretty=format:'%h: %s (%an, %cd)' --abbrev-commit --all > GITLOG
%files
%defattr(-, root, root)
%doc GITLOG ../COPYING ../README ../doc/manual.html
%{_bindir}/*
%clean
mv %{_topdir}/*.rpm ..
rm -rf %{_topdir}
|