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}