From 8d18dccd37021ca603ef323eb8d990b30958a83824ee1422922f3bafd83794f3 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 26 Apr 2016 14:34:28 +0000 Subject: [PATCH] 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 --- ninja.changes | 5 +++++ ninja.spec | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/ninja.changes b/ninja.changes index d715790..678921e 100644 --- a/ninja.changes +++ b/ninja.changes @@ -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 diff --git a/ninja.spec b/ninja.spec index 6b5288c..a93a083 100644 --- a/ninja.spec +++ b/ninja.spec @@ -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}