--- /dev/null
+Name: ninja
+Version: 1.8.2
+Release: 0
+License: Apache-2.0
+Summary: Ninja build system
+Url: http://martine.github.com/ninja/
+Group: System/Utilities
+Source: %{name}.tar.bz2
+Source1001: ninja.manifest
+
+BuildRequires: python
+
+%description
+Ninja is a small build system with a focus on speed.
+http://martine.github.com/ninja/
+
+See the manual -- http://martine.github.com/ninja/manual.html or
+doc/manual.asciidoc included in the distribution -- for background
+and more details.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+
+%build
+# Support large file more than 2GB. (e.g., for stat syscall).
+export CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1"
+
+python ./bootstrap.py
+
+%install
+mkdir -p %{buildroot}%{_bindir}
+install -m 0755 ninja %{buildroot}%{_bindir}/ninja
+
+%files
+%manifest %{name}.manifest
+%defattr(-,root,root)
+%{_bindir}/ninja
+%license COPYING
+