SHA256
3
0
forked from pool/ninja

Accepting request 391702 from home:matz2:branches:devel:tools:building

- Make it build on SLE11 (use python2 there).

(It won't work in the devel:tools:building project because you
broke the libtool<->m4 cycle there, but it will in other projects)

OBS-URL: https://build.opensuse.org/request/show/391702
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/ninja?expand=0&rev=25
This commit is contained in:
Dirk Mueller 2016-04-26 14:34:28 +00:00 committed by Git OBS Bridge
parent 868ae04768
commit 8d18dccd37
2 changed files with 13 additions and 0 deletions

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Apr 26 13:27:25 UTC 2016 - matz@suse.de
- Make it build on SLE11 (use python2 there).
-------------------------------------------------------------------
Sat Jan 30 21:39:59 UTC 2016 - mpluskal@suse.com

@ -26,7 +26,11 @@ Url: https://github.com/martine/ninja
Source0: https://github.com/martine/ninja/archive/v%{version}.tar.gz
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
@ -42,7 +46,11 @@ and orchestrates building them, quickly.
%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
%if 0%{?suse_version} <= 1110
python ./configure.py --bootstrap --verbose
%else
python3 ./configure.py --bootstrap --verbose
%endif
%install
mkdir -p %{buildroot}%{_bindir}