SHA256
1
0
forked from pool/ninja

- Update to version 1.8.2:

* Restore tolerance of self-referencing phony build statements
  * Factor ManifestParser options into a structure
- Drop support for building on old distributions

OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/ninja?expand=0&rev=38
This commit is contained in:
Martin Pluskal 2017-09-12 08:42:01 +00:00 committed by Git OBS Bridge
parent 4ff60697b5
commit 007a4a15a9
4 changed files with 16 additions and 18 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b975832a09021381a50dab9fd66ee83b525102408c3eea573b638ca63908f5ea
size 184206

3
ninja-1.8.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:86b8700c3d0880c2b44c2ff67ce42774aaf8c28cbf57725cb881569288c1c6f4
size 185226

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Sep 12 08:38:18 UTC 2017 - mpluskal@suse.com
- Update to version 1.8.2:
* Restore tolerance of self-referencing phony build statements
* Factor ManifestParser options into a structure
- Drop support for building on old distributions
-------------------------------------------------------------------
Thu Sep 7 14:44:24 UTC 2017 - idonmez@suse.com

View File

@ -17,7 +17,7 @@
Name: ninja
Version: 1.8.1
Version: 1.8.2
Release: 0
Summary: A small build system closest in spirit to Make
License: Apache-2.0
@ -27,18 +27,13 @@ Source0: https://github.com/ninja-build/ninja/archive/v%{version}.tar.gz#
Source1: macros.ninja
Patch1: ninja-disable-maxprocs-test.patch
BuildRequires: gcc-c++
%if 0%{?suse_version} <= 1110
BuildRequires: python-base
%else
BuildRequires: python3-base
%endif
BuildRequires: re2c
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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 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
@ -47,25 +42,20 @@ and orchestrates building them, quickly.
%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
%if 0%{?suse_version} <= 1110
python2./configure.py --bootstrap --verbose
%else
python3 ./configure.py --bootstrap --verbose
%endif
%install
install -D -p -m 0755 ninja %{buildroot}%{_bindir}/ninja
install -D -p -m 0644 misc/zsh-completion %{buildroot}%{_datadir}/zsh/site-functions/_ninja
install -D -p -m 0644 misc/ninja.vim %{buildroot}%{_datadir}/vim/site/syntax/ninja.vim
install -D -p -m 0644 misc/bash-completion %{buildroot}%{_sysconfdir}/bash_completion.d/ninja
install -D -p -m 0644 %{S:1} %{buildroot}%{_rpmconfigdir}/macros.d/macros.ninja
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_rpmconfigdir}/macros.d/macros.ninja
%check
./ninja ninja_test
./ninja_test
%files
%defattr(-,root,root)
%doc COPYING
%{_bindir}/ninja
%{_datadir}/zsh