2013-01-10 20:48:37 +01:00
|
|
|
#
|
|
|
|
# spec file for package ninja
|
|
|
|
#
|
2016-01-30 22:43:54 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-01-10 20:48:37 +01:00
|
|
|
#
|
|
|
|
# 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
|
2016-01-30 22:43:54 +01:00
|
|
|
Version: 1.6.0
|
|
|
|
Release: 0
|
2013-01-10 20:48:37 +01:00
|
|
|
Summary: A small build system closest in spirit to Make
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Tools/Building
|
|
|
|
Url: https://github.com/martine/ninja
|
2014-09-11 12:28:19 +02:00
|
|
|
Source0: https://github.com/martine/ninja/archive/v%{version}.tar.gz
|
2014-11-26 09:03:10 +01:00
|
|
|
Patch1: ninja-disable-maxprocs-test.patch
|
2016-01-30 22:43:54 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: python3-base
|
|
|
|
BuildRequires: re2c
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-01-10 20:48:37 +01:00
|
|
|
|
|
|
|
%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
|
2013-03-12 16:55:41 +01:00
|
|
|
%setup -q
|
2014-11-26 09:03:10 +01:00
|
|
|
%patch1 -p1
|
2013-01-10 20:48:37 +01:00
|
|
|
|
|
|
|
%build
|
2016-01-30 22:43:54 +01:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
export CXXFLAGS="%{optflags}"
|
|
|
|
python3 ./configure.py --bootstrap --verbose
|
2013-01-10 20:48:37 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
2014-11-26 09:03:10 +01:00
|
|
|
|
2016-01-30 22:43:54 +01:00
|
|
|
install -D -m 0755 ninja %{buildroot}%{_bindir}/ninja
|
2014-11-26 09:03:10 +01:00
|
|
|
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
|
2013-01-10 20:48:37 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2016-01-30 22:43:54 +01:00
|
|
|
%doc COPYING
|
2013-01-10 20:48:37 +01:00
|
|
|
%{_bindir}/ninja
|
2014-11-26 09:03:10 +01:00
|
|
|
%{_datadir}/zsh
|
|
|
|
%{_datadir}/vim
|
|
|
|
%{_sysconfdir}/bash_completion.d
|
2013-01-10 20:48:37 +01:00
|
|
|
|
|
|
|
%changelog
|