SHA256
1
0
forked from pool/ninja
ninja/ninja.spec
Ismail Dönmez 1dc93a9376 - Update to version 1.5.3
* Reaping finished subprocesses now has precedence over
    starting new jobs
  * ninja no longer depends on googletest
- Install bash/zsh completion
- Install vim syntax file
- Implement %check
- Add ninja-disable-maxprocs-test.patch to disable max procs test,
  it needs a ulimit raise.

OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/ninja?expand=0&rev=19
2014-11-26 08:03:10 +00:00

65 lines
1.9 KiB
RPMSpec

#
# spec file for package ninja
#
# Copyright (c) 2014 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: 1.5.3
Release: 0
Url: https://github.com/martine/ninja
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
BuildRequires: python-base
Source0: https://github.com/martine/ninja/archive/v%{version}.tar.gz
Patch1: ninja-disable-maxprocs-test.patch
%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
%patch1 -p1
%build
python ./configure.py --bootstrap
%install
mkdir -p %{buildroot}%{_bindir}
install -m 0755 ninja %{buildroot}%{_bindir}/ninja
install -D -m 0644 misc/zsh-completion %{buildroot}%{_datadir}/zsh/site-functions/_ninja
install -D -m 0644 misc/ninja.vim %{buildroot}%{_datadir}/vim/site/syntax/ninja.vim
install -D -m 0644 misc/bash-completion %{buildroot}%{_sysconfdir}/bash_completion.d/ninja
%check
./ninja ninja_test
./ninja_test
%files
%defattr(-,root,root)
%{_bindir}/ninja
%{_datadir}/zsh
%{_datadir}/vim
%{_sysconfdir}/bash_completion.d
%doc COPYING
%changelog