SHA256
1
0
forked from pool/ninja

- Update dependencies

- Use optflags when building
- Make building more verbose

OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/ninja?expand=0&rev=23
This commit is contained in:
Martin Pluskal 2016-01-30 21:43:54 +00:00 committed by Git OBS Bridge
parent b8db698acd
commit 868ae04768
2 changed files with 19 additions and 9 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Jan 30 21:39:59 UTC 2016 - mpluskal@suse.com
- Update dependencies
- Use optflags when building
- Make building more verbose
-------------------------------------------------------------------
Wed Jul 1 08:04:09 UTC 2015 - foss@grueninger.de

View File

@ -1,7 +1,7 @@
#
# spec file for package ninja
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,17 +17,18 @@
Name: ninja
Version: 1.6.0
Release: 0
Summary: A small build system closest in spirit to Make
License: Apache-2.0
Group: Development/Tools/Building
Version: 1.6.0
Release: 0
Url: https://github.com/martine/ninja
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
BuildRequires: python3-base
Source0: https://github.com/martine/ninja/archive/v%{version}.tar.gz
Patch1: ninja-disable-maxprocs-test.patch
BuildRequires: gcc-c++
BuildRequires: python3-base
BuildRequires: re2c
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Ninja is yet another build system.
@ -39,12 +40,14 @@ and orchestrates building them, quickly.
%patch1 -p1
%build
python3 ./configure.py --bootstrap
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
python3 ./configure.py --bootstrap --verbose
%install
mkdir -p %{buildroot}%{_bindir}
install -m 0755 ninja %{buildroot}%{_bindir}/ninja
install -D -m 0755 ninja %{buildroot}%{_bindir}/ninja
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
@ -55,10 +58,10 @@ install -D -m 0644 misc/bash-completion %{buildroot}%{_sysconfdir}/bash_completi
%files
%defattr(-,root,root)
%doc COPYING
%{_bindir}/ninja
%{_datadir}/zsh
%{_datadir}/vim
%{_sysconfdir}/bash_completion.d
%doc COPYING
%changelog