ninja/ninja.spec
Ismail Dönmez 08f6a9e71a - Update to git hash ecc876e
* Add compdb command to generate compile_commands.json for clang.
  * Add elapsed time (%e) to NINJA_STATUS.
- First release

OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/ninja?expand=0&rev=5
2013-03-12 15:55:41 +00:00

60 lines
1.7 KiB
RPMSpec

#
# spec file for package ninja
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: ninja
Summary: A small build system closest in spirit to Make
License: Apache-2.0
Group: Development/Tools/Building
Version: 0.0+git.20130311.ecc876e
Release: 0
Url: https://github.com/martine/ninja
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: asciidoc
BuildRequires: gcc-c++
BuildRequires: libxslt-tools
BuildRequires: python
Source0: ninja-%{version}.tar.bz2
%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.
%prep
%setup -q
%build
python ./bootstrap.py
./ninja manual
%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_docdir}/html
install -m 0755 ninja %{buildroot}%{_bindir}/ninja
install -m 0644 doc/manual.html %{buildroot}%{_docdir}/html/manual.html
%files
%defattr(-,root,root)
%{_bindir}/ninja
%dir %{_docdir}/html
%doc %{_docdir}/html/*
%doc COPYING
%changelog